Function at 0x418db0
Capabilities:
Get hostname
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x480be3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xa08
cmp dword [ecx + 0x198], 0
lea eax, [ecx + 0x188]
mov dword [ebp - 0x10], eax
sete al
mov dword [ebp - 0x44], 0
push esi
push edi
test al, al
je 0x419250
push 0
push 0x486490
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
call fcn.00403ef0
lea eax, [ebp - 0xa14]
mov dword [ebp - 4], 0
push eax
push 0x202
call sub.WSOCK32.dll_WSAStartup
cmp eax, 0xffffffff
jne 0x418e35
call sub.WSOCK32.dll_WSACleanup
or edi, 0xffffffff
push ebx
lea ebx, [edi + 2]
nop dword [eax]
test edi, edi
je 0x418f01
push 0x3fe
lea eax, [ebp - 0x884]
push eax
call sub.WSOCK32.dll_gethostname
mov edi, eax
test edi, edi
je 0x418eef
lea eax, [ebp - 0x40]
mov ecx, 0x4a9a88
push eax
call fcn.004046a0
mov dword [0x4a9f24], 1
cmp dword [eax + 0x14], 0x10
mov byte [ebp - 4], 1
jb 0x418e87
mov eax, dword [eax]
push eax
push 0x48649c
push 0x4a9a88
call fcn.0040e7e0
push str.ERROR:_Could_not_get_local_host_name__Error_code__
push 0x48649c
push eax
call fcn.0040e7e0
add esp, 0x18
mov esi, eax
call sub.WSOCK32.dll_WSAGetLastError
push eax
push 0x4867d8
push esi
call fcn.0040e7e0
push 0x48659c
push 0x48649c
push eax
call fcn.0040e7e0
push eax
call fcn.0040d5b0
mov eax, dword [ebp - 0x2c]
add esp, 0x1c
mov byte [ebp - 4], 0
cmp eax, 0x10
jb 0x418eef
inc eax
lea ecx, [ebp - 0x40]
push eax
push dword [ebp - 0x40]
call fcn.00404120
inc ebx
cmp ebx, 5
jle 0x418e40
test edi, edi
jne 0x41910c
cmp byte [ebp - 0x884], 0
jne 0x418f0e
xor ecx, ecx
jmp 0x418f20
lea ecx, [ebp - 0x884]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x418f17
sub ecx, edx
push ecx
lea eax, [ebp - 0x884]
push eax
lea ecx, [ebp - 0x28]
call fcn.00403ef0
lea eax, [ebp - 0x884]
push 0x486bac
push eax
call fcn.00434b00
add esp, 8
test eax, eax
jne 0x41910c
lea esi, [eax + 1]
nop
lea eax, [ebp - 0x884]
push eax
lea ecx, [ebp - 0x484]
call fcn.00417d40
mov eax, dword [ebp - 0x80]
mov byte [ebp - 4], 2
test eax, eax
jne 0x419047
lea eax, [ebp - 0x40]
mov ecx, 0x4a9a88
push eax
call fcn.004046a0
mov dword [0x4a9f24], 1
cmp dword [eax + 0x14], 0x10
mov byte [ebp - 4], 4
jb 0x418f95
mov eax, dword [eax]
push eax
push 0x48649c
push 0x4a9a88
call fcn.0040e7e0
push str.ERROR:_Could_not_get_host_for__
push 0x48649c
push eax
call fcn.0040e7e0
lea ecx, [ebp - 0x884]
push ecx
push 0x48649c
push eax
call fcn.0040e7e0
push str.__error_message__
push 0x48649c
push eax
call fcn.0040e7e0
cmp dword [ebp - 0x48], 0x10
lea ecx, [ebp - 0x5c]
cmovae ecx, dword [ebp - 0x5c]
push ecx
push 0x48649c
push eax
call fcn.0040e7e0
push 0x486730
push 0x48649c
push eax
call fcn.0040e7e0
add esp, 0x48
push eax
call fcn.0040d5b0
mov eax, dword [ebp - 0x2c]
add esp, 4
cmp eax, 0x10
jb 0x41901f
inc eax
lea ecx, [ebp - 0x40]
push eax
push dword [ebp - 0x40]
call fcn.00404120
mov eax, dword [ebp - 0x48]
mov byte [ebp - 4], 0
cmp eax, 0x10
jb 0x419038
inc eax
lea ecx, [ebp - 0x5c]
push eax
push dword [ebp - 0x5c]
call fcn.00404120
inc esi
cmp esi, 5
jle 0x418f50
jmp 0x41910c
mov edx, dword [eax]
cmp byte [edx], 0
jne 0x419052
xor ecx, ecx
jmp 0x419060
mov ecx, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x419057
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x28]
call fcn.00403ef0
lea eax, [ebp - 0x40]
mov ecx, 0x4a9a88
push eax
call fcn.004046a0
mov dword [0x4a9f24], 2
cmp dword [eax + 0x14], 0x10
mov byte [ebp - 4], 3
jb 0x41908e
mov eax, dword [eax]
push eax
push 0x48649c
push 0x4a9a88
call fcn.0040e7e0
push 0x487598
push 0x48649c
push eax
call fcn.0040e7e0
cmp dword [ebp - 0x14], 0x10
lea ecx, [ebp - 0x28]
cmovae ecx, dword [ebp - 0x28]
push ecx
push 0x48649c
push eax
call fcn.0040e7e0
push 0x486730
push 0x48649c
push eax
call fcn.0040e7e0
push eax
call fcn.0040d5b0
mov eax, dword [ebp - 0x2c]
add esp, 0x34
cmp eax, 0x10
jb 0x4190f3
inc eax
lea ecx, [ebp - 0x40]
push eax
push dword [ebp - 0x40]
call fcn.00404120
mov eax, dword [ebp - 0x48]
mov byte [ebp - 4], 0
cmp eax, 0x10
jb 0x41910c
inc eax
lea ecx, [ebp - 0x5c]
push eax
push dword [ebp - 0x5c]
call fcn.00404120
lea eax, [ebp - 0x40]
mov ecx, 0x4a9a88
push eax
call fcn.004046a0
mov dword [0x4a9f24], 2
cmp dword [eax + 0x14], 0x10
mov byte [ebp - 4], 5
pop ebx
jb 0x419131
mov eax, dword [eax]
push eax
push 0x48649c
push 0x4a9a88
call fcn.0040e7e0
push str.INFO:_Local_fully_qualified_host_name__
push 0x48649c
push eax
call fcn.0040e7e0
cmp dword [ebp - 0x14], 0x10
lea ecx, [ebp - 0x28]
cmovae ecx, dword [ebp - 0x28]
push ecx
push 0x48649c
push eax
call fcn.0040e7e0
push 0x48659c
push 0x48649c
push eax
call fcn.0040e7e0
push eax
call fcn.0040d5b0
mov ecx, dword [ebp - 0x2c]
add esp, 0x34
mov byte [ebp - 4], 0
cmp ecx, 0x10
jb 0x4191d9
mov eax, dword [ebp - 0x40]
inc ecx
cmp ecx, 0xffffffff
jbe 0x41919b
call fcn.00437ad8
cmp ecx, 0x1000
jb 0x4191d0
test al, 0x1f
je 0x4191ac
call fcn.00437ad8
mov ecx, dword [eax - 4]
cmp ecx, eax
jb 0x4191b8
call fcn.00437ad8
sub eax, ecx
cmp eax, 4
jae 0x4191c4
call fcn.00437ad8
cmp eax, 0x23
jbe 0x4191ce
call fcn.00437ad8
mov eax, ecx
push eax
call fcn.004314a6
add esp, 4
mov edi, dword [ebp - 0x10]
lea eax, [ebp - 0x28]
cmp edi, eax
je 0x4191ef
push 0xffffffffffffffff
push 0
push eax
mov ecx, edi
call fcn.00403de0
mov eax, dword [ebp - 0x14]
mov dword [ebp - 4], 0xffffffff
cmp eax, 0x10
jb 0x419253
lea ecx, [eax + 1]
mov eax, dword [ebp - 0x28]
cmp ecx, 0xffffffff
jbe 0x41920e
call fcn.00437ad8
cmp ecx, 0x1000
jb 0x419245
test byte [ebp - 0x28], 0x1f
je 0x419221
call fcn.00437ad8
mov ecx, dword [eax - 4]
cmp ecx, eax
jb 0x41922d
call fcn.00437ad8
sub eax, ecx
cmp eax, 4
jae 0x419239
call fcn.00437ad8
cmp eax, 0x23
jbe 0x419243
call fcn.00437ad8
mov eax, ecx
push eax
call fcn.004314a6
add esp, 4
jmp 0x419253
mov edi, dword [ebp - 0x10]
mov esi, dword [ebp + 8]
mov ecx, esi
push 0xffffffffffffffff
push 0
push edi
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], 0
mov byte [esi], 0
call fcn.00403de0
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4