Function at 0x459790
Capabilities:
Query or enumerate registry key
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x4a7e08
mov eax, dword fs:[0]
push eax
sub esp, 0x604
mov eax, dword [0x4c7894]
xor eax, esp
mov dword [esp + 0x600], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4c7894]
xor eax, esp
push eax
lea eax, [esp + 0x618]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x628]
xor ebx, ebx
push ebx
push ebx
push 3
push ebx
push 3
push 0xc0000000
push str.__._6A8DCD5A_CB21_4FFB_BA2D_622381D69E3C
mov dword [esp + 0x44], ebx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x459bdf
mov dword [esp + 0x30], ebx
push 0x39
mov esi, 0xf
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionNetworkCards
lea ecx, [esp + 0xa4]
mov dword [esp + 0x628], ebx
mov dword [esp + 0xbc], esi
mov dword [esp + 0xb8], ebx
mov byte [esp + 0xa8], bl
call fcn.0040ecf0
mov dword [esp + 0x98], esi
mov dword [esp + 0x94], ebx
mov byte [esp + 0x84], bl
cmp dword [esp + 0xb4], 0x10
mov eax, dword [esp + 0xa0]
mov byte [esp + 0x620], 2
jae 0x459867
lea eax, [esp + 0xa0]
lea ecx, [esp + 0x18]
push ecx
push 0x2001f
push ebx
push eax
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x2c], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x459934
mov edx, dword [esp + 0x18]
mov dword [esp + 0x30], edx
mov dword [esp + 0x1c], ebx
push 0x400
lea edx, [esp + 0x218]
push ebx
push edx
call fcn.00479d70
add esp, 0xc
lea eax, [esp + 0x70]
push eax
mov eax, dword [esp + 0x20]
push ebx
push ebx
push ebx
lea ecx, [esp + 0x30]
push ecx
mov ecx, dword [esp + 0x2c]
lea edx, [esp + 0x228]
push edx
push eax
push ecx
mov dword [esp + 0x40], 0x400
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
jne 0x459b42
add dword [esp + 0x1c], 1
xor esi, esi
mov dword [esp + 0x2c], esi
push 0x4adbe8
lea edx, [esp + 0xa0]
push edx
lea eax, [esp + 0x58]
push eax
mov byte [esp + 0x62c], 3
call fcn.00418fe0
lea ecx, [esp + 0x220]
push ecx
push eax
lea edx, [esp + 0x48]
push edx
mov byte [esp + 0x638], 4
call fcn.00418fe0
add esp, 0x18
cmp dword [eax + 0x18], 0x10
jb 0x459997
mov eax, dword [eax + 4]
jmp 0x45999a
push ebx
mov dword [ebp + 0x18], esi
mov dword [ebp + 0x14], ebx
push 0x4ac460
mov ecx, ebp
mov byte [ebp + 4], bl
call fcn.0040ecf0
mov edi, 0x10
cmp dword [esp + 0x98], edi
jb 0x459968
mov eax, dword [esp + 0x84]
push eax
call fcn.0047964d
add esp, 4
cmp dword [esp + 0xb4], edi
mov dword [esp + 0x98], esi
mov dword [esp + 0x94], ebx
mov byte [esp + 0x84], bl
jb 0x459d99
mov ecx, dword [esp + 0xa0]
push ecx
jmp 0x459d91
add eax, 4
lea ecx, [esp + 0x24]
push ecx
push 0x2001f
push ebx
push eax
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x38], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x4599c5
mov esi, dword [esp + 0x24]
xor eax, eax
mov dword [esp + 0x2c], esi
cmp eax, ebx
setne byte [esp + 0x17]
cmp dword [esp + 0x4c], 0x10
jb 0x4599de
mov edx, dword [esp + 0x38]
push edx
call fcn.0047964d
add esp, 4
cmp dword [esp + 0x68], 0x10
mov dword [esp + 0x4c], 0xf
mov dword [esp + 0x48], ebx
mov byte [esp + 0x38], bl
mov byte [esp + 0x620], 3
jb 0x459a0a
mov eax, dword [esp + 0x54]
push eax
call fcn.0047964d
add esp, 4
cmp byte [esp + 0x17], bl
je 0x459a24
cmp esi, ebx
je 0x459896
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x459896
push 0x400
lea ecx, [esp + 0x218]
push ebx
push ecx
mov dword [esp + 0x2c], 0x400
call fcn.00479d70
add esp, 0xc
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x218]
push eax
push str.ServiceName
lea ecx, [esp + 0x38]
call fcn.004589c0
push 4
push str.__._
lea ecx, [esp + 0x3c]
mov dword [esp + 0x54], 0xf
mov dword [esp + 0x50], ebx
mov byte [esp + 0x40], bl
call fcn.0040ecf0
lea ecx, [esp + 0x214]
push ecx
lea edx, [esp + 0x38]
push edx
lea eax, [esp + 0x58]
push eax
mov byte [esp + 0x62c], 5
call fcn.00418fe0
add esp, 0xc
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esp + 0x8c]
mov byte [esp + 0x62c], 6
call fcn.00408230
mov edi, 0x10
cmp dword [esp + 0x68], edi
jb 0x459acf
mov ecx, dword [esp + 0x54]
push ecx
call fcn.0047964d
add esp, 4
cmp dword [esp + 0x4c], edi
mov dword [esp + 0x68], 0xf
mov dword [esp + 0x64], ebx
mov byte [esp + 0x54], bl
jb 0x459af2
mov edx, dword [esp + 0x38]
push edx
call fcn.0047964d
add esp, 4
cmp dword [esp + 0x98], edi
mov eax, dword [esp + 0x84]
jae 0x459b09
lea eax, [esp + 0x84]
push ebx
push ebx
push 3
push ebx
push 3
push closesocket
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x459b37
cmp esi, ebx
je 0x459896
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x459896
cmp esi, ebx
je 0x459b42
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [esp + 0x98], 0x10
jb 0x459b5c
mov eax, dword [esp + 0x84]
push eax
call fcn.0047964d
add esp, 4
cmp dword [esp + 0xb4], 0x10
mov esi, 0xf
mov dword [esp + 0x98], esi
mov dword [esp + 0x94], ebx
mov byte [esp + 0x84], bl
jb 0x459b90
mov ecx, dword [esp + 0xa0]
push ecx
call fcn.0047964d
add esp, 4
mov eax, dword [esp + 0x18]
cmp eax, ebx
mov dword [esp + 0xb4], esi
mov dword [esp + 0xb0], ebx
mov byte [esp + 0xa0], bl
mov dword [esp + 0x620], 0xffffffff
je 0x459bbf
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp edi, 0xffffffff
jne 0x459bdf
push ebx
mov dword [ebp + 0x18], esi
mov dword [ebp + 0x14], ebx
push 0x4ac460
mov ecx, ebp
mov byte [ebp + 4], bl
call fcn.0040ecf0
jmp 0x459d99
push 0xff
lea edx, [esp + 0x119]
push ebx
push edx
mov byte [esp + 0x120], bl
call fcn.00479d70
push 0x40
lea eax, [esp + 0xe4]
push ebx
push eax
mov dword [esp + 0x40], 0x1010101
call fcn.00479d70
add esp, 0x18
push ebx
lea ecx, [esp + 0x70]
push ecx
push 0x100
lea edx, [esp + 0x120]
push edx
push 4
lea eax, [esp + 0x3c]
push eax
push 0x170002
push edi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x459c89
movzx ecx, byte [esp + 0x119]
movzx edx, byte [esp + 0x118]
movzx eax, byte [esp + 0x117]
push ecx
movzx ecx, byte [esp + 0x11a]
push edx
movzx edx, byte [esp + 0x11d]
push eax
movzx eax, byte [esp + 0x120]
push ecx
push edx
push eax
lea ecx, [esp + 0xec]
push str._02X_02X_02X_02X_02X_02X
push ecx
call fcn.0047ab60
add esp, 0x20
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x70]
call fcn.00459160
lea edx, [esp + 0xb8]
push edx
lea ecx, [esp + 0x74]
call fcn.004593e0
mov eax, dword [esp + 0xcc]
push ebx
push 0x4ac460
push eax
push ebx
lea ecx, [esp + 0xc8]
mov dword [esp + 0x630], 7
call fcn.00414780
test eax, eax
je 0x459d23
lea eax, [esp + 0xd4]
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x459ce0
sub eax, edx
mov edx, dword [esp + 0xcc]
push eax
lea ecx, [esp + 0xd8]
push ecx
push edx
push ebx
lea ecx, [esp + 0xc8]
call fcn.00414780
test eax, eax
je 0x459d23
push 0x20
mov dword [ebp + 0x18], 0xf
mov dword [ebp + 0x14], ebx
mov byte [ebp + 4], bl
push str.77777777777777777777777777777777
jmp 0x459d78
lea eax, [esp + 0xd4]
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x459d30
sub eax, edx
push eax
lea ecx, [esp + 0xd8]
push ecx
lea ecx, [esp + 0x78]
call fcn.00458b60
lea eax, [esp + 0xd4]
mov dword [ebp + 0x18], 0xf
mov dword [ebp + 0x14], ebx
mov byte [ebp + 4], bl
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x459d64
sub eax, edx
push eax
lea edx, [esp + 0xd8]
push edx
mov ecx, ebp
call fcn.0040ecf0
cmp dword [esp + 0xd0], 0x10
jb 0x459d99
mov eax, dword [esp + 0xbc]
push eax
call fcn.0047964d
add esp, 4
mov eax, ebp
mov ecx, dword [esp + 0x618]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x600]
xor ecx, esp
call fcn.0047a194
add esp, 0x610
ret