Function at 0x47d170
Capabilities:
Check for peb beingdebugged flag
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x58a98b
mov eax, dword fs:[0]
push eax
sub esp, 0x83c
mov eax, dword [0x5ea2c4]
xor eax, esp
mov dword [esp + 0x838], eax
push ebx
push ebp
push esi
mov eax, dword [0x5ea2c4]
xor eax, esp
push eax
lea eax, [esp + 0x84c]
mov dword fs:[0], eax
mov eax, dword [esp + 0x860]
mov ebp, dword [esp + 0x85c]
xor ebx, ebx
mov dword [esp + 0x28], eax
mov dword [esp + 0x24], ebx
xor edx, edx
mov eax, 0x59b2fc
mov dword [esp + 0x20], ecx
mov dword [esp + 0x44], 7
mov dword [esp + 0x40], ebx
mov word [esp + 0x30], dx
lea ecx, [eax + 2]
mov dx, word [eax]
add eax, 2
cmp dx, bx
jne 0x47d1e1
sub eax, ecx
sar eax, 1
push eax
push 0x59b2fc
lea esi, [esp + 0x34]
call fcn.00406150
lea eax, [esp + 0x10]
push eax
push 0x20119
mov dword [esp + 0x85c], ebx
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push ebx
push ebp
push reloc.WS2_32.dll_closesocket
mov dword [esp + 0x24], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x30], ebx
call esi
test eax, eax
jne 0x47d259
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x18]
push ecx
push 0x20119
push ebx
push str.SoftWare
push edx
call esi
test eax, eax
je 0x47d295
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0xffffffffffffffff
push ebx
lea edx, [esp + 0x34]
xor ecx, ecx
mov dword [edi + 0x18], 7
mov dword [edi + 0x14], ebx
push edx
mov eax, edi
mov word [edi + 4], cx
call fcn.00405d70
cmp dword [esp + 0x44], 8
jb 0x47d3be
mov eax, dword [esp + 0x30]
push eax
call fcn.005273b8
add esp, 4
jmp 0x47d3be
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x14]
push ecx
push 0x20119
push ebx
push str.MiNi
push edx
call esi
test eax, eax
je 0x47d2e8
mov eax, dword [esp + 0x18]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push eax
call esi
mov ecx, dword [esp + 0x10]
push ecx
call esi
push 0xffffffffffffffff
push ebx
lea eax, [esp + 0x34]
xor edx, edx
push eax
mov dword [edi + 0x18], 7
mov dword [edi + 0x14], ebx
mov eax, edi
mov word [edi + 4], dx
call fcn.00405d70
jmp 0x47d3b5
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x1c]
push ecx
push 0x20119
push ebx
push edx
push eax
call esi
test eax, eax
je 0x47d32e
mov ecx, dword [esp + 0x1c]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ecx
call esi
mov edx, dword [esp + 0x14]
push edx
call esi
mov eax, dword [esp + 0x10]
push eax
call esi
lea ecx, [esp + 0x2c]
mov esi, edi
call fcn.00405770
jmp 0x47d3b5
push 0x7fe
lea edx, [esp + 0x4e]
xor ecx, ecx
push ebx
push edx
mov word [esp + 0x54], cx
call fcn.0052e300
mov edx, dword [esp + 0x2c]
add esp, 0xc
lea eax, [esp + 0x24]
push eax
mov eax, dword [esp + 0x20]
lea ecx, [esp + 0x4c]
push ecx
push ebx
push ebx
push edx
push eax
mov dword [esp + 0x3c], 0x400
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [esp + 0x1c]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ecx
call esi
mov edx, dword [esp + 0x14]
push edx
call esi
mov eax, dword [esp + 0x18]
push eax
call esi
mov ecx, dword [esp + 0x10]
push ecx
call esi
lea eax, [esp + 0x48]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x47d395
sub eax, edx
sar eax, 1
je 0x47d31e
lea edx, [esp + 0x48]
mov eax, edi
call fcn.00406240
lea ecx, [esp + 0x2c]
call fcn.00406300
mov eax, edi
mov ecx, dword [esp + 0x84c]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x838]
xor ecx, esp
call fcn.005273c3
add esp, 0x848
ret 8