Function at 0x401078
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40df02
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x58
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x10], 0x10000
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.MSVCRT.dll_malloc]
add esp, 4
mov dword [ebp - 0x2c], eax
push 0x310
push 0xe6
push str._d__d
lea ecx, [ebp - 0x54]
push ecx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x10
lea edx, [ebp - 0x10]
push edx
mov eax, dword [ebp - 0x2c]
push eax
push 0
push 0
lea ecx, [ebp - 0x54]
push ecx
push reloc.WS2_32.dll_connect
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0xea
jne 0x401116
mov edx, dword [ebp - 0x10]
add edx, 0x400
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp - 0x2c]
push ecx
call dword [sym.imp.MSVCRT.dll_realloc]
add esp, 8
mov dword [ebp - 0x2c], eax
jmp 0x4010cd
mov edx, dword [ebp - 0x2c]
push edx
call fcn.00401000
add esp, 4
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x20], 0
jmp 0x401137
mov eax, dword [ebp - 0x20]
add eax, 1
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x20]
cmp edx, dword [ecx + 0x1c]
jae 0x40129f
mov eax, dword [ebp - 0x34]
cmp dword [eax + 0xc], 0xe6
je 0x401163
mov ecx, dword [ebp - 0x34]
push ecx
call fcn.00401010
add esp, 4
mov dword [ebp - 0x34], eax
jmp 0x40112e
mov ecx, dword [ebp + 0xc]
call fcn.004015e0
mov edx, dword [ebp - 0x34]
push edx
call fcn.0040104a
add esp, 4
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x34]
push eax
call fcn.0040101f
add esp, 4
mov dword [ebp - 0x28], eax
lea ecx, [ebp - 0x5c]
call fcn.00401ba0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x60]
call fcn.00401ba0
mov byte [ebp - 4], 1
mov dword [ebp - 0x30], 0
jmp 0x4011b6
mov ecx, dword [ebp - 0x30]
add ecx, 1
mov dword [ebp - 0x30], ecx
mov edx, dword [ebp - 0x34]
mov eax, dword [ebp - 0x30]
cmp eax, dword [edx + 0x28]
jge 0x40127f
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x1c], ecx
mov edx, dword [ebp + 8]
push edx
lea ecx, [ebp - 0x60]
call fcn.00401be0
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x28]
add ecx, dword [eax + 0x10]
push ecx
lea ecx, [ebp - 0x5c]
call fcn.00401c60
lea ecx, [ebp - 0x60]
call fcn.00401ce0
push eax
lea ecx, [ebp - 0x5c]
call fcn.00401ce0
push eax
call dword [sym.imp.MSVCRT.dll__stricmp]
add esp, 8
test eax, eax
jne 0x40126b
mov dword [ebp - 0x24], 0
jmp 0x40121a
mov edx, dword [ebp - 0x24]
add edx, 1
mov dword [ebp - 0x24], edx
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x24]
cmp ecx, dword [eax + 0x20]
jae 0x40126b
mov edx, dword [ebp - 0x1c]
cmp dword [edx + 4], 0x310
jne 0x40125a
mov eax, dword [ebp - 0x28]
push eax
call fcn.00401069
add esp, 4
mov dword [ebp - 0x58], eax
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x58]
add edx, dword [ecx + 0x24]
mov dword [ebp - 0x64], edx
mov eax, dword [ebp - 0x64]
push eax
mov ecx, dword [ebp + 0xc]
call fcn.004015b0
jmp 0x40126b
mov ecx, dword [ebp - 0x1c]
push ecx
call fcn.0040105a
add esp, 4
mov dword [ebp - 0x1c], eax
jmp 0x401211
mov edx, dword [ebp - 0x28]
push edx
call fcn.0040102f
add esp, 4
mov dword [ebp - 0x28], eax
jmp 0x4011ad
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x60]
call fcn.00401bc0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x5c]
call fcn.00401bc0
jmp 0x40112e
mov eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
push reloc.WS2_32.dll_connect
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret