Function at 0x40a1f0
Capabilities:
Get hostname
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4378b5
mov eax, dword fs:[0]
push eax
sub esp, 0x4c4
mov eax, dword [0x440374]
xor eax, ebp
mov dword [ebp - 0x14], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x3d8], 0
mov dword [ebp - 0x4ac], 0
mov dword [ebp - 0x4a8], 0
lea ecx, [ebp - 0x3d4]
call fcn.0040de80
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 1
push 0
lea ecx, [ebp - 0x3d4]
call fcn.0040bdd0
push 0
lea ecx, [ebp - 0x3d4]
call fcn.0040bdb0
lea eax, [ebp - 0x4a8]
push eax
lea ecx, [ebp - 0x3d8]
push ecx
push 0x468cd0
lea ecx, [ebp - 0x3d4]
call fcn.0040f900
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 1
jne 0x40a3a9
cmp dword [ebp - 0x3d8], 0
jne 0x40a2ac
mov dword [ebp - 0x10], 2
jmp 0x40a4bd
mov edx, dword [ebp - 0x3d8]
mov dword [ebp - 0x4ac], edx
mov eax, dword [ebp - 0x4ac]
movsx ecx, byte [eax]
cmp ecx, 0xa
je 0x40a2e2
mov edx, dword [ebp - 0x4ac]
movsx eax, byte [edx]
cmp eax, 0xd
je 0x40a2e2
mov ecx, dword [ebp - 0x4ac]
movsx edx, byte [ecx]
cmp edx, 9
jne 0x40a2f3
mov eax, dword [ebp - 0x4ac]
add eax, 1
mov dword [ebp - 0x4ac], eax
jmp 0x40a2b8
mov ecx, dword [ebp + 8]
cmp dword [ecx], 0
jne 0x40a361
mov edx, dword [ebp - 0x4ac]
push edx
call fcn.00414af0
add esp, 4
mov dword [ebp - 0x4a8], eax
mov eax, dword [ebp - 0x4a8]
add eax, 1
push eax
call fcn.00414870
add esp, 4
mov dword [ebp - 0x4c4], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x4c4]
mov dword [ecx], edx
mov eax, dword [ebp + 8]
cmp dword [eax], 0
jne 0x40a347
mov dword [ebp - 0x10], 2
jmp 0x40a4bd
mov ecx, dword [ebp - 0x4a8]
add ecx, 1
push ecx
push 0
mov edx, dword [ebp + 8]
mov eax, dword [edx]
push eax
call fcn.00415080
add esp, 0xc
mov ecx, dword [ebp - 0x4ac]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx]
push eax
call fcn.004149f0
add esp, 8
cmp dword [ebp - 0x3d8], 0
je 0x40a3a4
mov ecx, dword [ebp - 0x3d8]
mov dword [ebp - 0x4c8], ecx
mov edx, dword [ebp - 0x4c8]
push edx
call fcn.00414bfe
add esp, 4
mov dword [ebp - 0x3d8], 0
jmp 0x40a4b5
push 0xc8
lea eax, [ebp - 0x4a4]
push eax
call sub.WSOCK32.dll_gethostname
test eax, eax
je 0x40a3ca
mov dword [ebp - 0x10], 2
jmp 0x40a4bd
lea ecx, [ebp - 0x4a4]
push ecx
call sub.WSOCK32.dll_gethostbyname
mov dword [ebp - 0x4c0], eax
cmp dword [ebp - 0x4c0], 0
jne 0x40a3f1
mov dword [ebp - 0x10], 2
jmp 0x40a4bd
push 4
mov edx, dword [ebp - 0x4c0]
mov eax, dword [edx + 0xc]
mov ecx, dword [eax]
push ecx
lea edx, [ebp - 0x4b8]
push edx
call fcn.00415e80
add esp, 0xc
mov eax, dword [ebp - 0x4b8]
push eax
call sub.WSOCK32.dll_inet_ntoa
mov dword [ebp - 0x3d8], eax
cmp dword [ebp - 0x3d8], 0
jne 0x40a435
mov dword [ebp - 0x10], 2
jmp 0x40a4bd
mov ecx, dword [ebp + 8]
cmp dword [ecx], 0
jne 0x40a4a0
mov edx, dword [ebp - 0x3d8]
push edx
call fcn.00414af0
add esp, 4
mov dword [ebp - 0x4a8], eax
mov eax, dword [ebp - 0x4a8]
add eax, 1
push eax
call fcn.00414870
add esp, 4
mov dword [ebp - 0x4cc], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x4cc]
mov dword [ecx], edx
mov eax, dword [ebp + 8]
cmp dword [eax], 0
jne 0x40a486
mov dword [ebp - 0x10], 2
jmp 0x40a4bd
mov ecx, dword [ebp - 0x4a8]
add ecx, 1
push ecx
push 0
mov edx, dword [ebp + 8]
mov eax, dword [edx]
push eax
call fcn.00415080
add esp, 0xc
mov ecx, dword [ebp - 0x3d8]
push ecx
mov edx, dword [ebp + 8]
mov eax, dword [edx]
push eax
call fcn.004149f0
add esp, 8
xor ecx, ecx
jne 0x40a24b
mov edx, dword [ebp - 0x10]
mov dword [ebp - 0x4d0], edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x3d4]
call fcn.0040ec20
mov eax, dword [ebp - 0x4d0]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00415063
mov esp, ebp
pop ebp
ret