Function at 0x437e70
Capabilities:
Get hostname
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47e088
mov eax, dword fs:[0]
push eax
sub esp, 0x2dc
mov eax, dword [0x4c000c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x2e8], ecx
lea eax, [ebp - 0x2b0]
push eax
push 0x101
call dword [sym.imp.WSOCK32.dll_WSAStartup]
test eax, eax
je 0x437ebe
xor eax, eax
jmp 0x438151
push 0xff
lea ecx, [ebp - 0x120]
push ecx
call dword [sym.imp.WSOCK32.dll_gethostname]
cmp eax, 0xffffffff
jne 0x437f02
call dword [sym.imp.WSOCK32.dll_WSACleanup]
push str.Error__d_when_getting_local_host_name_n
push 0x113a
push 0x49a29c
push 0
push 0
push 0x4c2d20
call fcn.0040db60
add esp, 0x18
xor eax, eax
jmp 0x438151
lea edx, [ebp - 0x120]
push edx
push str.host_name:_s_n
call dword [sym.imp.MSVCR120.dll_printf]
add esp, 8
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.WSOCK32.dll_gethostbyname]
mov dword [ebp - 0x2c4], eax
cmp dword [ebp - 0x2c4], 0
jne 0x437f60
call dword [sym.imp.WSOCK32.dll_WSACleanup]
push str.Error_host_lookup_n
push 0x1142
push 0x49a350
push 0
push 0
push 0x4c2d20
call fcn.0040db60
add esp, 0x18
xor eax, eax
jmp 0x438151
mov dword [ebp - 0x2bc], 0
jmp 0x437f7b
mov ecx, dword [ebp - 0x2bc]
add ecx, 1
mov dword [ebp - 0x2bc], ecx
mov edx, dword [ebp - 0x2c4]
mov eax, dword [edx + 0xc]
mov ecx, dword [ebp - 0x2bc]
cmp dword [eax + ecx*4], 0
je 0x438149
mov edx, dword [ebp - 0x2c4]
mov eax, dword [edx + 0xc]
mov ecx, dword [ebp - 0x2bc]
mov edx, dword [eax + ecx*4]
mov eax, dword [edx]
mov dword [ebp - 0x2e4], eax
mov byte [ebp - 0x20], 0
xor ecx, ecx
mov dword [ebp - 0x1f], ecx
mov dword [ebp - 0x1b], ecx
mov dword [ebp - 0x17], ecx
mov word [ebp - 0x13], cx
mov byte [ebp - 0x11], cl
mov edx, dword [ebp - 0x2e4]
push edx
call dword [sym.imp.WSOCK32.dll_inet_ntoa]
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.00439a30
add esp, 8
push 0
lea ecx, [ebp - 0x2c8]
push ecx
push 0
lea edx, [ebp - 0x20]
push edx
call fcn.00405640
add esp, 0x10
xor ecx, ecx
mov eax, dword [ebp - 0x2c8]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call dword [sym.imp.mfc120u.dll_Ordinal_265]
add esp, 4
mov dword [ebp - 0x2dc], eax
mov eax, dword [ebp - 0x2dc]
mov dword [ebp - 0x2c0], eax
push 0
lea ecx, [ebp - 0x2c8]
push ecx
mov edx, dword [ebp - 0x2c0]
push edx
lea eax, [ebp - 0x20]
push eax
call fcn.00405640
add esp, 0x10
mov ecx, dword [ebp - 0x2c0]
push ecx
lea ecx, [ebp - 0x2b8]
call dword [sym.imp.mfc120u.dll_Ordinal_286]
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0x2c0]
mov dword [ebp - 0x2cc], edx
mov eax, dword [ebp - 0x2cc]
push eax
call dword [sym.imp.mfc120u.dll_Ordinal_266]
add esp, 4
push 6
lea ecx, [ebp - 0x2d8]
push ecx
lea ecx, [ebp - 0x2b8]
call dword [sym.imp.mfc120u.dll_Ordinal_8242]
mov dword [ebp - 0x2e0], eax
mov edx, dword [ebp - 0x2e0]
mov dword [ebp - 0x2d4], edx
mov byte [ebp - 4], 1
push str.198.18
mov eax, dword [ebp - 0x2d4]
push eax
call fcn.004151f0
add esp, 8
mov byte [ebp - 0x2b1], al
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2d8]
call dword [sym.imp.mfc120u.dll_Ordinal_1042]
movzx ecx, byte [ebp - 0x2b1]
test ecx, ecx
je 0x438131
call dword [sym.imp.WSOCK32.dll_WSACleanup]
lea ecx, [ebp - 0x2b8]
call dword [sym.imp.mfc120u.dll_Ordinal_5020]
push eax
push 0x49a378
push 0x1159
push 0x49a398
push 0
push 0
push 0x4c2d20
call fcn.0040db60
add esp, 0x1c
mov dword [ebp - 0x2d0], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2b8]
call dword [sym.imp.mfc120u.dll_Ordinal_1042]
mov eax, dword [ebp - 0x2d0]
jmp 0x438151
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2b8]
call dword [sym.imp.mfc120u.dll_Ordinal_1042]
jmp 0x437f6c
call dword [sym.imp.WSOCK32.dll_WSACleanup]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0043fe23
mov esp, ebp
pop ebp
ret