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

Disassembly:
push 0x600
mov eax, 0x486900
call fcn.00458e5d
xor ebx, ebx
mov edi, ecx
mov dword [ebp - 4], ebx
push 0x49b9c7
lea ecx, [ebp - 0x42c]
mov dword [ebp - 0x5cc], edi
mov dword [ebp - 0x5d4], ebx
call fcn.00401efd
xor esi, esi
inc esi
push 0x49b010
mov eax, edi
mov dword [ebp - 4], esi
call fcn.004017d2
push 0x3ff
lea eax, [ebp - 0x40f]
push ebx
push eax
mov dword [ebp - 0x5d4], esi
mov byte [ebp - 0x410], bl
call fcn.004504c0
add esp, 0xc
lea eax, [ebp - 0x5c0]
push eax
push 2
call sub.WS2_32.dll_WSAStartup
cmp eax, ebx
jne 0x403ffb
push 0x400
lea eax, [ebp - 0x410]
push eax
call sub.WS2_32.dll_gethostname
cmp eax, 0xffffffff
jne 0x403c59
push str.gethostname_SOCKET_ERROR
push 0x20a
call fcn.0041ef10
push eax
mov ebx, 0x800008
mov ecx, str..SupportWrapper.cpp
call fcn.0041f0d0
add esp, 0xc
jmp 0x403ff4
lea eax, [ebp - 0x410]
push eax
push str.host__s
push 0x20e
push ecx
call fcn.0041ef10
pop ecx
mov esi, str..SupportWrapper.cpp
push eax
mov ebx, 0x800008
mov ecx, esi
call fcn.0041f0d0
add esp, 0x10
and dword [ebp - 0x5d0], 0
lea eax, [ebp - 0x410]
push eax
call sub.WS2_32.dll_gethostbyname
mov edi, eax
test edi, edi
je 0x403e68
push dword [edi]
and dword [ebp - 0x5c4], 0
push str.Official_name:__s
push 0x21d
push ecx
call fcn.0041ef10
pop ecx
push eax
mov ecx, esi
call fcn.0041f0d0
mov eax, dword [edi + 4]
add esp, 0x10
mov dword [ebp - 0x5c8], eax
jmp 0x403d07
inc dword [ebp - 0x5c4]
push eax
push dword [ebp - 0x5c4]
push str.Alternate_name__d:__s
push 0x220
call fcn.0041ef10
push eax
mov ecx, esi
call fcn.0041f0d0
add esp, 0x14
add dword [ebp - 0x5c8], 4
mov eax, dword [ebp - 0x5c8]
mov eax, dword [eax]
test eax, eax
jne 0x403cd3
movsx eax, word [edi + 8]
mov ecx, eax
dec ecx
dec ecx
je 0x403d47
sub ecx, 0xf
je 0x403d3b
push eax
push str.Address_type:__d
push 0x22c
push ecx
call fcn.0041ef10
pop ecx
push eax
mov ecx, esi
call fcn.0041f0d0
add esp, 0x10
jmp 0x403d61
push str.Address_type:_AF_NETBIOS
push 0x229
jmp 0x403d51
push str.Address_type:_AF_INET
push 0x226
call fcn.0041ef10
push eax
mov ecx, esi
call fcn.0041f0d0
add esp, 0xc
movsx eax, word [edi + 0xa]
push eax
push str.Address_length:__d
push 0x22f
push ecx
call fcn.0041ef10
pop ecx
push eax
mov ecx, esi
call fcn.0041f0d0
movzx eax, word [edi + 8]
and dword [ebp - 0x5c4], 0
add esp, 0x10
cmp ax, 2
jne 0x403e33
mov eax, dword [edi + 0xc]
cmp dword [eax], 0
je 0x403e53
mov ecx, dword [ebp - 0x5c4]
mov eax, dword [eax + ecx*4]
mov eax, dword [eax]
inc dword [ebp - 0x5c4]
push eax
call sub.WS2_32.dll_inet_ntoa
push eax
push dword [ebp - 0x5c4]
mov dword [ebp - 0x5c8], eax
push str.IP_Address__d:__s
push 0x238
call fcn.0041ef10
push eax
mov ecx, esi
call fcn.0041f0d0
add esp, 0x14
cmp dword [ebp - 0x418], 0
je 0x403e0c
cmp dword [ebp + 8], 0
je 0x403e1e
push 0x49ba88
call fcn.004506f0
pop ecx
push eax
push 0x49ba88
lea eax, [ebp - 0x42c]
call fcn.00408e97
push dword [ebp - 0x5c8]
lea eax, [ebp - 0x42c]
push eax
call fcn.00407cf4
mov eax, dword [edi + 0xc]
mov ecx, dword [ebp - 0x5c4]
cmp dword [eax + ecx*4], 0
jne 0x403da3
jmp 0x403e53
cmp ax, 0x11
jne 0x403e53
push str.NETBIOS_address_was_returned_n
push 0x24b
call fcn.0041ef10
push eax
mov ecx, esi
call fcn.0041f0d0
add esp, 0xc
inc dword [ebp - 0x5d0]
cmp dword [ebp - 0x5d0], 1
jl 0x403c8d
jmp 0x403e6d
call sub.WS2_32.dll_WSACleanup
cmp dword [ebp - 0x414], 0x10
mov eax, dword [ebp - 0x428]
jae 0x403e82
lea eax, [ebp - 0x428]
push eax
push str.ip__s
push 0x250
push ecx
call fcn.0041ef10
pop ecx
push eax
mov ecx, esi
call fcn.0041f0d0
xor esi, esi
add esp, 0x10
cmp dword [ebp - 0x418], esi
je 0x403ff4
cmp dword [ebp + 8], esi
je 0x403f91
lea eax, [ebp - 0x410]
push eax
lea ecx, [ebp - 0x5f0]
call fcn.00401efd
push esi
lea edi, [ebp - 0x5f0]
lea ecx, [ebp - 0x60c]
mov byte [ebp - 4], 2
call fcn.004264d0
pop ecx
push 0xffffffffffffffff
mov byte [ebp - 4], 3
push dword [ebp - 0x5cc]
xor ebx, ebx
call fcn.0040191e
push ebx
push 1
lea esi, [ebp - 0x60c]
call fcn.004019bb
push ebx
push 1
mov ecx, edi
mov byte [ebp - 4], 1
call fcn.0040230d
mov esi, dword [ebp - 0x5cc]
push 0x49bab4
push esi
call fcn.00401817
cmp dword [ebp - 0x414], 0x10
mov eax, dword [ebp - 0x428]
jae 0x403f34
lea eax, [ebp - 0x428]
push eax
lea ecx, [ebp - 0x5f0]
call fcn.00401efd
push ebx
lea edi, [ebp - 0x5f0]
lea ecx, [ebp - 0x60c]
mov byte [ebp - 4], 4
call fcn.004264d0
pop ecx
push 0xffffffffffffffff
push ebx
mov byte [ebp - 4], 5
call fcn.00401aee
push ebx
push 1
lea esi, [ebp - 0x60c]
call fcn.004019bb
push ebx
push 1
mov ecx, edi
mov byte [ebp - 4], 1
call fcn.0040230d
push 0x49b7c4
push dword [ebp - 0x5cc]
call fcn.00401817
jmp 0x403ff4
cmp dword [ebp - 0x414], 0x10
mov eax, dword [ebp - 0x428]
jae 0x403fa6
lea eax, [ebp - 0x428]
push eax
lea ecx, [ebp - 0x5f0]
call fcn.00401efd
push esi
lea edi, [ebp - 0x5f0]
lea ecx, [ebp - 0x60c]
mov byte [ebp - 4], 6
call fcn.004264d0
pop ecx
push 0xffffffffffffffff
mov byte [ebp - 4], 7
push dword [ebp - 0x5cc]
xor ebx, ebx
call fcn.0040191e
push ebx
push 1
lea esi, [ebp - 0x60c]
call fcn.004019bb
push ebx
push 1
mov ecx, edi
call fcn.0040230d
call sub.WS2_32.dll_WSACleanup
jmp 0x40401d
push str.WSAStartup_failed
push 0x266
call fcn.0041ef10
push eax
mov ebx, 0x800008
mov ecx, str..SupportWrapper.cpp
call fcn.0041f0d0
add esp, 0xc
push 0
push 1
lea ecx, [ebp - 0x42c]
call fcn.0040230d
mov eax, dword [ebp - 0x5cc]
call fcn.00458ee0
ret 4