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

Disassembly:
sub esp, 0x44c
mov eax, dword [0x42e070]
xor eax, esp
mov dword [esp + 0x444], eax
push ebx
push ebp
push esi
push edi
xor ebx, ebx
push 0x103
lea eax, [esp + 0x34d]
mov edi, ecx
push ebx
push eax
mov dword [esp + 0x44], edi
mov byte [esp + 0x354], bl
call fcn.00410d60
push 0x103
lea ecx, [esp + 0x251]
push ebx
push ecx
mov dword [esp + 0x54], 0x104
mov byte [esp + 0x258], bl
call fcn.00410d60
push 0x4f
xor eax, eax
lea edx, [esp + 0x20d]
push ebx
push edx
mov dword [esp + 0x40], 6
mov byte [esp + 0x38], bl
mov word [esp + 0x39], ax
mov byte [esp + 0x3b], al
mov byte [esp + 0x214], bl
call fcn.00410d60
xor eax, eax
push 0x288
mov byte [esp + 0x204], bl
mov dword [esp + 0x205], eax
mov dword [esp + 0x209], eax
mov dword [esp + 0x20d], eax
mov dword [esp + 0x211], eax
mov word [esp + 0x215], ax
mov byte [esp + 0x217], al
call fcn.0040eb55
mov esi, eax
add esp, 0x28
lea eax, [esp + 0x3c]
push eax
lea ecx, [esp + 0x34c]
push ecx
mov dword [esp + 0x34], esi
mov dword [esp + 0x28], 0x288
mov dword [esp + 0x2c], ebx
call dword [sym.imp.KERNEL32.dll_GetComputerNameA]
lea edx, [esp + 0x48]
push edx
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x403ff9
push 0x4263da
push 0x64
push edi
call fcn.0040edc7
add esp, 0xc
jmp 0x4042b6
lea eax, [esp + 0x20]
push eax
push esi
call sub.IPHLPAPI.DLL_GetAdaptersInfo
cmp eax, 0x6f
jne 0x404073
cmp esi, ebx
je 0x404016
push esi
call fcn.0040ea6d
add esp, 4
mov ecx, dword [esp + 0x20]
push ecx
call fcn.0040eb55
add esp, 4
lea edx, [esp + 0x20]
mov esi, eax
push edx
push esi
mov dword [esp + 0x34], esi
call sub.IPHLPAPI.DLL_GetAdaptersInfo
test eax, eax
jne 0x404051
lea eax, [esi + 0x1d8]
lea edx, [esp + 0x1dc]
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
cmp cl, bl
jne 0x404047
lea eax, [esp + 0x1dc]
push eax
push str._tGetway_address_for_PC_:_s
lea ecx, [esp + 0x248]
push 0x104
push ecx
call fcn.0040fcda
add esp, 0x10
mov esi, dword [sym.imp.WS2_32.dll_gethostbyname]
lea edx, [esp + 0x348]
push edx
call esi
test eax, eax
jne 0x40409f
push 0x4263da
push 0x104
push edi
call fcn.0040edc7
add esp, 0xc
jmp 0x4042a5
lea eax, [esp + 0x348]
push eax
call esi
mov esi, eax
mov dword [esp + 0x30], esi
cmp esi, ebx
je 0x40428a
mov eax, dword [esi + 0xc]
mov dword [esp + 0x28], ebx
cmp dword [eax], ebx
je 0x40425a
mov dword [esp + 0x18], ebx
mov ecx, dword [esp + 0x18]
mov edx, dword [eax + ecx]
push edx
call dword [sym.imp.WS2_32.dll_inet_addr]
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x44]
push edx
push ebx
push eax
call sub.IPHLPAPI.DLL_SendARP
test eax, eax
jne 0x404209
mov eax, dword [esp + 0x1c]
cmp eax, ebx
je 0x404209
xor ebp, ebp
cmp eax, ebx
jle 0x40418e
jmp 0x404110
movzx eax, byte [esp + ebp + 0x40]
push eax
push str._.2X
lea edx, [esp + 0x1c]
call fcn.0040d9d0
lea eax, [esp + 0x1c]
add esp, 8
mov ecx, eax
lea ecx, [ecx]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x404130
lea edi, [esp + 0x1f0]
sub eax, ecx
mov esi, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
cmp cl, bl
jne 0x404143
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x1c]
lea edx, [ecx - 1]
cmp ebp, edx
je 0x404181
lea edi, [esp + 0x1f0]
dec edi
lea esp, [esp]
mov al, byte [edi + 1]
inc edi
cmp al, bl
jne 0x404170
mov ax, word [0x427604]
mov word [edi], ax
inc ebp
cmp ebp, ecx
jl 0x404110
mov esi, dword [esp + 0x30]
mov edi, dword [esp + 0x38]
mov ebp, dword [sym.imp.SHLWAPI.dll_StrStrA]
push str.00:50:56
lea ecx, [esp + 0x1f4]
push ecx
call ebp
test eax, eax
jne 0x404209
lea eax, [esp + 0x1dc]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x4041b1
sub eax, edx
je 0x4041ce
lea edx, [esp + 0x1e3]
mov byte [esp + 0x1e7], bl
mov dword [esp + 0x24], edx
mov eax, dword [esi + 0xc]
mov ecx, dword [esp + 0x18]
mov edx, dword [ecx + eax]
mov eax, dword [edx]
push eax
call dword [sym.imp.WS2_32.dll_inet_ntoa]
lea edx, [esp + 0x240]
mov cl, byte [eax]
mov byte [edx], cl
inc eax
inc edx
cmp cl, bl
jne 0x4041e8
mov eax, dword [esp + 0x24]
lea ecx, [esp + 0x240]
cmp eax, ebx
je 0x404244
push eax
push ecx
call ebp
test eax, eax
jne 0x40422b
mov eax, dword [esp + 0x28]
inc eax
lea ecx, [eax*4]
mov dword [esp + 0x28], eax
mov eax, dword [esi + 0xc]
mov dword [esp + 0x18], ecx
cmp dword [eax + ecx], ebx
jne 0x4040ca
jmp 0x40425a
lea eax, [esp + 0x240]
mov edx, edi
mov ecx, eax
sub edx, ecx
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
cmp cl, bl
jne 0x404238
jmp 0x40425a
mov edx, edi
lea eax, [esp + 0x240]
sub edx, ecx
nop
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
cmp cl, bl
jne 0x404250
mov eax, edi
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x404260
sub eax, edx
jne 0x40428a
mov edx, dword [esi + 0xc]
mov eax, dword [edx]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.WS2_32.dll_inet_ntoa]
mov edx, edi
jmp 0x404280
mov cl, byte [eax]
mov byte [edx], cl
inc eax
inc edx
cmp cl, bl
jne 0x404280
push edi
push str._tIp_address_for_PC_:_s
lea edx, [esp + 0x248]
push 0x104
push edx
call fcn.0040fcda
add esp, 0x10
mov eax, dword [esp + 0x2c]
cmp eax, ebx
je 0x4042b6
push eax
call fcn.0040ea6d
add esp, 4
mov ecx, dword [esp + 0x454]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0040e6d9
add esp, 0x44c
ret