Function at 0x403fa0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x424bbf
mov eax, dword fs:[0]
push eax
sub esp, 0x1f0
mov eax, dword [0x430510]
xor eax, ebp
mov dword [ebp - 0x18], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x1a8], ebx
mov dword [ebp - 0x1b0], eax
mov dword [ebp - 0x1b4], ebx
mov dword [ebp - 0x1ac], ebx
mov dword [ebp - 0x48], 0x2537160b
mov dword [ebp - 0x44], 0x20be4e2a
mov dword [ebp - 0x40], 0x39d51f1f
mov dword [ebp - 0x3c], 0xdffb9c9d
mov dword [ebp - 0x38], 0x4ae99484
mov dword [ebp - 0x34], 0x3ccb0db5
mov dword [ebp - 0x30], 0xb434bab5
mov dword [ebp - 0x2c], 0x925b3508
mov dword [ebp - 0x28], 0xa34c1735
mov dword [ebp - 0x24], 0xa747b964
mov dword [ebp - 0x20], 0x52a79b0b
mov dword [ebp - 0x1c], 0x7161b495
mov dword [ebp - 0x1f8], ebx
mov dword [ebp - 0x1f4], ebx
mov dword [ebp - 0x1f0], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x1d8], ebx
mov dword [ebp - 0x1d4], ebx
mov dword [ebp - 0x1d0], ebx
mov dword [ebp - 0x1c8], ebx
mov dword [ebp - 0x1c4], ebx
mov dword [ebp - 0x1c0], ebx
mov dword [ebp - 0x1e8], ebx
mov dword [ebp - 0x1e4], ebx
mov dword [ebp - 0x1e0], ebx
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x1b0]
push ecx
lea edx, [ebp - 0x28]
push edx
lea eax, [ebp - 0x48]
push eax
push ebx
lea esi, [ebp - 0x1f8]
call fcn.0040ad40
mov ecx, dword [ebp - 0x1b0]
push ecx
lea edx, [ebp - 0x18]
push edx
lea eax, [ebp - 0x28]
push eax
push ebx
lea esi, [ebp - 0x1d8]
call fcn.0040ad40
push 0xff
lea ecx, [ebp - 0x14b]
push ebx
push ecx
mov byte [ebp - 0x14c], bl
call fcn.0041a000
lea edx, [ebp - 0x1c8]
add esp, 0xc
push edx
lea ecx, [ebp - 0x1f8]
mov dword [ebp - 0x1b8], 0x100
mov byte [ebp - 4], 4
call fcn.00402480
add esp, 4
cmp al, 1
jne 0x404384
mov ecx, dword [ebp - 0x1c8]
push ebx
lea edx, [ebp - 0x184]
call fcn.00402510
add esp, 4
mov byte [ebp - 4], 5
mov edi, 8
mov dword [ebp - 0x1a8], 1
cmp dword [eax + 0x14], edi
jb 0x40413c
mov eax, dword [eax]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
push ebx
lea ecx, [ebp - 0x1ac]
push ecx
push ebx
push 0x2001f
push ebx
push ebx
push ebx
push eax
push connect
call esi
test eax, eax
je 0x4041a8
mov ecx, dword [ebp - 0x1c8]
push ebx
lea edx, [ebp - 0x168]
call fcn.00402510
add esp, 4
mov dword [ebp - 0x1a8], 3
cmp dword [eax + 0x14], edi
jb 0x404185
mov eax, dword [eax]
push ebx
lea edx, [ebp - 0x1ac]
push edx
push ebx
push 0x2001f
push ebx
push ebx
push ebx
push eax
push connect
call esi
mov byte [ebp - 0x1a1], bl
test eax, eax
jne 0x4041af
mov byte [ebp - 0x1a1], 1
test byte [ebp - 0x1a8], 2
je 0x4041ef
and dword [ebp - 0x1a8], 0xfffffffd
cmp dword [ebp - 0x154], edi
jb 0x4041d6
mov eax, dword [ebp - 0x168]
push eax
call fcn.004140b8
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x154], 7
mov dword [ebp - 0x158], ebx
mov word [ebp - 0x168], cx
mov dword [ebp - 4], 4
test byte [ebp - 0x1a8], 1
je 0x404216
cmp dword [ebp - 0x170], edi
jb 0x404216
mov edx, dword [ebp - 0x184]
push edx
call fcn.004140b8
add esp, 4
cmp byte [ebp - 0x1a1], bl
je 0x404384
lea eax, [ebp - 0x1e8]
push eax
lea ecx, [ebp - 0x1d8]
call fcn.00402480
add esp, 4
cmp al, 1
jne 0x404384
mov ecx, dword [ebp - 0x1e8]
push ebx
lea edx, [ebp - 0x168]
mov dword [ebp - 0x1a8], 3
call fcn.00402510
add esp, 4
cmp dword [eax + 0x14], edi
jb 0x404265
mov eax, dword [eax]
lea ecx, [ebp - 0x1b8]
push ecx
lea edx, [ebp - 0x14c]
push edx
mov edx, dword [ebp - 0x1ac]
lea ecx, [ebp - 0x1a8]
push ecx
push ebx
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
sete byte [ebp - 0x1a1]
cmp dword [ebp - 0x154], edi
jb 0x4042a9
mov eax, dword [ebp - 0x168]
push eax
call fcn.004140b8
add esp, 4
cmp byte [ebp - 0x1a1], bl
je 0x404384
mov dword [ebp - 0x15c], ebx
mov dword [ebp - 0x158], ebx
mov dword [ebp - 0x154], ebx
mov dword [ebp - 0x178], ebx
mov dword [ebp - 0x174], ebx
mov dword [ebp - 0x170], ebx
mov byte [ebp - 4], 7
mov eax, dword [ebp - 0x1b8]
mov ecx, dword [ebp - 0x1b0]
push ecx
lea eax, [ebp + eax - 0x14b]
push eax
lea edx, [ebp - 0x14c]
push edx
push ebx
lea eax, [ebp - 0x15c]
push eax
call fcn.0040b0b0
lea ecx, [ebp - 0x178]
push ecx
lea ecx, [ebp - 0x15c]
call fcn.00402210
add esp, 4
cmp al, bl
je 0x40435a
mov ecx, dword [ebp - 0x178]
push ebx
lea edx, [ebp - 0x1a0]
call fcn.00402510
add esp, 4
mov byte [ebp - 4], 8
mov esi, dword [ebp - 0x1b0]
mov edi, eax
call fcn.00408ff0
lea esi, [ebp - 0x1a0]
call fcn.00407300
mov dword [ebp - 0x1b4], 1
lea esi, [ebp - 0x178]
call fcn.004077c0
lea esi, [ebp - 0x15c]
call fcn.004077c0
jmp 0x404384
mov eax, dword [ebp - 0x1ac]
cmp eax, ebx
je 0x40439b
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x1ac], ebx
mov eax, dword [ebp - 0x1e8]
cmp eax, ebx
je 0x4043ae
push eax
call fcn.004140b8
add esp, 4
mov eax, dword [ebp - 0x1c8]
cmp eax, ebx
je 0x4043c1
push eax
call fcn.004140b8
add esp, 4
mov eax, dword [ebp - 0x1d8]
cmp eax, ebx
je 0x4043d4
push eax
call fcn.004140b8
add esp, 4
mov eax, dword [ebp - 0x1f8]
cmp eax, ebx
je 0x4043e7
push eax
call fcn.004140b8
add esp, 4
mov eax, dword [ebp - 0x1b4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.004140c3
mov esp, ebp
pop ebp
ret