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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x270
mov eax, dword [0x4b31cc]
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.0046e870
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [ebp - 0x210]
add esp, 0xc
push eax
push 0x20019
push 0
push 0x49a930
push reloc.WS2_32.dll_accept
call edi
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
test esi, esi
jne 0x43655b
lea eax, [ebp - 0x214]
mov dword [ebp - 0x214], 0x104
push eax
lea eax, [ebp - 0x20c]
push eax
push 0
push 0
push 0x49a9cc
push dword [ebp - 0x210]
call ebx
push dword [ebp - 0x210]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x43655b
push 0x49a9dc
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.00470e68
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 0x4365b5
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 0x4365b5
lea eax, [ebp - 0x210]
push eax
push 0x20019
push 0
push 0x49a900
push connect
call edi
test eax, eax
jne 0x4365ad
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 0x4366ef
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 2]
mov edi, edi
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4365c0
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 0x4365e0
sub edx, edi
lea ebx, [ecx + 6]
sar edx, 1
add ebx, edx
lea eax, [ebx + ebx]
push eax
call fcn.0046e983
mov edi, eax
lea eax, [ebp - 0x20c]
push 0x49aa04
push eax
call fcn.0046d7a8
add esp, 0xc
mov dword [ebp - 0x218], eax
test eax, eax
je 0x43666f
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.0046e5fd
mov eax, ebx
sub eax, esi
dec eax
push 0x49aa10
push eax
lea eax, [esi + 1]
lea eax, [edi + eax*2]
push eax
call fcn.0046d74c
push dword [ebp - 0x21c]
push ebx
push edi
call fcn.00470e68
mov eax, dword [ebp - 0x218]
add eax, 6
push eax
push ebx
push edi
call fcn.00470e68
add esp, 0x34
jmp 0x436686
push esi
lea eax, [ebp - 0x20c]
push eax
push 0x49aa18
push ebx
push edi
call fcn.0046dcf3
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.0046e94b
add esp, 4
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046dfbe
mov esp, ebp
pop ebp
ret
push 0x10
push 0x49aa2c
push 0x49aa58
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.0046dfbe
mov esp, ebp
pop ebp
ret