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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a5cab
mov eax, dword fs:[0]
push eax
sub esp, 0x1ac
mov eax, dword [0x61df80]
xor eax, ebp
mov dword [ebp - 0x14], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x1b0], 0
push 0x5dec82
lea ecx, [ebp - 0x30]
call fcn.00403100
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.0043a110
mov byte [ebp - 4], 1
mov dword [ebp - 0x6c], 0
mov dword [ebp - 0x184], 0
mov dword [ebp - 0x180], 0
push 0x5dec83
lea ecx, [ebp - 0x68]
call fcn.00403100
mov byte [ebp - 4], 2
push 0x5deca1
lea ecx, [ebp - 0x4c]
call fcn.00403100
mov byte [ebp - 4], 3
lea eax, [ebp - 0x4c]
push eax
call fcn.00438fd0
add esp, 4
mov ecx, dword [ebp + 0xc]
call fcn.00403210
push eax
lea ecx, [ebp - 0x4c]
call fcn.00403210
push eax
push str._s_s
lea ecx, [ebp - 0x10]
push ecx
call fcn.0043bb40
add esp, 0x10
mov ecx, dword [ebp + 0xc]
call fcn.00403210
push eax
push 0x5e5654
lea edx, [ebp - 0x1ac]
push edx
call fcn.00438a90
add esp, 0xc
mov dword [ebp - 0x1b4], eax
mov eax, dword [ebp - 0x1b4]
mov dword [ebp - 0x1b8], eax
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x1b8]
push ecx
lea ecx, [ebp - 0x68]
call fcn.004031a0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x1ac]
call fcn.00403180
lea edx, [ebp - 0x70]
push edx
push 0x20019
push 0
lea ecx, [ebp - 0x10]
call fcn.0045a380
push eax
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4394ab
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x184]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
mov ecx, dword [ebp - 0x70]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
mov dword [ebp - 0x6c], eax
cmp dword [ebp - 0x6c], 0
je 0x4393a8
mov edx, dword [ebp - 0x70]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0x5deca2
mov ecx, dword [ebp + 8]
call fcn.00403100
mov eax, dword [ebp - 0x1b0]
or eax, 1
mov dword [ebp - 0x1b0], eax
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x4c]
call fcn.00403180
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x68]
call fcn.00403180
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.0043a1d0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.00403180
mov eax, dword [ebp + 8]
jmp 0x4395f2
mov dword [ebp - 0x188], 0
jmp 0x4393c3
mov ecx, dword [ebp - 0x188]
add ecx, 1
mov dword [ebp - 0x188], ecx
mov edx, dword [ebp - 0x188]
cmp edx, dword [ebp - 0x184]
jae 0x4394a1
mov dword [ebp - 0x180], 0x104
push 0x104
push 0
lea eax, [ebp - 0x17c]
push eax
call fcn.004ce490
add esp, 0xc
push 0
push 0
push 0
push 0
lea ecx, [ebp - 0x180]
push ecx
lea edx, [ebp - 0x17c]
push edx
mov eax, dword [ebp - 0x188]
push eax
mov ecx, dword [ebp - 0x70]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
mov dword [ebp - 0x6c], eax
cmp dword [ebp - 0x6c], 0
je 0x439427
jmp 0x4393b4
lea ecx, [ebp - 0x68]
call fcn.00403210
push eax
lea edx, [ebp - 0x17c]
push edx
call fcn.00435540
add esp, 8
test eax, eax
je 0x43949c
push str.gnway.cc
lea eax, [ebp - 0x17c]
push eax
call fcn.00435540
add esp, 8
test eax, eax
jne 0x43949c
push str.gnway.org
lea ecx, [ebp - 0x17c]
push ecx
call fcn.00435540
add esp, 8
test eax, eax
jne 0x43949c
push str.gnway.net
lea edx, [ebp - 0x17c]
push edx
call fcn.00435540
add esp, 8
test eax, eax
jne 0x43949c
lea eax, [ebp - 0x17c]
push eax
lea ecx, [ebp - 0x30]
call fcn.004031c0
jmp 0x4394a1
jmp 0x4393b4
mov ecx, dword [ebp - 0x70]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x30]
call fcn.00403230
movzx edx, al
test edx, edx
je 0x43952a
call fcn.00401ff0
mov dword [ebp - 0x18c], eax
cmp dword [ebp - 0x18c], 0
je 0x439524
push 1
call fcn.00405d70
movzx eax, al
push eax
mov ecx, dword [ebp - 0x18c]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x18c]
mov eax, dword [edx + 0xc]
call eax
movzx ecx, al
test ecx, ecx
je 0x439524
push str.Not_found_OEM_HostName_n
push 0x4ee
push 0x5e5694
push 1
call fcn.00405d70
movzx edx, al
push edx
mov eax, dword [ebp - 0x18c]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x18c]
push edx
mov eax, dword [ecx + 0x10]
call eax
add esp, 0x18
xor ecx, ecx
jne 0x4394ba
jmp 0x4395a1
call fcn.00401ff0
mov dword [ebp - 0x190], eax
cmp dword [ebp - 0x190], 0
je 0x43959d
push 1
call fcn.00405d70
movzx edx, al
push edx
mov eax, dword [ebp - 0x190]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x190]
mov eax, dword [edx + 0xc]
call eax
movzx ecx, al
test ecx, ecx
je 0x43959d
lea ecx, [ebp - 0x30]
call fcn.00403210
push eax
push str.OEM_HostName____s__n
push 0x4f0
push 0x5e56b8
push 1
call fcn.00405d70
movzx edx, al
push edx
mov eax, dword [ebp - 0x190]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x190]
push edx
mov eax, dword [ecx + 0x10]
call eax
add esp, 0x1c
xor ecx, ecx
jne 0x43952a
lea edx, [ebp - 0x30]
push edx
mov ecx, dword [ebp + 8]
call fcn.00403140
mov eax, dword [ebp - 0x1b0]
or eax, 1
mov dword [ebp - 0x1b0], eax
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x4c]
call fcn.00403180
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x68]
call fcn.00403180
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.0043a1d0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.00403180
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004c7d13
mov esp, ebp
pop ebp
ret