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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x278
mov eax, dword [0x517b80]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
lea eax, [ebp - 0x268]
push esi
push edi
mov edi, dword [ebp + 8]
push 0x3c
push 0
push eax
mov dword [ebp - 0x274], ebx
mov dword [ebp - 0x270], 0x44
mov dword [ebp - 0x26c], 0
call fcn.004aa220
add esp, 0xc
lea eax, [ebp - 0x21c]
push eax
push 0x20019
push 0
push 0x4f3e08
push reloc.WS2_32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
test esi, esi
jne 0x46bb57
lea eax, [ebp - 0x218]
mov dword [ebp - 0x218], 0x104
push eax
lea eax, [ebp - 0x214]
push eax
push esi
push esi
push 0x4f3ea4
push dword [ebp - 0x21c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x21c]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x46bb57
push 0x4f3eb4
lea eax, [ebp - 0x214]
push 0x104
push eax
call fcn.004bad7a
add esp, 0xc
lea eax, [ebp - 0x21c]
push eax
push 0x20019
push esi
lea eax, [ebp - 0x214]
push eax
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x46bbb9
lea eax, [ebp - 0x218]
mov dword [ebp - 0x218], 0x104
push eax
lea eax, [ebp - 0x214]
push eax
push esi
push esi
push esi
push dword [ebp - 0x21c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x21c]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x46bbb9
lea eax, [ebp - 0x21c]
push eax
push 0x20019
push 0
push 0x4f3dd8
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x46bbb1
lea eax, [ebp - 0x218]
mov dword [ebp - 0x218], 0x104
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push 0
push 0
push dword [ebp - 0x21c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x21c]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x46bd1c
lea ecx, [ebp - 0x214]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x46bbc2
sub ecx, edx
mov edx, ebx
sar ecx, 1
lea esi, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x46bbd6
sub edx, esi
sar edx, 1
lea ebx, [edx + 6]
mov edx, 2
add ebx, ecx
xor ecx, ecx
mov eax, ebx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004b4722
mov edi, eax
mov dword [ebp - 0xc], 0x310025
xor eax, eax
mov word [ebp - 8], ax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x214]
push eax
call fcn.004aa37a
add esp, 0xc
mov dword [ebp - 0x278], eax
test eax, eax
je 0x46bc95
mov esi, eax
lea eax, [ebp - 0x214]
sub esi, eax
sar esi, 1
push esi
push eax
push ebx
push edi
call fcn.004aec4e
mov eax, ebx
sub eax, esi
push 0x4f3edc
push eax
lea eax, [edi + esi*2]
push eax
call fcn.004ba210
push dword [ebp - 0x274]
push ebx
push edi
call fcn.004bad7a
lea ecx, [ebp - 0xc]
add esp, 0x28
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x46bc70
mov eax, dword [ebp - 0x278]
sub ecx, edx
sar ecx, 1
lea eax, [eax + ecx*2]
push eax
push ebx
push edi
call fcn.004bad7a
add esp, 0xc
jmp 0x46bcb1
push dword [ebp - 0x274]
lea eax, [ebp - 0x214]
push eax
push 0x4f3ee4
push ebx
push edi
call fcn.00404e10
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]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
push dword [ebp - 0x22c]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
push edi
call fcn.004b4707
add esp, 4
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a71aa
mov esp, ebp
pop ebp
ret
push 0x10
push 0x4f3ef8
push 0x4f3f24
push edi
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.004a71aa
mov esp, ebp
pop ebp
ret