Function at 0x40a940
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x626843
mov eax, dword fs:[0]
push eax
sub esp, 0x848
mov eax, dword [0x6b278c]
xor eax, ebp
mov dword [ebp - 0x20], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x854], ecx
mov dword [ebp - 0x850], 0
mov eax, dword [ebp + 0x1c]
push eax
lea ecx, [ebp - 0x848]
call fcn.0040e4b0
mov dword [ebp - 4], 1
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x828], 0
mov dword [ebp - 0x84c], 0
mov dword [ebp - 0x82c], 0
lea ecx, [ebp - 0x18]
push ecx
push 0x20119
push 0
mov edx, dword [ebp + 0x10]
push edx
push reloc.WS2_32.dll_closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x82c], eax
cmp dword [ebp - 0x82c], 0
je 0x40aa1b
lea eax, [ebp - 0x848]
push eax
mov ecx, dword [ebp + 8]
call fcn.0040e4f0
mov ecx, dword [ebp - 0x850]
or ecx, 1
mov dword [ebp - 0x850], ecx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x848]
call fcn.0040e530
mov eax, dword [ebp + 8]
jmp 0x40ac6c
lea edx, [ebp - 0x1c]
push edx
push 0x20119
push 0
push 0x63aff0
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x82c], eax
cmp dword [ebp - 0x82c], 0
je 0x40aa83
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea edx, [ebp - 0x848]
push edx
mov ecx, dword [ebp + 8]
call fcn.0040e4f0
mov eax, dword [ebp - 0x850]
or eax, 1
mov dword [ebp - 0x850], eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x848]
call fcn.0040e530
mov eax, dword [ebp + 8]
jmp 0x40ac6c
lea ecx, [ebp - 0x828]
push ecx
push 0x20119
push 0
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x82c], eax
cmp dword [ebp - 0x82c], 0
je 0x40aaf7
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x848]
push eax
mov ecx, dword [ebp + 8]
call fcn.0040e4f0
mov ecx, dword [ebp - 0x850]
or ecx, 1
mov dword [ebp - 0x850], ecx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x848]
call fcn.0040e530
mov eax, dword [ebp + 8]
jmp 0x40ac6c
lea edx, [ebp - 0x84c]
push edx
push 0x20119
push 0
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp - 0x828]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x82c], eax
cmp dword [ebp - 0x82c], 0
je 0x40ab7e
mov edx, dword [ebp - 0x84c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x828]
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 - 0x848]
push edx
mov ecx, dword [ebp + 8]
call fcn.0040e4f0
mov eax, dword [ebp - 0x850]
or eax, 1
mov dword [ebp - 0x850], eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x848]
call fcn.0040e530
mov eax, dword [ebp + 8]
jmp 0x40ac6c
xor ecx, ecx
mov word [ebp - 0x824], cx
push 0x7fe
push 0
lea edx, [ebp - 0x822]
push edx
call fcn.005b4de0
add esp, 0xc
mov dword [ebp - 0x14], 0x400
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x824]
push ecx
push 0
push 0
mov edx, dword [ebp + 0x18]
push edx
mov eax, dword [ebp - 0x84c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [ebp - 0x84c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp - 0x828]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x1c]
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 - 0x824]
push edx
call fcn.005b50b1
add esp, 4
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x40ac3c
lea eax, [ebp - 0x848]
push eax
mov ecx, dword [ebp + 8]
call fcn.0040e4f0
mov ecx, dword [ebp - 0x850]
or ecx, 1
mov dword [ebp - 0x850], ecx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x848]
call fcn.0040e530
mov eax, dword [ebp + 8]
jmp 0x40ac6c
lea edx, [ebp - 0x824]
push edx
mov ecx, dword [ebp + 8]
call fcn.0040e4b0
mov eax, dword [ebp - 0x850]
or eax, 1
mov dword [ebp - 0x850], eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x848]
call fcn.0040e530
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x20]
xor ecx, ebp
call fcn.005b4b30
mov esp, ebp
pop ebp
ret 0x18