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

Disassembly:
push 0xffffffffffffffff
push 0x40dcc6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x40c
mov eax, dword [0x4111a4]
push ebx
push ebp
push esi
xor ebx, ebx
push edi
mov dword [esp + 0x24], ebx
push ebx
mov ebp, 0xf
push 0x40e18c
lea ecx, [esp + 0x78]
mov dword [esp + 0x420], eax
mov dword [esp + 0x90], ebp
mov dword [esp + 0x8c], ebx
mov byte [esp + 0x7c], bl
call fcn.004015c0
mov ecx, 0xe
mov esi, str.SOFTWAREMicrosoftWindows_NTCurrentVersionNetworkCards
lea edi, [esp + 0x8c]
rep movsd dword es:[edi], dword [esi]
mov eax, 0x104
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
lea eax, [esp + 0x18]
push eax
push 0x20019
push ebx
lea ecx, [esp + 0x98]
push ecx
push 0x80000002
mov dword [esp + 0x438], ebx
movsw word es:[edi], word [esi]
mov dword [esp + 0x30], ebx
mov dword [esp + 0x40], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x404906
mov esi, dword [esp + 0x42c]
push 0xffffffffffffffff
push ebx
lea edx, [esp + 0x78]
mov dword [esi + 0x18], ebp
mov dword [esi + 0x14], ebx
push edx
mov ecx, esi
mov byte [esi + 4], bl
call fcn.004012d0
cmp dword [esp + 0x88], 0x10
jmp 0x404bac
mov eax, dword [esp + 0x18]
push ebx
push ebx
push ebx
push ebx
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x11c]
push edx
push ebx
push eax
xor ebp, ebp
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
cmp eax, 0x103
je 0x404b0d
mov edi, 0x40e18c
lea esi, [esp + 0x108]
mov ecx, 1
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
je 0x404acf
lea eax, [esp + 0x108]
push eax
lea ecx, [esp + 0x90]
push ecx
push str._s_s
lea edx, [esp + 0x31c]
push 0x104
push edx
call fcn.00406973
add esp, 0x14
lea eax, [esp + 0x20]
push eax
push 0x20019
push ebx
lea ecx, [esp + 0x31c]
push ecx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x404acf
lea edx, [esp + 0x14]
push edx
mov edx, dword [esp + 0x24]
lea eax, [esp + 0x210]
push eax
lea ecx, [esp + 0x34]
push ecx
push ebx
push str.ServiceName
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov eax, dword [esp + 0x20]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x14]
push 4
mov byte [esp + ecx + 0x210], bl
mov esi, 0xf
push str.._
lea ecx, [esp + 0x38]
mov dword [esp + 0x50], esi
mov dword [esp + 0x4c], ebx
mov byte [esp + 0x3c], bl
call fcn.004015c0
lea edx, [esp + 0x20c]
push edx
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x5c]
push ecx
mov byte [esp + 0x430], 1
call fcn.00404780
mov eax, dword [esp + 0x54]
mov edi, 0x10
add esp, 0xc
cmp eax, edi
mov byte [esp + 0x424], bl
jb 0x404a38
mov edx, dword [esp + 0x34]
push edx
call fcn.0040627d
add esp, 4
cmp dword [esp + 0x6c], edi
mov eax, dword [esp + 0x58]
mov dword [esp + 0x48], esi
mov dword [esp + 0x44], ebx
mov byte [esp + 0x34], bl
jae 0x404a52
lea eax, [esp + 0x58]
push ebx
push 0x80
push 3
push ebx
push ebx
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x404aac
push ebx
lea eax, [esp + 0x2c]
push eax
push 6
lea ecx, [esp + 0x58]
push ecx
push 4
lea edx, [esp + 0x38]
push edx
push 0x170002
push esi
mov dword [esp + 0x44], 0x1010101
mov dword [esp + 0x48], ebx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
push esi
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp ebp, ebx
jne 0x404be4
cmp dword [esp + 0x6c], edi
jb 0x404abf
mov eax, dword [esp + 0x58]
push eax
call fcn.0040627d
add esp, 4
mov dword [esp + 0x6c], 0xf
mov dword [esp + 0x68], ebx
mov byte [esp + 0x58], bl
mov eax, dword [esp + 0x1c]
push ebx
push ebx
push ebx
mov ecx, 0x104
push ebx
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], ecx
lea ecx, [esp + 0x20]
push ecx
inc eax
lea edx, [esp + 0x11c]
push edx
push eax
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x34]
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
cmp eax, 0x103
jne 0x404930
mov edi, 0x10
mov edx, dword [esp + 0x18]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp ebp, 1
jne 0x404b82
movzx eax, byte [esp + 0x51]
movzx ecx, byte [esp + 0x50]
movzx edx, byte [esp + 0x4f]
push eax
movzx eax, byte [esp + 0x52]
push ecx
movzx ecx, byte [esp + 0x55]
push edx
movzx edx, byte [esp + 0x58]
push eax
push ecx
push edx
push str._02X_02X_02X_02X_02X_02X
lea eax, [esp + 0xe4]
push 0x40
push eax
call fcn.00406973
lea eax, [esp + 0xec]
add esp, 0x24
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x404b67
sub eax, edx
push eax
lea ecx, [esp + 0xcc]
push ecx
lea ecx, [esp + 0x78]
call fcn.004015c0
mov esi, dword [esp + 0x42c]
push 0xffffffffffffffff
push ebx
lea edx, [esp + 0x78]
mov dword [esi + 0x18], 0xf
mov dword [esi + 0x14], ebx
push edx
mov ecx, esi
mov byte [esi + 4], bl
call fcn.004012d0
cmp dword [esp + 0x88], edi
jb 0x404bbb
mov eax, dword [esp + 0x74]
push eax
call fcn.0040627d
add esp, 4
mov ecx, dword [esp + 0x41c]
pop edi
mov eax, esi
pop esi
pop ebp
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x40c]
pop ebx
call fcn.0040678d
add esp, 0x418
ret 4
cmp dword [esp + 0x6c], edi
jb 0x404b12
mov ecx, dword [esp + 0x58]
push ecx
call fcn.0040627d
add esp, 4
jmp 0x404b12