Function at 0x408440
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x46b23b
mov eax, dword fs:[0]
push eax
sub esp, 0x1cc
mov eax, dword [0x4811f4]
xor eax, esp
mov dword [esp + 0x1c8], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4811f4]
xor eax, esp
push eax
lea eax, [esp + 0x1e0]
mov dword fs:[0], eax
mov eax, dword [esp + 0x1f0]
xor ebx, ebx
mov dword [esp + 0x28], eax
mov dword [esp + 0x50], ebx
mov dword [esp + 0x1e8], 2
mov edi, 7
xor ecx, ecx
mov dword [eax + 0x18], edi
mov dword [eax + 0x14], ebx
mov word [eax + 4], cx
push 0xffffffffffffffff
push ebx
lea eax, [esp + 0x1fc]
xor edx, edx
push eax
lea ecx, [esp + 0x60]
mov dword [esp + 0x5c], 1
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x78], edi
mov dword [esp + 0x74], ebx
mov word [esp + 0x64], dx
call fcn.00401d20
xor ecx, ecx
mov byte [esp + 0x1f], bl
mov dword [esp + 0x14], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x114], edi
mov dword [esp + 0x110], ebx
mov word [esp + 0x100], cx
xor edx, edx
mov dword [esp + 0xf8], edi
mov dword [esp + 0xf4], ebx
mov word [esp + 0xe4], dx
push 0xffffffffffffffff
push ebx
lea ecx, [esp + 0x5c]
mov byte [esp + 0x1f0], 5
xor eax, eax
push ecx
lea ecx, [esp + 0x40]
mov dword [esp + 0x58], edi
mov dword [esp + 0x54], ebx
mov word [esp + 0x44], ax
call fcn.00401d20
mov byte [esp + 0x1e8], 6
push 0x11
xor edx, edx
push str.HKEY_CLASSES_ROOT
lea ecx, [esp + 0x158]
mov dword [esp + 0x170], edi
mov dword [esp + 0x16c], ebx
mov word [esp + 0x15c], dx
call fcn.00401c30
mov byte [esp + 0x1e8], 7
push 0x11
xor eax, eax
push str.HKEY_CURRENT_USER
lea ecx, [esp + 0x120]
mov dword [esp + 0x138], edi
mov dword [esp + 0x134], ebx
mov word [esp + 0x124], ax
call fcn.00401c30
mov byte [esp + 0x1e8], 8
xor ecx, ecx
push 0x12
mov word [esp + 0x174], cx
push str.HKEY_LOCAL_MACHINE
lea ecx, [esp + 0x174]
mov dword [esp + 0x18c], edi
mov dword [esp + 0x188], ebx
call fcn.00401c30
mov byte [esp + 0x1e8], 9
push 0xa
xor edx, edx
push str.HKEY_USERS
lea ecx, [esp + 0x13c]
mov dword [esp + 0x154], edi
mov dword [esp + 0x150], ebx
mov word [esp + 0x140], dx
call fcn.00401c30
mov byte [esp + 0x1e8], 0xa
push 0x15
xor eax, eax
push str.HKEY_PERFORMANCE_DATA
lea ecx, [esp + 0x190]
mov dword [esp + 0x1a8], edi
mov dword [esp + 0x1a4], ebx
mov word [esp + 0x194], ax
call fcn.00401c30
mov byte [esp + 0x1e8], 0xb
xor ecx, ecx
push 0x13
mov word [esp + 0x1ac], cx
push str.HKEY_CURRENT_CONFIG
lea ecx, [esp + 0x1ac]
mov dword [esp + 0x1c4], edi
mov dword [esp + 0x1c0], ebx
call fcn.00401c30
mov byte [esp + 0x1e8], 0xc
push 0xd
xor edx, edx
push str.HKEY_DYN_DATA
lea ecx, [esp + 0x1c8]
mov dword [esp + 0x1e0], edi
mov dword [esp + 0x1dc], ebx
mov word [esp + 0x1cc], dx
call fcn.00401c30
lea eax, [esp + 0x18]
mov byte [esp + 0x1e8], 0xd
mov ebp, 0x5c
push eax
lea ecx, [esp + 0x38]
mov dword [esp + 0x1c], ebp
call fcn.004082c0
lea ecx, [esp + 0x34]
push ecx
mov ecx, eax
xor edx, edx
lea esi, [esp + 0xc8]
call fcn.00407ff0
lea edx, [esp + 0x18]
mov byte [esp + 0x1e8], 0xe
push edx
lea ecx, [esp + 0x38]
mov dword [esp + 0x1c], ebp
call fcn.004082c0
lea edx, [eax + 1]
lea eax, [esp + 0x34]
push eax
or ecx, 0xffffffff
lea esi, [esp + 0x90]
call fcn.00407ff0
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esp + 0x40]
mov byte [esp + 0x1f4], 0xf
call fcn.00401d20
mov byte [esp + 0x1e8], 0xe
cmp dword [esp + 0xa4], 8
jb 0x40873c
mov ecx, dword [esp + 0x90]
push ecx
call fcn.004472f6
add esp, 4
mov dword [esp + 0xa4], edi
mov dword [esp + 0xa0], ebx
xor edx, edx
lea edi, [esp + 0x18]
lea ebx, [esp + 0x34]
mov word [esp + 0x90], dx
mov dword [esp + 0x18], ebp
call fcn.00408020
lea edx, [eax + 1]
mov eax, ebx
push eax
or ecx, 0xffffffff
lea esi, [esp + 0xac]
call fcn.00407ff0
push 0xffffffffffffffff
push 0
push eax
lea ecx, [esp + 0xec]
mov byte [esp + 0x1f4], 0x10
call fcn.00401d20
mov byte [esp + 0x1e8], 0xe
cmp dword [esp + 0xc0], 8
jb 0x4087b5
mov ecx, dword [esp + 0xac]
push ecx
call fcn.004472f6
add esp, 4
xor edx, edx
lea edi, [esp + 0x18]
lea ebx, [esp + 0x34]
mov dword [esp + 0xc0], 7
mov dword [esp + 0xbc], 0
mov word [esp + 0xac], dx
mov dword [esp + 0x18], ebp
call fcn.00408020
mov ecx, ebx
push ecx
mov ecx, eax
xor edx, edx
lea esi, [esp + 0x74]
call fcn.00407ff0
push 0xffffffffffffffff
xor ebx, ebx
push ebx
push eax
lea ecx, [esp + 0x108]
mov byte [esp + 0x1f4], 0x11
call fcn.00401d20
mov esi, 8
mov byte [esp + 0x1e8], 0xe
cmp dword [esp + 0x88], esi
jb 0x408833
mov edx, dword [esp + 0x74]
push edx
call fcn.004472f6
add esp, 4
xor eax, eax
mov ebp, 7
mov word [esp + 0x74], ax
mov eax, dword [esp + 0xc8]
mov dword [esp + 0x88], ebp
mov dword [esp + 0x84], ebx
cmp dword [esp + 0xdc], esi
jae 0x408864
lea eax, [esp + 0xc8]
mov edi, dword [esp + 0xd8]
push eax
mov eax, dword [esp + 0x168]
lea ecx, [esp + 0x154]
call fcn.00408390
test eax, eax
jne 0x408890
mov dword [esp + 0x14], bind
jmp 0x4089b7
mov eax, dword [esp + 0xc8]
cmp dword [esp + 0xdc], esi
jae 0x4088a7
lea eax, [esp + 0xc8]
mov edi, dword [esp + 0xd8]
push eax
mov eax, dword [esp + 0x130]
lea ecx, [esp + 0x11c]
call fcn.00408390
test eax, eax
jne 0x4088d3
mov dword [esp + 0x14], reloc.WS2_32.dll_accept
jmp 0x4089b7
mov eax, dword [esp + 0xc8]
cmp dword [esp + 0xdc], esi
jae 0x4088ea
lea eax, [esp + 0xc8]
mov edi, dword [esp + 0xd8]
push eax
mov eax, dword [esp + 0x184]
lea ecx, [esp + 0x170]
call fcn.00408390
test eax, eax
jne 0x408916
mov dword [esp + 0x14], reloc.WS2_32.dll_bind
jmp 0x4089b7
mov eax, dword [esp + 0xc8]
cmp dword [esp + 0xdc], esi
jae 0x40892d
lea eax, [esp + 0xc8]
mov edi, dword [esp + 0xd8]
push eax
mov eax, dword [esp + 0x14c]
lea ecx, [esp + 0x138]
call fcn.00408390
test eax, eax
jne 0x408956
mov dword [esp + 0x14], reloc.WS2_32.dll_closesocket
jmp 0x4089b7
lea eax, [esp + 0xc4]
lea ecx, [esp + 0x188]
call fcn.0040a1d0
test al, al
je 0x408977
mov dword [esp + 0x14], reloc.WS2_32.dll_connect
jmp 0x4089b7
lea eax, [esp + 0xc4]
lea ecx, [esp + 0x1a4]
call fcn.0040a1d0
test al, al
je 0x408998
mov dword [esp + 0x14], reloc.WS2_32.dll_getpeername
jmp 0x4089b7
lea eax, [esp + 0xc4]
lea ecx, [esp + 0x1c0]
call fcn.0040a1d0
test al, al
je 0x4089b7
mov dword [esp + 0x14], reloc.WS2_32.dll_getsockname
cmp dword [esp + 0xdc], esi
jb 0x4089d0
mov ecx, dword [esp + 0xc8]
push ecx
call fcn.004472f6
add esp, 4
xor edx, edx
mov dword [esp + 0xdc], ebp
mov dword [esp + 0xd8], ebx
mov word [esp + 0xc8], dx
cmp dword [esp + 0x1d8], esi
jb 0x408a01
mov eax, dword [esp + 0x1c4]
push eax
call fcn.004472f6
add esp, 4
xor ecx, ecx
mov dword [esp + 0x1d8], ebp
mov dword [esp + 0x1d4], ebx
mov word [esp + 0x1c4], cx
cmp dword [esp + 0x1bc], esi
jb 0x408a32
mov edx, dword [esp + 0x1a8]
push edx
call fcn.004472f6
add esp, 4
xor eax, eax
mov dword [esp + 0x1bc], ebp
mov dword [esp + 0x1b8], ebx
mov word [esp + 0x1a8], ax
cmp dword [esp + 0x1a0], esi
jb 0x408a63
mov ecx, dword [esp + 0x18c]
push ecx
call fcn.004472f6
add esp, 4
xor edx, edx
mov dword [esp + 0x1a0], ebp
mov dword [esp + 0x19c], ebx
mov word [esp + 0x18c], dx
cmp dword [esp + 0x14c], esi
jb 0x408a94
mov eax, dword [esp + 0x138]
push eax
call fcn.004472f6
add esp, 4
xor ecx, ecx
mov dword [esp + 0x14c], ebp
mov dword [esp + 0x148], ebx
mov word [esp + 0x138], cx
cmp dword [esp + 0x184], esi
jb 0x408ac5
mov edx, dword [esp + 0x170]
push edx
call fcn.004472f6
add esp, 4
xor eax, eax
mov dword [esp + 0x184], ebp
mov dword [esp + 0x180], ebx
mov word [esp + 0x170], ax
cmp dword [esp + 0x130], esi
jb 0x408af6
mov ecx, dword [esp + 0x11c]
push ecx
call fcn.004472f6
add esp, 4
xor edx, edx
mov dword [esp + 0x130], ebp
mov dword [esp + 0x12c], ebx
mov word [esp + 0x11c], dx
cmp dword [esp + 0x168], esi
jb 0x408b27
mov eax, dword [esp + 0x154]
push eax
call fcn.004472f6
add esp, 4
xor ecx, ecx
mov byte [esp + 0x1e8], 5
mov dword [esp + 0x168], ebp
mov dword [esp + 0x164], ebx
mov word [esp + 0x154], cx
cmp dword [esp + 0x4c], esi
jb 0x408b5a
mov edx, dword [esp + 0x38]
push edx
call fcn.004472f6
add esp, 4
mov edi, reloc.WS2_32.dll_accept
cmp dword [esp + 0x14], edi
jne 0x408b7d
lea eax, [esp + 0x14]
push eax
push 0xf003f
call dword [sym.imp.ADVAPI32.dll_RegOpenCurrentUser]
test eax, eax
je 0x408b7d
mov dword [esp + 0x14], edi
mov eax, dword [esp + 0x100]
cmp dword [esp + 0x114], esi
jae 0x408b94
lea eax, [esp + 0x100]
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x20]
push ecx
push 0x20019
push ebx
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x408c66
mov eax, dword [esp + 0xe4]
mov dword [esp + 0x18], ebx
mov dword [esp + 0x24], ebx
cmp dword [esp + 0xf8], esi
jae 0x408bd8
lea eax, [esp + 0xe4]
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea ecx, [esp + 0x24]
push ecx
push ebx
lea edx, [esp + 0x20]
push edx
push ebx
push eax
mov eax, dword [esp + 0x34]
push eax
call edi
test eax, eax
jne 0x408c5b
cmp dword [esp + 0x18], 1
jne 0x408c5b
mov ecx, dword [esp + 0x24]
push ecx
call fcn.0044703f
add esp, 4
cmp dword [esp + 0xf8], 8
mov esi, eax
mov eax, dword [esp + 0xe4]
jae 0x408c24
lea eax, [esp + 0xe4]
lea edx, [esp + 0x24]
push edx
mov edx, dword [esp + 0x24]
push esi
lea ecx, [esp + 0x20]
push ecx
push ebx
push eax
push edx
call edi
test eax, eax
jne 0x408c52
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x24]
push ecx
mov dword [esp + 0x34], eax
mov byte [esp + 0x23], 1
call ebp
jmp 0x408c68
push esi
call fcn.0044849d
add esp, 4
mov ecx, dword [esp + 0x20]
push ecx
mov esi, ebx
call ebp
jmp 0x408c68
mov esi, ebx
mov eax, dword [esp + 0x14]
mov edx, eax
and edx, 0x80000000
cmp edx, 0x80000000
je 0x408c7f
push eax
call ebp
mov ebp, 8
cmp dword [esp + 0xf8], ebp
jb 0x408c9d
mov eax, dword [esp + 0xe4]
push eax
call fcn.004472f6
add esp, 4
xor ecx, ecx
mov edi, 7
mov dword [esp + 0xf8], edi
mov dword [esp + 0xf4], ebx
mov word [esp + 0xe4], cx
cmp dword [esp + 0x114], ebp
jb 0x408cd3
mov edx, dword [esp + 0x100]
push edx
call fcn.004472f6
add esp, 4
xor eax, eax
mov byte [esp + 0x1e8], 2
mov dword [esp + 0x114], edi
mov dword [esp + 0x110], ebx
mov word [esp + 0x100], ax
cmp dword [esp + 0x6c], ebp
jb 0x408d06
mov ecx, dword [esp + 0x58]
push ecx
call fcn.004472f6
add esp, 4
xor edx, edx
mov dword [esp + 0x6c], edi
mov dword [esp + 0x68], ebx
mov word [esp + 0x58], dx
cmp byte [esp + 0x1f], bl
je 0x408d3c
cmp esi, ebx
je 0x408d50
cmp dword [esp + 0x30], ebx
jbe 0x408d50
mov eax, dword [esp + 0x28]
push eax
mov edx, esi
call fcn.00406e80
push esi
call fcn.0044849d
add esp, 4
jmp 0x408d50
push 0xffffffffffffffff
push ebx
lea ecx, [esp + 0x218]
push ecx
mov ecx, dword [esp + 0x34]
call fcn.00401d20
cmp dword [esp + 0x20c], ebp
jb 0x408d69
mov edx, dword [esp + 0x1f8]
push edx
call fcn.004472f6
add esp, 4
xor eax, eax
mov dword [esp + 0x20c], edi
mov dword [esp + 0x208], ebx
mov word [esp + 0x1f8], ax
cmp dword [esp + 0x228], ebp
jb 0x408d9a
mov ecx, dword [esp + 0x214]
push ecx
call fcn.004472f6
add esp, 4
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x1e0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x1c8]
xor ecx, esp
call fcn.00447258
add esp, 0x1d8
ret