Function at 0x404e20
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x42cf5e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1b4
push ebx
push ebp
push esi
push edi
mov ecx, 0x31
xor eax, eax
lea edi, [esp + 0xfd]
mov byte [esp + 0xfc], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x10]
xor ebp, ebp
push eax
push 8
push ebp
push 0x4392a4
push reloc.WSOCK32.dll_bind
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x38], ebp
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x404fa1
lea ecx, [esp + 0x34]
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
push ecx
mov ecx, dword [esp + 0x14]
push ebp
push ebp
lea edx, [esp + 0x24]
push ebp
lea eax, [esp + 0x2c]
push edx
push eax
mov ebx, 3
push ebp
push ecx
mov dword [esp + 0x38], ebx
mov byte [esp + 0x34], 1
call edi
test eax, eax
jne 0x404f96
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea esi, [esp + 0xfc]
lea edx, [esp + 0x1c]
lea eax, [esp + 0x3c]
push edx
push 0x4392a4
push 0x43929c
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea ecx, [esp + 0x20]
lea edx, [esp + 0x3c]
push ecx
push 1
push 0
push edx
push reloc.WSOCK32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x404f56
lea eax, [esp + 0x2c]
lea ecx, [esp + 0x7c]
push eax
mov eax, dword [esp + 0x24]
lea edx, [esp + 0x34]
push ecx
push edx
push 0
push 0x439290
push eax
mov dword [esp + 0x44], 0x80
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x404f4b
cmp dword [esp + 0x30], 1
jne 0x404f4b
mov edx, dword [esp + 0x28]
lea ecx, [esp + 0x7c]
mov eax, esi
inc edx
push ecx
push eax
mov dword [esp + 0x30], edx
add esi, 0x14
call ebp
mov edx, dword [esp + 0x20]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x14]
mov cl, byte [esp + 0x14]
and eax, 0xff
inc cl
mov byte [esp + 0x14], cl
lea ecx, [esp + 0x34]
push ecx
push 0
push 0
lea edx, [esp + 0x24]
push 0
lea ecx, [esp + 0x2c]
push edx
mov edx, dword [esp + 0x24]
push ecx
push eax
push edx
mov dword [esp + 0x38], ebx
call edi
test eax, eax
je 0x404ec7
mov ebp, dword [esp + 0x24]
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x28]
mov dword [esp + 0x2c], 0
test eax, eax
jle 0x40512a
lea ecx, [esp + 0xfc]
mov dword [esp + 0x1c], ecx
test ebp, ebp
jne 0x40512a
mov edx, dword [esp + 0x1c]
lea eax, [esp + 0x3c]
push edx
push 0x43926c
push 0x439254
push eax
xor esi, esi
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea ecx, [esp + 0x10]
xor ebx, ebx
lea edx, [esp + 0x3c]
push ecx
push 1
push ebx
push edx
push reloc.WSOCK32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40510a
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [esp + 0x18]
lea ecx, [esp + 0x20]
push eax
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x18]
push ecx
push edx
push ebx
push 0x439248
push eax
mov dword [esp + 0x38], ebx
mov dword [esp + 0x30], 4
call edi
test eax, eax
jne 0x405046
cmp dword [esp + 0x14], 4
jne 0x405046
mov esi, dword [esp + 0x20]
cmp esi, ebx
mov dword [esp + 0x18], 0x80
mov eax, 0x439234
jne 0x40505c
mov eax, 0x439224
lea ecx, [esp + 0x18]
lea edx, [esp + 0x7c]
push ecx
lea ecx, [esp + 0x18]
push edx
mov edx, dword [esp + 0x18]
push ecx
push ebx
push eax
push edx
call edi
test eax, eax
jne 0x4050ff
cmp dword [esp + 0x14], 7
jne 0x4050ff
mov al, byte [esp + 0x7c]
lea edi, [esp + 0x7c]
test al, al
je 0x4050ff
cmp ebp, ebx
jne 0x4050ff
push 0x14
call fcn.00422e2f
add esp, 4
mov dword [esp + 0x30], eax
cmp eax, ebx
mov dword [esp + 0x1cc], ebx
je 0x4050b7
mov ecx, eax
call fcn.00409d80
mov esi, eax
jmp 0x4050b9
xor esi, esi
push edi
mov ecx, esi
mov dword [esp + 0x1d0], 0xffffffff
call fcn.00409f30
xor ecx, ecx
test eax, eax
setge cl
cmp esi, ebx
mov dword [esp + 0x24], ecx
je 0x4050eb
mov ecx, esi
call fcn.00409f10
push esi
call fcn.00422e58
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebp, dword [esp + 0x24]
lea edi, [edi + eax + 1]
cmp byte [edi], 0
jne 0x40508f
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x2c]
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x28]
inc eax
add edx, 0x14
cmp eax, ecx
mov dword [esp + 0x2c], eax
mov dword [esp + 0x1c], edx
jl 0x404fc0
mov ecx, dword [esp + 0x1c4]
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c0
ret