Function at 0x4059b0
Capabilities:
Contain obfuscated stackstrings
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52ee9d
mov eax, dword fs:[0]
push eax
sub esp, 0x2c0
mov eax, dword [0x57c54c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
lea eax, [ebp - 0x2c8]
mov dword [ebp - 0x2c8], 0
push eax
push 0x20019
push 0
lea eax, [ebp - 0x7c]
mov dword [ebp - 0x7c], 0x6f0053
push eax
push reloc.WS2_32.dll_accept
mov dword [ebp - 0x78], 0x740066
mov dword [ebp - 0x74], 0x610077
mov dword [ebp - 0x70], 0x650072
mov dword [ebp - 0x6c], 0x4d005c
mov dword [ebp - 0x68], 0x630069
mov dword [ebp - 0x64], 0x6f0072
mov dword [ebp - 0x60], 0x6f0073
mov dword [ebp - 0x5c], 0x740066
mov dword [ebp - 0x58], 0x49005c
mov dword [ebp - 0x54], 0x74006e
mov dword [ebp - 0x50], 0x720065
mov dword [ebp - 0x4c], 0x65006e
mov dword [ebp - 0x48], 0x200074
mov dword [ebp - 0x44], 0x780045
mov dword [ebp - 0x40], 0x6c0070
mov dword [ebp - 0x3c], 0x72006f
mov dword [ebp - 0x38], 0x720065
mov dword [ebp - 0x34], 0x4d005c
mov dword [ebp - 0x30], 0x690061
mov dword [ebp - 0x2c], 0x6e
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x405c38
push 0x20a
push eax
lea eax, [ebp - 0x288]
push eax
call fcn.00503920
add esp, 0xc
mov dword [ebp - 0x28c], 0x104
xor eax, eax
mov dword [ebp - 0x290], 1
mov word [ebp - 0x14], ax
lea eax, [ebp - 0x28c]
mov dword [ebp - 0x28], 0x740053
push eax
lea eax, [ebp - 0x288]
mov dword [ebp - 0x24], 0x720061
push eax
lea eax, [ebp - 0x290]
mov dword [ebp - 0x20], 0x200074
push eax
push 0
lea eax, [ebp - 0x28]
mov dword [ebp - 0x1c], 0x610050
push eax
push dword [ebp - 0x2c8]
mov dword [ebp - 0x18], 0x650067
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x2c8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp word [ebp - 0x288], 0
je 0x405c38
xor eax, eax
mov dword [ebp - 0x2b0], 0
mov dword [ebp - 0x2ac], 0
mov dword [ebp - 0x2b0], 0
mov dword [ebp - 0x2ac], 7
mov word [ebp - 0x2c0], ax
mov dword [ebp - 4], eax
mov dword [ebp - 0x298], eax
mov dword [ebp - 0x294], eax
mov dword [ebp - 0x298], eax
mov dword [ebp - 0x294], 7
mov word [ebp - 0x2a8], ax
mov dword [ebp - 4], 2
lea eax, [ebp - 0x288]
mov dword [ebp - 0x2c4], 0xc
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x405ba6
sub eax, edx
lea ecx, [ebp - 0x2c0]
sar eax, 1
push eax
lea eax, [ebp - 0x288]
push eax
call fcn.0040ab40
mov esi, dword [edi + 0x258]
cmp dword [edi + 0x25c], esi
je 0x405c13
mov eax, dword [ebp - 0x2c4]
lea ecx, [esi + 4]
mov dword [esi], eax
lea eax, [ebp - 0x2c0]
push eax
mov dword [ebp - 0x2cc], esi
call fcn.0040d350
mov byte [ebp - 4], 3
lea eax, [ebp - 0x2a8]
push eax
lea ecx, [esi + 0x1c]
call fcn.0040d350
mov byte [ebp - 4], 2
add dword [edi + 0x258], 0x34
jmp 0x405c26
lea eax, [ebp - 0x2c4]
push eax
push esi
lea ecx, [edi + 0x254]
call fcn.0040c030
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c4]
call fcn.004050a0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00500b45
mov esp, ebp
pop ebp
ret