Function at 0x437420
Capabilities:
Create process on windows
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x270
mov eax, dword [0x4bc1dc]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov dword [ebp - 0x218], eax
mov eax, dword [ebp + 0xc]
push 0x3c
mov dword [ebp - 0x21c], eax
lea eax, [ebp - 0x268]
push 0
push eax
mov dword [ebp - 0x270], 0x44
mov dword [ebp - 0x26c], 0
call fcn.00470180
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [ebp - 0x210]
add esp, 0xc
push eax
push 0x20019
push 0
push 0x4a29a0
push reloc.WS2_32.dll_accept
call edi
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
test esi, esi
jne 0x43754b
lea eax, [ebp - 0x214]
mov dword [ebp - 0x214], 0x104
push eax
lea eax, [ebp - 0x20c]
push eax
push 0
push 0
push 0x4a2a3c
push dword [ebp - 0x210]
call ebx
push dword [ebp - 0x210]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x43754b
push 0x4a2a4c
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.00472de8
add esp, 0xc
lea eax, [ebp - 0x210]
push eax
push 0x20019
push esi
lea eax, [ebp - 0x20c]
push eax
push connect
call edi
test eax, eax
jne 0x4375a5
lea eax, [ebp - 0x214]
mov dword [ebp - 0x214], 0x104
push eax
lea eax, [ebp - 0x20c]
push eax
push esi
push esi
push esi
push dword [ebp - 0x210]
call ebx
push dword [ebp - 0x210]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x4375a5
lea eax, [ebp - 0x210]
push eax
push 0x20019
push 0
push 0x4a2970
push connect
call edi
test eax, eax
jne 0x43759d
lea eax, [ebp - 0x214]
mov dword [ebp - 0x214], 0x104
push eax
lea eax, [ebp - 0x20c]
push eax
push 0
push 0
push 0
push dword [ebp - 0x210]
call ebx
push dword [ebp - 0x210]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x4376df
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 2]
mov edi, edi
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4375b0
mov esi, dword [ebp - 0x21c]
sub ecx, edx
mov edx, esi
sar ecx, 1
lea edi, [edx + 2]
lea ebx, [ebx]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x4375d0
sub edx, edi
lea ebx, [ecx + 6]
sar edx, 1
add ebx, edx
lea eax, [ebx + ebx]
push eax
call fcn.00470594
mov edi, eax
lea eax, [ebp - 0x20c]
push 0x4a2a74
push eax
call fcn.0046f0b8
add esp, 0xc
mov dword [ebp - 0x218], eax
test eax, eax
je 0x43765f
mov esi, eax
lea eax, [ebp - 0x20c]
sub esi, eax
sar esi, 1
lea ecx, [esi + 1]
push ecx
push eax
push ebx
push edi
call fcn.0046ff0d
mov eax, ebx
sub eax, esi
dec eax
push 0x4a2a80
push eax
lea eax, [esi + 1]
lea eax, [edi + eax*2]
push eax
call fcn.0046f05c
push dword [ebp - 0x21c]
push ebx
push edi
call fcn.00472de8
mov eax, dword [ebp - 0x218]
add eax, 6
push eax
push ebx
push edi
call fcn.00472de8
add esp, 0x34
jmp 0x437676
push esi
lea eax, [ebp - 0x20c]
push eax
push 0x4a2a88
push ebx
push edi
call fcn.0046f603
add esp, 0x14
lea eax, [ebp - 0x22c]
mov dword [ebp - 0x228], 0
push eax
lea eax, [ebp - 0x270]
mov dword [ebp - 0x22c], 0
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push edi
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
push dword [ebp - 0x228]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x22c]
call esi
push edi
call fcn.0047055c
add esp, 4
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046f8ce
mov esp, ebp
pop ebp
ret
push 0x10
push 0x4a2a9c
push 0x4a2ac8
push dword [ebp - 0x218]
call dword [sym.imp.USER32.dll_MessageBoxW]
mov ecx, dword [ebp - 4]
xor al, al
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0046f8ce
mov esp, ebp
pop ebp
ret