Function at 0x1002ad60
Capabilities:
Resolve dns

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1006cf88
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x100
mov eax, dword [0x10086040]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebx + 8]
lea ecx, [ebp - 0x5c]
mov edi, dword [ebx + 0x10]
mov dword [ebp - 0xe8], eax
mov dword [ebp - 0xfc], eax
mov eax, dword [ebx + 0x14]
mov dword [ebp - 0xe4], eax
lea eax, [edi + 0x38]
mov dword [ebp - 0xf8], 0
push eax
mov dword [ebp - 0xf0], edi
mov dword [ebp - 0xf4], 0
mov dword [ebp - 0x100], eax
call fcn.10005340
mov dword [ebp - 4], 0
lea eax, [edi + 0x20]
cmp dword [ebp - 0x48], 0xf
lea esi, [ebp - 0x5c]
push eax
cmova esi, dword [ebp - 0x5c]
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0xe8], eax
call fcn.10005340
cmp dword [ebp - 0x18], 0xf
lea edi, [ebp - 0x2c]
mov dword [ebp - 0xf8], 0x60
cmova edi, dword [ebp - 0x2c]
test edi, edi
je 0x1002ae2a
cmp byte [edi], 0
jne 0x1002ae2c
xor edi, edi
test esi, esi
je 0x1002ae35
cmp byte [esi], 0
jne 0x1002ae37
xor esi, esi
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
lea eax, [ebp - 0xf4]
push eax
push dword [ebp - 0xf0]
push esi
push edi
call dword [sym.imp.WS2_32.dll_getaddrinfo]
mov edx, eax
lea ecx, [ebp - 0x108]
call fcn.10029310
mov edi, dword [ebp - 0xe4]
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [edi], ecx
mov ecx, dword [ebp - 0x18]
mov dword [edi + 4], eax
cmp ecx, 0xf
jbe 0x1002aea5
mov edx, dword [ebp - 0x2c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1002ae9b
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1002b373
push ecx
push edx
call fcn.10046823
add esp, 8
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x48]
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0xf
mov byte [ebp - 0x2c], 0
cmp ecx, 0xf
jbe 0x1002aef2
mov edx, dword [ebp - 0x5c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1002aee8
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1002b373
push ecx
push edx
call fcn.10046823
add esp, 8
mov esi, dword [ebp - 0xf4]
mov dword [ebp - 0x104], esi
mov dword [ebp - 4], 1
cmp dword [edi], 0
je 0x1002af3a
mov dword [ebp - 0x10c], 0
lea edi, [ebp - 0x10c]
mov dword [ebp - 0x108], 0
mov dword [ebp - 0x104], 0
mov edx, 0x61
xor ecx, ecx
jmp 0x1002b1fc
push dword [ebp - 0x100]
lea ecx, [ebp - 0x44]
call fcn.10005340
mov dword [ebp - 4], 3
lea ecx, [ebp - 0x5c]
push dword [ebp - 0xe8]
mov dword [ebp - 0xf8], 0xe2
call fcn.10005340
mov edi, dword [ebp - 0xf4]
xor ecx, ecx
mov dword [ebp - 0xf0], edi
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 4], 5
mov dword [ebp - 0xf8], 0x3e6
test edi, edi
je 0x1002b1f4
lea eax, [ebp - 0x5c]
push eax
lea ecx, [ebp - 0x90]
call fcn.10005340
mov dword [ebp - 4], 6
mov edx, dword [edi + 0x14]
test edx, edx
je 0x1002afda
mov ecx, edx
lea eax, [ecx + 1]
mov dword [ebp - 0xe8], eax
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1002afc0
sub ecx, dword [ebp - 0xe8]
push ecx
push edx
lea ecx, [ebp - 0x90]
call fcn.1000e450
push 0xc
call fcn.100463c4
add esp, 4
mov dword [ebp - 0xe4], eax
mov dword [ebp - 0xe8], eax
mov dword [eax], 0
mov dword [eax + 4], 0
mov dword [eax + 8], 0
push 0x10
mov byte [ebp - 4], 7
call fcn.100463c4
mov dword [ebp - 0xe8], eax
xorps xmm0, xmm0
mov ecx, dword [ebp - 0xe4]
add esp, 4
mov byte [ebp - 4], 6
movq qword [eax], xmm0
mov dword [eax + 8], 0
mov dword [eax + 0xc], ecx
mov dword [ebp - 0x20], ecx
mov ecx, dword [0x1008816c]
mov dword [eax + 4], 1
mov dword [eax + 8], 1
mov dword [eax], 0x1007b868
mov dword [ebp - 0x1c], eax
mov eax, dword fs:[0x2c]
lea ecx, [eax + ecx*4]
mov dword [ebp - 0x100], ecx
mov ecx, 2
mov eax, dword [edi + 4]
cmp eax, 2
je 0x1002b078
cmp eax, 0x17
jne 0x1002b1a6
cmp dword [edi + 0x10], 0x80
xorps xmm0, xmm0
movlpd qword [ebp - 0x70], xmm0
movlpd qword [ebp - 0x68], xmm0
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x78], 2
mov dword [ebp - 0x74], 0
ja 0x1002b382
push dword [edi + 0x10]
lea eax, [ebp - 0x78]
push dword [edi + 0x18]
push eax
call fcn.1004bec0
movups xmm0, xmmword [ebp - 0x78]
mov edi, dword [ebp - 0x34]
lea eax, [ebp - 0x44]
add esp, 0xc
mov dword [ebp - 0xb4], 0
cmp dword [ebp - 0x30], 0xf
lea ecx, [ebp - 0x90]
movups xmmword [ebp - 0xe0], xmm0
cmova eax, dword [ebp - 0x44]
cmp dword [ebp - 0x7c], 0xf
movq xmm0, qword [ebp - 0x68]
cmova ecx, dword [ebp - 0x90]
push dword [ebp - 0x80]
movq qword [ebp - 0xd0], xmm0
xorps xmm0, xmm0
mov dword [ebp - 0xe8], eax
mov eax, dword [ebp - 0x60]
push ecx
lea ecx, [ebp - 0xc4]
mov dword [ebp - 0xc8], eax
movups xmmword [ebp - 0xc4], xmm0
mov dword [ebp - 0xb0], 0
call fcn.10005770
mov byte [ebp - 4], 8
lea ecx, [ebp - 0xac]
push edi
push dword [ebp - 0xe8]
xorps xmm0, xmm0
mov dword [ebp - 0x9c], 0
movups xmmword [ebp - 0xac], xmm0
mov dword [ebp - 0x98], 0
call fcn.10005770
mov byte [ebp - 4], 9
lea eax, [ebp - 0xe0]
mov edi, dword [ebp - 0xe4]
push eax
mov ecx, dword [edi + 4]
cmp ecx, dword [edi + 8]
je 0x1002b184
call fcn.1002bb70
add dword [edi + 4], 0x4c
jmp 0x1002b18c
push ecx
mov ecx, edi
call fcn.1002b800
lea ecx, [ebp - 0xe0]
mov byte [ebp - 4], 6
call fcn.1002b3f0
mov edi, dword [ebp - 0xf0]
mov ecx, 2
mov edi, dword [edi + 0x1c]
mov dword [ebp - 0xf0], edi
test edi, edi
jne 0x1002b067
mov ecx, dword [ebp - 0x7c]
cmp ecx, 0xf
jbe 0x1002b1ee
mov edx, dword [ebp - 0x90]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1002b1e4
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1002b378
push ecx
push edx
call fcn.10046823
add esp, 8
mov ecx, dword [ebp - 0xe4]
lea edi, [ebp - 0x20]
mov edx, 8
mov eax, dword [ebp - 0xfc]
or edx, 0x10
mov dword [edi], 0
mov dword [eax], ecx
mov ecx, dword [ebp - 0xfc]
mov dword [eax + 4], 0
mov eax, dword [edi + 4]
mov dword [edi + 4], 0
mov dword [ecx + 4], eax
mov eax, dword [edi + 8]
mov dword [ecx + 8], eax
mov dword [edi + 8], 0
test dl, 8
je 0x1002b270
mov edi, dword [ebp - 0x1c]
and edx, 0xfffffff7
mov dword [ebp - 0xe4], edx
test edi, edi
je 0x1002b270
or eax, 0xffffffff
lock xadd dword [edi + 4], eax
jne 0x1002b270
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
or eax, 0xffffffff
lock xadd dword [edi + 8], eax
jne 0x1002b26a
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
mov edx, dword [ebp - 0xe4]
test dl, 4
je 0x1002b2b8
mov ecx, dword [ebp - 0x48]
and edx, 0xfffffffb
mov dword [ebp - 0xe4], edx
cmp ecx, 0xf
jbe 0x1002b2b8
mov edx, dword [ebp - 0x5c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1002b2a8
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1002b37d
push ecx
push edx
call fcn.10046823
mov edx, dword [ebp - 0xe4]
add esp, 8
test dl, 2
je 0x1002b312
mov ecx, dword [ebp - 0x30]
and edx, 0xfffffffd
mov dword [ebp - 0xe4], edx
cmp ecx, 0xf
jbe 0x1002b300
mov edx, dword [ebp - 0x44]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1002b2f0
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1002b37d
push ecx
push edx
call fcn.10046823
mov edx, dword [ebp - 0xe4]
add esp, 8
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0xf
mov byte [ebp - 0x44], 0
test dl, 1
je 0x1002b342
mov edi, dword [ebp - 0x108]
test edi, edi
je 0x1002b342
or eax, 0xffffffff
lock xadd dword [edi + 4], eax
jne 0x1002b342
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
or eax, 0xffffffff
lock xadd dword [edi + 8], eax
jne 0x1002b342
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
test esi, esi
je 0x1002b34d
push esi
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
mov eax, dword [ebp - 0xfc]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.100462d6
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 0x10
call fcn.1004f161
call fcn.1004f161
call fcn.1004f161
mov ecx, dword [ebp - 0x100]
mov eax, dword [0x10088e60]
mov ecx, dword [ecx]
cmp eax, dword [ecx + 4]
jle 0x1002b3c7
push 0x10088e60
call fcn.10046360
add esp, 4
cmp dword [0x10088e60], 0xffffffff
jne 0x1002b3c7
push 0x1006fa40
call fcn.1004680e
add esp, 4
push 0x10088e60
call fcn.1004630f
add esp, 4
lea ecx, [ebp - 0xec]
mov dword [ebp - 0xe8], 0x10086bf8
mov dword [ebp - 0xec], 0x2726
call fcn.10028f30
int3