Function at 0x408e40
Capabilities:
Resolve dns

Disassembly:
push 0xffffffffffffffff
push 0x4409d6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x124
mov al, byte [esp + 0x17]
push ebx
push ebp
push esi
mov ebp, ecx
xor esi, esi
push edi
mov dword [esp + 0x20], ebp
mov byte [esp + 0x10], al
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], esi
lea ecx, [esp + 0x28]
mov dword [esp + 0x13c], esi
call fcn.0040cac0
mov ax, word [ebp + 0x564]
mov byte [esp + 0x13c], 1
cmp ax, si
jbe 0x408f69
and eax, 0xffff
mov ebx, eax
mov eax, dword [esp + 0x14]
cmp eax, esi
jne 0x408eb6
xor edx, edx
jmp 0x408ecd
mov ecx, dword [esp + 0x1c]
sub ecx, eax
mov eax, 0x7a44c6b
imul ecx
sar edx, 3
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
cmp edx, ebx
jae 0x408f69
cmp ebx, esi
mov eax, ebx
jge 0x408edd
xor eax, eax
mov edx, eax
shl edx, 5
add edx, eax
lea eax, [eax + edx*2]
shl eax, 2
push eax
call fcn.0041c779
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
add esp, 4
mov edi, eax
push edi
push ecx
push edx
lea ecx, [esp + 0x1c]
call fcn.004094d0
mov ebp, dword [esp + 0x18]
mov esi, dword [esp + 0x14]
cmp esi, ebp
je 0x408f2b
mov eax, dword [esi]
push 0
mov ecx, esi
call dword [eax]
add esi, 0x10c
cmp esi, ebp
jne 0x408f15
mov esi, dword [esp + 0x14]
push esi
call fcn.0040ca00
mov ecx, ebx
add esp, 4
shl ecx, 5
add ecx, ebx
lea edx, [ebx + ecx*2]
lea ecx, [esp + 0x10]
lea eax, [edi + edx*4]
mov dword [esp + 0x1c], eax
call fcn.004094a0
mov ecx, eax
mov ebp, dword [esp + 0x20]
shl ecx, 5
add ecx, eax
mov dword [esp + 0x14], edi
xor esi, esi
lea edx, [eax + ecx*2]
lea eax, [edi + edx*4]
mov dword [esp + 0x18], eax
cmp word [ebp + 0x564], si
mov dword [esp + 0x20], esi
jbe 0x409014
mov edi, dword [sym.imp.WS2_32.dll_inet_ntoa]
xor ebx, ebx
mov edx, dword [ebp + 0x560]
mov ecx, ebx
add ecx, edx
call fcn.0040d280
test al, al
jne 0x408ff4
mov edx, dword [ebp + 0x560]
mov ecx, ebx
add ecx, edx
call fcn.0040e730
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov esi, eax
test esi, esi
je 0x408ff2
mov ecx, dword [esi + 0xc]
cmp dword [ecx], 0
je 0x408ff2
mov edx, dword [esi + 0xc]
mov eax, dword [edx]
mov ecx, dword [eax]
push ecx
call edi
push eax
lea ecx, [esp + 0x2c]
call fcn.0040cdd0
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x28]
push edx
push 1
push eax
lea ecx, [esp + 0x1c]
call fcn.00409510
mov edx, dword [esi + 0xc]
add edx, 4
mov eax, edx
mov dword [esi + 0xc], edx
cmp dword [eax], 0
jne 0x408fb9
xor esi, esi
mov eax, dword [esp + 0x20]
xor ecx, ecx
mov cx, word [ebp + 0x564]
inc eax
add ebx, 0x10c
cmp eax, ecx
mov dword [esp + 0x20], eax
jl 0x408f82
push str._MOptionIO_
lea ecx, [esp + 0x2c]
call fcn.0040cdd0
mov ebx, dword [esp + 0x144]
lea ecx, [esp + 0x28]
push ebx
call fcn.0040ce60
push 0x44aa84
lea ecx, [esp + 0x2c]
call fcn.0040cf00
xor edi, edi
xor ebp, ebp
mov esi, dword [esp + 0x14]
test esi, esi
je 0x40908c
mov ecx, dword [esp + 0x18]
mov eax, 0x7a44c6b
sub ecx, esi
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add edx, eax
cmp edi, edx
jae 0x40908c
lea ecx, [esi + ebp]
push ecx
lea ecx, [esp + 0x2c]
call fcn.0040ce60
push 0x44aa80
lea ecx, [esp + 0x2c]
call fcn.0040cf00
inc edi
add ebp, 0x10c
jmp 0x409045
push 0x44aa7c
lea ecx, [esp + 0x2c]
call fcn.0040cf00
lea ecx, [esp + 0x28]
call fcn.0040e730
push eax
push 0
push 0
call fcn.00401a20
add esp, 0xc
xor edi, edi
xor ebp, ebp
mov esi, dword [esp + 0x14]
test esi, esi
je 0x409140
mov ecx, dword [esp + 0x18]
mov eax, 0x7a44c6b
sub ecx, esi
imul ecx
sar edx, 3
mov eax, edx
shr eax, 0x1f
add edx, eax
cmp edi, edx
jae 0x409140
lea ecx, [esi + ebp]
push ebx
push ecx
call fcn.0040d120
add esp, 8
test al, al
jne 0x4090f5
inc edi
add ebp, 0x10c
jmp 0x4090b4
lea ecx, [esp + 0x28]
mov byte [esp + 0x13c], 0
call fcn.0040cd10
mov edi, dword [esp + 0x18]
mov esi, dword [esp + 0x14]
cmp esi, edi
mov dword [esp + 0x13c], 0xffffffff
je 0x409133
mov edx, dword [esi]
push 0
mov ecx, esi
call dword [edx]
add esi, 0x10c
cmp esi, edi
jne 0x40911d
mov esi, dword [esp + 0x14]
push esi
call fcn.0040ca00
add esp, 4
mov al, 1
jmp 0x409189
lea ecx, [esp + 0x28]
mov byte [esp + 0x13c], 0
call fcn.0040cd10
mov edi, dword [esp + 0x18]
mov esi, dword [esp + 0x14]
cmp esi, edi
mov dword [esp + 0x13c], 0xffffffff
je 0x40917e
mov eax, dword [esi]
push 0
mov ecx, esi
call dword [eax]
add esi, 0x10c
cmp esi, edi
jne 0x409168
mov esi, dword [esp + 0x14]
push esi
call fcn.0040ca00
add esp, 4
xor al, al
mov ecx, dword [esp + 0x134]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x130
ret 4