Function at 0x40f267
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x130
push ebx
push esi
push edi
xor ebx, ebx
push ebx
lea eax, [ebp - 0x18]
push eax
push dword [ebp + 8]
push 7
pop eax
call fcn.0040e505
test al, al
jne 0x40f290
xor al, al
jmp 0x40f433
xor edi, edi
inc edi
jmp 0x40f29a
cmp byte [ebp - 5], bl
je 0x40f2af
push ebx
lea eax, [ebp - 5]
push eax
push dword [ebp + 8]
mov eax, edi
call fcn.0040e505
test al, al
jne 0x40f295
jmp 0x40f289
mov ecx, dword [ebp - 0x15]
mov eax, ecx
and eax, 0xff0000
mov edx, ecx
shr edx, 0x10
or eax, edx
mov edx, ecx
and edx, 0xff00
shl ecx, 0x10
or edx, ecx
shr eax, 8
shl edx, 8
or eax, edx
dec eax
mov byte [ebp - 9], 0x5a
cmp eax, 0xfe
ja 0x40f369
xor esi, esi
push ebx
lea eax, [ebp - 5]
push eax
push dword [ebp + 8]
mov eax, edi
call fcn.0040e505
test al, al
je 0x40f289
mov al, byte [ebp - 5]
mov byte [ebp + esi - 0x12c], al
test al, al
je 0x40f316
inc esi
cmp esi, 0xff
jle 0x40f2e7
jmp 0x40f289
lea eax, [ebp - 0x10]
push eax
push ebx
push ebx
lea eax, [ebp - 0x12c]
push eax
mov dword [ebp - 0x10], ebx
call dword [sym.imp.ws2_32.dll_getaddrinfo]
test eax, eax
je 0x40f336
mov byte [ebp - 9], 0x5b
jmp 0x40f369
mov esi, dword [ebp - 0x10]
jmp 0x40f344
cmp dword [esi + 4], 2
je 0x40f34a
mov esi, dword [esi + 0x1c]
cmp esi, ebx
jne 0x40f33b
jmp 0x40f35c
mov eax, dword [esi + 0x18]
push 4
add eax, 4
push eax
lea eax, [ebp - 0x15]
push eax
call fcn.0040d2eb
push dword [ebp - 0x10]
call dword [sym.imp.ws2_32.dll_freeaddrinfo]
cmp esi, ebx
je 0x40f330
cmp byte [ebp - 9], 0x5a
mov byte [ebp - 5], 1
jne 0x40f49b
push 0x10
push ebx
lea eax, [ebp - 0x28]
push eax
call fcn.0040d36d
push 2
pop eax
mov word [ebp - 0x28], ax
movzx eax, byte [ebp - 0x18]
dec eax
je 0x40f43a
dec eax
je 0x40f3a1
mov byte [ebp - 9], 0x5b
jmp 0x40f49b
push edi
push 0x10
lea edi, [ebp - 0x28]
call fcn.0040e5bc
mov esi, eax
mov dword [ebp - 0x10], esi
cmp esi, 0xffffffff
je 0x40f398
push ebx
push 0x5a
push esi
push dword [ebp + 8]
call fcn.0040f1f1
mov edi, eax
cmp edi, 1
jne 0x40f419
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.0040e83f
mov esi, dword [ebp - 0x10]
mov ebx, eax
call fcn.0040e864
cmp ebx, 0xffffffff
jne 0x40f3f0
mov byte [ebp - 9], 0x5b
xor ebx, ebx
jmp 0x40f49b
mov edi, dword [ebp + 8]
push 2
push 0x5a
push ebx
push edi
call fcn.0040f1f1
mov dword [ebp - 0x10], eax
cmp eax, 1
jne 0x40f40b
call fcn.0040e601
mov esi, ebx
call fcn.0040e864
mov edi, dword [ebp - 0x10]
xor ebx, ebx
jmp 0x40f41e
call fcn.0040e864
cmp edi, 0xffffffff
je 0x40f398
cmp edi, 1
je 0x40f430
mov byte [ebp - 5], 0
mov al, byte [ebp - 5]
pop edi
pop esi
pop ebx
leave
ret 4
mov ax, word [ebp - 0x17]
mov word [ebp - 0x26], ax
mov eax, dword [ebp - 0x15]
push 0x10
lea edi, [ebp - 0x28]
mov dword [ebp - 0x24], eax
call fcn.0040e586
mov esi, eax
cmp esi, 0xffffffff
je 0x40f398
push ebx
push 0x5a
push esi
push dword [ebp + 8]
call fcn.0040f1f1
cmp eax, 1
jne 0x40f47c
mov edi, dword [ebp + 8]
mov ebx, esi
call fcn.0040e601
xor ebx, ebx
jmp 0x40f48a
cmp eax, 0xffffffff
jne 0x40f487
mov byte [ebp - 9], 0x5b
jmp 0x40f48a
mov byte [ebp - 5], bl
call fcn.0040e864
cmp byte [ebp - 5], 1
jne 0x40f430
cmp byte [ebp - 9], 0x5a
je 0x40f430
push ebx
push dword [ebp - 9]
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0040f1f1
test eax, eax
setne al
jmp 0x40f433