Function at 0x40a670
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6267f1
mov eax, dword fs:[0]
push eax
sub esp, 0x840
mov eax, dword [0x6b278c]
xor eax, ebp
mov dword [ebp - 0x1c], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x84c], ecx
mov dword [ebp - 0x848], 0
mov eax, dword [ebp + 0x18]
push eax
lea ecx, [ebp - 0x840]
call fcn.0040e4b0
mov dword [ebp - 4], 1
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x820], 0
mov dword [ebp - 0x844], 0
lea ecx, [ebp - 0x18]
push ecx
push 0xf013f
push 0
push 0x63afdc
push reloc.WS2_32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x824], eax
cmp dword [ebp - 0x824], 0
je 0x40a73b
lea edx, [ebp - 0x840]
push edx
mov ecx, dword [ebp + 8]
call fcn.0040e4f0
mov eax, dword [ebp - 0x848]
or eax, 1
mov dword [ebp - 0x848], eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x840]
call fcn.0040e530
mov eax, dword [ebp + 8]
jmp 0x40a916
push 0
lea ecx, [ebp - 0x820]
push ecx
push 0
push 0xf013f
push 0
push 0
push 0
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov dword [ebp - 0x824], eax
cmp dword [ebp - 0x824], 0
je 0x40a7ad
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea edx, [ebp - 0x840]
push edx
mov ecx, dword [ebp + 8]
call fcn.0040e4f0
mov eax, dword [ebp - 0x848]
or eax, 1
mov dword [ebp - 0x848], eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x840]
call fcn.0040e530
mov eax, dword [ebp + 8]
jmp 0x40a916
push 0
lea ecx, [ebp - 0x844]
push ecx
push 0
push 0xf013f
push 0
push 0
push 0
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp - 0x820]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov dword [ebp - 0x824], eax
cmp dword [ebp - 0x824], 0
je 0x40a832
mov ecx, dword [ebp - 0x820]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp - 0x844]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x840]
push eax
mov ecx, dword [ebp + 8]
call fcn.0040e4f0
mov ecx, dword [ebp - 0x848]
or ecx, 1
mov dword [ebp - 0x848], ecx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x840]
call fcn.0040e530
mov eax, dword [ebp + 8]
jmp 0x40a916
xor edx, edx
mov word [ebp - 0x81c], dx
push 0x7fe
push 0
lea eax, [ebp - 0x81a]
push eax
call fcn.005b4de0
add esp, 0xc
mov dword [ebp - 0x14], 0x400
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 0x81c]
push edx
push 0
push 0
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp - 0x844]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edx, dword [ebp - 0x844]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x820]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea edx, [ebp - 0x81c]
push edx
call fcn.005b50b1
add esp, 4
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x40a8e6
lea eax, [ebp - 0x840]
push eax
mov ecx, dword [ebp + 8]
call fcn.0040e4f0
mov ecx, dword [ebp - 0x848]
or ecx, 1
mov dword [ebp - 0x848], ecx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x840]
call fcn.0040e530
mov eax, dword [ebp + 8]
jmp 0x40a916
lea edx, [ebp - 0x81c]
push edx
mov ecx, dword [ebp + 8]
call fcn.0040e4b0
mov eax, dword [ebp - 0x848]
or eax, 1
mov dword [ebp - 0x848], eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x840]
call fcn.0040e530
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.005b4b30
mov esp, ebp
pop ebp
ret 0x14