Function at 0x407f80
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x469acb
mov eax, dword fs:[0]
push eax
sub esp, 0x1cc
mov eax, dword [0x47f1f4]
xor eax, esp
mov dword [esp + 0x1c8], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x47f1f4]
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.00401b10
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.00401b10
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.00401a20
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.00401a20
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.00401a20
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.00401a20
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.00401a20
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.00401a20
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.00401a20
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.00407c50
lea ecx, [esp + 0x34]
push ecx
mov ecx, eax
xor edx, edx
lea esi, [esp + 0xc8]
call fcn.00407860
lea edx, [esp + 0x18]
mov byte [esp + 0x1e8], 0xe
push edx
lea ecx, [esp + 0x38]
mov dword [esp + 0x1c], ebp
call fcn.00407c50
lea edx, [eax + 1]
lea eax, [esp + 0x34]
push eax
or ecx, 0xffffffff
lea esi, [esp + 0x90]
call fcn.00407860
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esp + 0x40]
mov byte [esp + 0x1f4], 0xf
call fcn.00401b10
mov byte [esp + 0x1e8], 0xe
cmp dword [esp + 0xa4], 8
jb 0x40827c
mov ecx, dword [esp + 0x90]
push ecx
call fcn.00446286
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.00407890
lea edx, [eax + 1]
mov eax, ebx
push eax
or ecx, 0xffffffff
lea esi, [esp + 0xac]
call fcn.00407860
push 0xffffffffffffffff
push 0
push eax
lea ecx, [esp + 0xec]
mov byte [esp + 0x1f4], 0x10
call fcn.00401b10
mov byte [esp + 0x1e8], 0xe
cmp dword [esp + 0xc0], 8
jb 0x4082f5
mov ecx, dword [esp + 0xac]
push ecx
call fcn.00446286
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.00407890
mov ecx, ebx
push ecx
mov ecx, eax
xor edx, edx
lea esi, [esp + 0x74]
call fcn.00407860
push 0xffffffffffffffff
xor ebx, ebx
push ebx
push eax
lea ecx, [esp + 0x108]
mov byte [esp + 0x1f4], 0x11
call fcn.00401b10
mov esi, 8
mov byte [esp + 0x1e8], 0xe
cmp dword [esp + 0x88], esi
jb 0x408373
mov edx, dword [esp + 0x74]
push edx
call fcn.00446286
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 0x4083a4
lea eax, [esp + 0xc8]
mov edi, dword [esp + 0xd8]
push eax
mov eax, dword [esp + 0x168]
lea ecx, [esp + 0x154]
call fcn.00407ed0
test eax, eax
jne 0x4083d0
mov dword [esp + 0x14], getsockname
jmp 0x4084f7
mov eax, dword [esp + 0xc8]
cmp dword [esp + 0xdc], esi
jae 0x4083e7
lea eax, [esp + 0xc8]
mov edi, dword [esp + 0xd8]
push eax
mov eax, dword [esp + 0x130]
lea ecx, [esp + 0x11c]
call fcn.00407ed0
test eax, eax
jne 0x408413
mov dword [esp + 0x14], reloc.WS2_32.dll_accept
jmp 0x4084f7
mov eax, dword [esp + 0xc8]
cmp dword [esp + 0xdc], esi
jae 0x40842a
lea eax, [esp + 0xc8]
mov edi, dword [esp + 0xd8]
push eax
mov eax, dword [esp + 0x184]
lea ecx, [esp + 0x170]
call fcn.00407ed0
test eax, eax
jne 0x408456
mov dword [esp + 0x14], reloc.WS2_32.dll_bind
jmp 0x4084f7
mov eax, dword [esp + 0xc8]
cmp dword [esp + 0xdc], esi
jae 0x40846d
lea eax, [esp + 0xc8]
mov edi, dword [esp + 0xd8]
push eax
mov eax, dword [esp + 0x14c]
lea ecx, [esp + 0x138]
call fcn.00407ed0
test eax, eax
jne 0x408496
mov dword [esp + 0x14], reloc.WS2_32.dll_closesocket
jmp 0x4084f7
lea eax, [esp + 0xc4]
lea ecx, [esp + 0x188]
call fcn.00409d10
test al, al
je 0x4084b7
mov dword [esp + 0x14], reloc.WS2_32.dll_connect
jmp 0x4084f7
lea eax, [esp + 0xc4]
lea ecx, [esp + 0x1a4]
call fcn.00409d10
test al, al
je 0x4084d8
mov dword [esp + 0x14], reloc.WS2_32.dll_getpeername
jmp 0x4084f7
lea eax, [esp + 0xc4]
lea ecx, [esp + 0x1c0]
call fcn.00409d10
test al, al
je 0x4084f7
mov dword [esp + 0x14], reloc.WS2_32.dll_getsockname
cmp dword [esp + 0xdc], esi
jb 0x408510
mov ecx, dword [esp + 0xc8]
push ecx
call fcn.00446286
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 0x408541
mov eax, dword [esp + 0x1c4]
push eax
call fcn.00446286
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 0x408572
mov edx, dword [esp + 0x1a8]
push edx
call fcn.00446286
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 0x4085a3
mov ecx, dword [esp + 0x18c]
push ecx
call fcn.00446286
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 0x4085d4
mov eax, dword [esp + 0x138]
push eax
call fcn.00446286
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 0x408605
mov edx, dword [esp + 0x170]
push edx
call fcn.00446286
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 0x408636
mov ecx, dword [esp + 0x11c]
push ecx
call fcn.00446286
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 0x408667
mov eax, dword [esp + 0x154]
push eax
call fcn.00446286
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 0x40869a
mov edx, dword [esp + 0x38]
push edx
call fcn.00446286
add esp, 4
mov edi, reloc.WS2_32.dll_accept
cmp dword [esp + 0x14], edi
jne 0x4086bd
lea eax, [esp + 0x14]
push eax
push 0xf003f
call dword [sym.imp.ADVAPI32.dll_RegOpenCurrentUser]
test eax, eax
je 0x4086bd
mov dword [esp + 0x14], edi
mov eax, dword [esp + 0x100]
cmp dword [esp + 0x114], esi
jae 0x4086d4
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 0x4087a6
mov eax, dword [esp + 0xe4]
mov dword [esp + 0x18], ebx
mov dword [esp + 0x24], ebx
cmp dword [esp + 0xf8], esi
jae 0x408718
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 0x40879b
cmp dword [esp + 0x18], 1
jne 0x40879b
mov ecx, dword [esp + 0x24]
push ecx
call fcn.00445fcf
add esp, 4
cmp dword [esp + 0xf8], 8
mov esi, eax
mov eax, dword [esp + 0xe4]
jae 0x408764
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 0x408792
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 0x4087a8
push esi
call fcn.0044742d
add esp, 4
mov ecx, dword [esp + 0x20]
push ecx
mov esi, ebx
call ebp
jmp 0x4087a8
mov esi, ebx
mov eax, dword [esp + 0x14]
mov edx, eax
and edx, 0x80000000
cmp edx, 0x80000000
je 0x4087bf
push eax
call ebp
mov ebp, 8
cmp dword [esp + 0xf8], ebp
jb 0x4087dd
mov eax, dword [esp + 0xe4]
push eax
call fcn.00446286
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 0x408813
mov edx, dword [esp + 0x100]
push edx
call fcn.00446286
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 0x408846
mov ecx, dword [esp + 0x58]
push ecx
call fcn.00446286
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 0x40887c
cmp esi, ebx
je 0x408890
cmp dword [esp + 0x30], ebx
jbe 0x408890
mov eax, dword [esp + 0x28]
push eax
mov edx, esi
call fcn.004067d0
push esi
call fcn.0044742d
add esp, 4
jmp 0x408890
push 0xffffffffffffffff
push ebx
lea ecx, [esp + 0x218]
push ecx
mov ecx, dword [esp + 0x34]
call fcn.00401b10
cmp dword [esp + 0x20c], ebp
jb 0x4088a9
mov edx, dword [esp + 0x1f8]
push edx
call fcn.00446286
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 0x4088da
mov ecx, dword [esp + 0x214]
push ecx
call fcn.00446286
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.004461e8
add esp, 0x1d8
ret