Function at 0x410710
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x57e0e0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x34]
xor ebp, ebp
push 0xffffffffffffffff
push ebp
mov ecx, edi
call fcn.005666e6
mov eax, dword [0x5f9f88]
mov dword [esp + 0x20], eax
push 0x200
mov dword [esp + 0x30], ebp
call fcn.00567b03
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
add esp, 4
lea ecx, [esp + 0x34]
mov esi, eax
push ecx
push 0xf003f
push ebp
push 0x5e88d8
push reloc.WSOCK32.dll_accept
call ebx
test eax, eax
jne 0x410825
mov edx, dword [0x5f9f88]
mov dword [esp + 0x10], edx
push eax
lea eax, [esp + 0x14]
push 0x5e78d4
push eax
mov byte [esp + 0x38], 1
call fcn.00563eb4
add esp, 0xc
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x38]
lea edx, [esp + 0x1c]
push esi
push edx
push 0
push eax
push ecx
mov dword [esp + 0x30], 1
mov dword [esp + 0x2c], 0x200
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x4107ea
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x34]
lea edx, [esp + 0x14]
push edx
push esi
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
test eax, eax
jne 0x41080c
inc ebp
lea edx, [esp + 0x10]
push ebp
push 0x5e78d4
push edx
call fcn.00563eb4
mov eax, dword [edi + 8]
add esp, 0xc
mov ecx, edi
push esi
push eax
call fcn.0056688f
jmp 0x41079f
mov eax, dword [esp + 0x34]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x10]
mov byte [esp + 0x2c], 0
call fcn.0056870c
lea ecx, [esp + 0x34]
push ecx
push 0xf003f
push 0
push 0x5e88ac
push reloc.WSOCK32.dll_accept
call ebx
test eax, eax
jne 0x410940
mov edx, dword [0x5f9f88]
xor ebx, ebx
mov dword [esp + 0x10], edx
push ebx
lea eax, [esp + 0x14]
push 0x5e78d4
push eax
mov byte [esp + 0x38], 2
call fcn.00563eb4
add esp, 0xc
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x38]
lea edx, [esp + 0x20]
push esi
push edx
push 0
push eax
push ecx
mov dword [esp + 0x34], 1
mov dword [esp + 0x2c], 0x200
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x4108b4
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x34]
lea edx, [esp + 0x14]
push edx
push esi
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
test eax, eax
jne 0x410927
inc ebx
lea edx, [esp + 0x10]
push ebx
push 0x5e78d4
push edx
call fcn.00563eb4
mov eax, dword [edi + 8]
add esp, 0xc
xor ebp, ebp
test eax, eax
jle 0x41090e
push esi
lea ecx, [esp + 0x1c]
call fcn.0056877a
mov eax, dword [edi + 4]
push esi
lea eax, [eax + ebp*4]
mov eax, dword [eax]
push eax
call fcn.005503ed
add esp, 8
mov byte [esp + 0x2c], 2
test eax, eax
lea ecx, [esp + 0x18]
je 0x410909
call fcn.0056870c
mov eax, dword [edi + 8]
inc ebp
cmp ebp, eax
jl 0x4108d1
jmp 0x41090e
call fcn.0056870c
mov eax, dword [edi + 8]
cmp ebp, eax
jl 0x410869
push esi
push eax
mov ecx, edi
call fcn.0056688f
jmp 0x410869
mov ecx, dword [esp + 0x34]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x10]
mov byte [esp + 0x2c], 0
call fcn.0056870c
lea ecx, [esp + 0x20]
mov dword [esp + 0x2c], 0xffffffff
call fcn.0056870c
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret 4