Function at 0x402520
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc0
mov eax, dword [0x4394c4]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 8]
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, ebx
mov dword [ebp - 0x98], ecx
mov dword [ebp - 0xa0], eax
lea edx, [esi + 1]
nop
mov al, byte [esi]
inc esi
test al, al
jne 0x402550
sub esi, edx
lea eax, [esi - 1]
cmp eax, 0x3e7
ja 0x402793
cmp byte [ebx], 0x5b
push edi
jne 0x4025bd
mov dword [ecx], 2
mov ecx, 1
cmp esi, ecx
jle 0x40258b
nop dword [eax]
cmp byte [ebx + ecx], 0x5d
je 0x40259e
inc ecx
cmp ecx, esi
jl 0x402580
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00417bc2
mov esp, ebp
pop ebp
ret
cmp ecx, esi
jge 0x40258b
lea eax, [ecx + 1]
mov edx, 1
lea edi, [ecx - 1]
cmp eax, esi
jge 0x40258b
cmp byte [ebx + ecx + 1], 0x3a
jne 0x40258b
lea eax, [ecx + 2]
jmp 0x4025f7
xor edi, edi
mov dword [ecx], 1
test esi, esi
jle 0x40258b
nop dword [eax]
cmp byte [ebx + edi], 0x3a
je 0x4025ee
inc edi
cmp edi, esi
jl 0x4025d0
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00417bc2
mov esp, ebp
pop ebp
ret
cmp edi, esi
jge 0x40258b
xor edx, edx
lea eax, [edi + 1]
sub esi, eax
mov dword [ebp - 0x90], eax
cmp edi, 0x80
jae 0x40258b
lea eax, [ebx + edx]
push edi
push eax
lea eax, [ebp - 0x8c]
push eax
call fcn.00418e40
add esp, 0xc
mov byte [ebp + edi - 0x8c], 0
cmp esi, 6
jae 0x40258b
mov eax, dword [ebp - 0x90]
add eax, ebx
push esi
push eax
lea eax, [ebp - 0xc]
push eax
call fcn.00418e40
push 0xa
lea eax, [ebp - 0x94]
mov byte [ebp + esi - 0xc], 0
push eax
lea eax, [ebp - 0xc]
push eax
call fcn.0041da58
add esp, 0x18
mov edx, eax
cmp byte [ebp - 0xc], 0
je 0x40258b
mov ecx, dword [ebp - 0x94]
cmp byte [ecx], 0
jne 0x40258b
cmp edx, 0xffff
ja 0x40258b
mov ebx, dword [ebp - 0x98]
xorps xmm0, xmm0
shr eax, 8
mov byte [ebp - 0x90], al
mov byte [ebp - 0x8f], dl
mov eax, dword [ebx]
movups xmmword [ebp - 0xc0], xmm0
movups xmmword [ebp - 0xb0], xmm0
sub eax, 1
je 0x4026be
sub eax, 1
jne 0x4026c8
mov dword [ebp - 0xbc], 0x17
jmp 0x4026c8
mov dword [ebp - 0xbc], 2
cmp dword [ebp + 0x18], 0
je 0x4026d5
or dword [ebp - 0xc0], 4
lea eax, [ebp - 0x9c]
push eax
lea eax, [ebp - 0xc0]
push eax
push 0
lea eax, [ebp - 0x8c]
push eax
call dword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
jne 0x40258b
mov eax, dword [ebx]
mov ecx, dword [ebp - 0x9c]
sub eax, 1
je 0x402724
sub eax, 1
jne 0x402738
mov eax, dword [ecx + 0x18]
movups xmm0, xmmword [eax + 8]
mov ax, word [ebp - 0x90]
mov word [ebx + 0x14], ax
movups xmmword [ebx + 4], xmm0
jmp 0x402738
mov eax, dword [ecx + 0x18]
mov eax, dword [eax + 4]
mov dword [ebx + 4], eax
mov ax, word [ebp - 0x90]
mov word [ebx + 8], ax
push ecx
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
mov edx, dword [ebp - 0xa0]
test edx, edx
je 0x40277d
lea ecx, [ebp - 0x8c]
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x402752
sub ecx, esi
cmp ecx, dword [ebp + 0x14]
jae 0x40258b
lea ecx, [ebp - 0x8c]
mov eax, ecx
sub edx, eax
nop
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx + ecx - 1], al
test al, al
jne 0x402770
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00417bc2
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop esi
xor ecx, ebp
pop ebx
call fcn.00417bc2
mov esp, ebp
pop ebp
ret