Function at 0x1002aad0
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 0x1006c9d8
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.10005430
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.10005430
cmp dword [ebp - 0x18], 0xf
lea edi, [ebp - 0x2c]
mov dword [ebp - 0xf8], 0x60
cmova edi, dword [ebp - 0x2c]
test edi, edi
je 0x1002ab9a
cmp byte [edi], 0
jne 0x1002ab9c
xor edi, edi
test esi, esi
je 0x1002aba5
cmp byte [esi], 0
jne 0x1002aba7
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.10029030
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 0x1002ac15
mov edx, dword [ebp - 0x2c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1002ac0b
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1002b0e3
push ecx
push edx
call fcn.1004633f
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 0x1002ac62
mov edx, dword [ebp - 0x5c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1002ac58
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1002b0e3
push ecx
push edx
call fcn.1004633f
add esp, 8
mov esi, dword [ebp - 0xf4]
mov dword [ebp - 0x104], esi
mov dword [ebp - 4], 1
cmp dword [edi], 0
je 0x1002acaa
mov dword [ebp - 0x10c], 0
mov dword [ebp - 0x108], 0
mov dword [ebp - 0x104], 0
lea edi, [ebp - 0x10c]
mov edx, 0x61
xor ecx, ecx
jmp 0x1002af6c
push dword [ebp - 0x100]
lea ecx, [ebp - 0x44]
call fcn.10005430
mov dword [ebp - 4], 3
lea ecx, [ebp - 0x5c]
push dword [ebp - 0xe8]
mov dword [ebp - 0xf8], 0xe2
call fcn.10005430
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 0x1002af64
lea eax, [ebp - 0x5c]
push eax
lea ecx, [ebp - 0x90]
call fcn.10005430
mov dword [ebp - 4], 6
mov edx, dword [edi + 0x14]
test edx, edx
je 0x1002ad4a
mov ecx, edx
lea eax, [ecx + 1]
mov dword [ebp - 0xe8], eax
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1002ad30
sub ecx, dword [ebp - 0xe8]
push ecx
push edx
lea ecx, [ebp - 0x90]
call fcn.1000e360
push 0xc
call fcn.10045ee0
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.10045ee0
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 [0x1008813c]
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 0x1002ade8
cmp eax, 0x17
jne 0x1002af16
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 0x1002b0f2
push dword [edi + 0x10]
lea eax, [ebp - 0x78]
push dword [edi + 0x18]
push eax
call fcn.1004b850
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.100056a0
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.100056a0
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 0x1002aef4
call fcn.1002b8e0
add dword [edi + 4], 0x4c
jmp 0x1002aefc
push ecx
mov ecx, edi
call fcn.1002b570
lea ecx, [ebp - 0xe0]
mov byte [ebp - 4], 6
call fcn.1002b160
mov edi, dword [ebp - 0xf0]
mov ecx, 2
mov edi, dword [edi + 0x1c]
mov dword [ebp - 0xf0], edi
test edi, edi
jne 0x1002add7
mov ecx, dword [ebp - 0x7c]
cmp ecx, 0xf
jbe 0x1002af5e
mov edx, dword [ebp - 0x90]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1002af54
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1002b0e8
push ecx
push edx
call fcn.1004633f
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 0x1002afe0
mov edi, dword [ebp - 0x1c]
and edx, 0xfffffff7
mov dword [ebp - 0xe4], edx
test edi, edi
je 0x1002afe0
or eax, 0xffffffff
lock xadd dword [edi + 4], eax
jne 0x1002afe0
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
or eax, 0xffffffff
lock xadd dword [edi + 8], eax
jne 0x1002afda
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
mov edx, dword [ebp - 0xe4]
test dl, 4
je 0x1002b028
mov ecx, dword [ebp - 0x48]
and edx, 0xfffffffb
mov dword [ebp - 0xe4], edx
cmp ecx, 0xf
jbe 0x1002b028
mov edx, dword [ebp - 0x5c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1002b018
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1002b0ed
push ecx
push edx
call fcn.1004633f
mov edx, dword [ebp - 0xe4]
add esp, 8
test dl, 2
je 0x1002b082
mov ecx, dword [ebp - 0x30]
and edx, 0xfffffffd
mov dword [ebp - 0xe4], edx
cmp ecx, 0xf
jbe 0x1002b070
mov edx, dword [ebp - 0x44]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1002b060
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1002b0ed
push ecx
push edx
call fcn.1004633f
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 0x1002b0b2
mov edi, dword [ebp - 0x108]
test edi, edi
je 0x1002b0b2
or eax, 0xffffffff
lock xadd dword [edi + 4], eax
jne 0x1002b0b2
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
or eax, 0xffffffff
lock xadd dword [edi + 8], eax
jne 0x1002b0b2
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
test esi, esi
je 0x1002b0bd
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.10045df2
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 0x10
call fcn.1004eae1
call fcn.1004eae1
call fcn.1004eae1
mov ecx, dword [ebp - 0x100]
mov eax, dword [0x10088e30]
mov ecx, dword [ecx]
cmp eax, dword [ecx + 4]
jle 0x1002b137
push 0x10088e30
call fcn.10045e7c
add esp, 4
cmp dword [0x10088e30], 0xffffffff
jne 0x1002b137
push 0x1006f400
call fcn.1004632a
add esp, 4
push 0x10088e30
call fcn.10045e2b
add esp, 4
lea ecx, [ebp - 0xec]
mov dword [ebp - 0xe8], 0x10086bc8
mov dword [ebp - 0xec], 0x2726
call fcn.10028c40
int3