Function at 0x1004a2f0
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100900bc
mov eax, dword fs:[0]
push eax
sub esp, 0x9c
mov eax, dword [0x100ab080]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov dword [ebp - 4], 0
mov dword [ebp - 0xa8], esi
mov dword [ebp - 0x80], 0
push 0x40
mov dword [ebp - 0x98], esi
mov dword [ebp - 0xa4], edi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.1006637f
add esp, 4
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [esi], eax
xor ecx, ecx
mov dword [ebp - 4], 0
mov esi, dword [edi]
mov eax, 0x4ec4ec4f
mov dword [ebp - 0x84], ecx
mov ecx, dword [edi + 4]
sub ecx, esi
mov dword [ebp - 0x80], 1
imul ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x1004a940
xor edi, edi
mov dword [ebp - 0x94], edi
nop word [eax + eax]
xorps xmm0, xmm0
mov dword [ebp - 0x30], 0
add edi, esi
mov dword [ebp - 0x2c], 0xf
movups xmmword [ebp - 0x40], xmm0
mov dword [ebp - 0x7c], edi
mov byte [ebp - 0x40], 0
mov dword [ebp - 4], 1
cmp dword [edi + 0x30], 0
jne 0x1004a619
cmp dword [edi + 0x28], 0
je 0x1004a743
mov dword [ebp - 0x90], 0
mov dword [ebp - 0x8c], 0
mov dword [ebp - 0x88], 0
xor eax, eax
mov dword [ebp - 0x9c], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0xffffffff
mov dword [ebp - 0x1c], 0
mov word [ebp - 0x18], ax
mov dword [ebp - 0x14], eax
lea edx, [edi + 0x18]
mov byte [ebp - 4], 3
cmp dword [edx + 0x14], 0xf
jbe 0x1004a43e
mov edx, dword [edx]
mov ecx, edx
mov dword [ebp - 0x48], 0
movups xmmword [ebp - 0x58], xmm0
mov dword [ebp - 0x44], 0
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1004a455
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x58]
call fcn.10003200
mov byte [ebp - 4], 4
mov eax, edi
cmp dword [edi + 0x14], 0xf
jbe 0x1004a476
mov eax, dword [edi]
lea ecx, [ebp - 0x9c]
push ecx
sub esp, 8
lea ecx, [ebp - 0x90]
push ecx
push eax
lea ecx, [ebp - 0x58]
call fcn.1001a9d0
push eax
lea ecx, [ebp - 0x24]
call fcn.10019d40
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x44]
cmp ecx, 0xf
jbe 0x1004a4d1
mov edx, dword [ebp - 0x58]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1004a4c7
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1004a968
push ecx
push edx
call fcn.100666c9
add esp, 8
mov edi, dword [ebp - 0x90]
cmp edi, dword [ebp - 0x8c]
je 0x1004a4fe
lea eax, [ebp - 0x40]
cmp eax, edi
je 0x1004a4fe
mov eax, edi
mov ecx, eax
cmp dword [ecx + 0x14], 0xf
jbe 0x1004a4f2
mov eax, dword [edi]
push dword [ecx + 0x10]
lea ecx, [ebp - 0x40]
push eax
call fcn.10002eb0
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x1004a531
mov ecx, dword [ebp - 0x20]
cmp ecx, 0xffffffff
je 0x1004a52a
push 0
push eax
push ecx
call dword [sym.imp.WS2_32.dll_WSAEventSelect]
push dword [ebp - 0x20]
call dword [sym.imp.WS2_32.dll_closesocket]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x20], 0xffffffff
push eax
call dword [sym.imp.WS2_32.dll_WSACloseEvent]
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x1004a541
push eax
call fcn.1006637a
add esp, 4
mov byte [ebp - 4], 1
test edi, edi
je 0x1004a616
mov eax, dword [ebp - 0x8c]
mov esi, edi
cmp esi, eax
je 0x1004a5b1
nop dword [eax]
mov ecx, dword [esi + 0x14]
cmp ecx, 0xf
jbe 0x1004a599
mov eax, dword [esi]
inc ecx
cmp ecx, 0x1000
jb 0x1004a589
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1004a968
mov eax, edx
push ecx
push eax
call fcn.100666c9
mov eax, dword [ebp - 0x8c]
add esp, 8
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
mov byte [esi], 0
add esi, 0x18
cmp esi, eax
jne 0x1004a560
mov ecx, dword [ebp - 0x88]
mov eax, 0x2aaaaaab
sub ecx, edi
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
lea ecx, [eax + eax*2]
mov eax, edi
shl ecx, 3
cmp ecx, 0x1000
jb 0x1004a5ee
mov edi, dword [eax - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1004a968
push ecx
push edi
call fcn.100666c9
add esp, 8
mov dword [ebp - 0x90], 0
mov dword [ebp - 0x8c], 0
mov dword [ebp - 0x88], 0
mov edi, dword [ebp - 0x7c]
cmp dword [edi + 0x30], 1
jne 0x1004a63f
lea eax, [edi + 0x18]
lea ecx, [ebp - 0x40]
cmp ecx, eax
je 0x1004a63f
cmp dword [eax + 0x14], 0xf
mov ecx, eax
jbe 0x1004a633
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
lea ecx, [ebp - 0x40]
call fcn.10002eb0
mov ecx, dword [ebp - 0x30]
test ecx, ecx
je 0x1004a8cd
mov eax, closesocket
sub eax, ecx
cmp eax, 1
jb 0x1004a963
cmp dword [ebp - 0x2c], 0xf
lea eax, [ebp - 0x40]
push 1
cmova eax, dword [ebp - 0x40]
push 0x1009acbc
push ecx
push eax
push ecx
push dword [ebp - 0xa8]
lea ecx, [ebp - 0x58]
call fcn.100043e0
mov esi, dword [ebp - 0x80]
or esi, 2
mov dword [ebp - 0x80], esi
mov byte [ebp - 4], 6
mov eax, edi
cmp dword [edi + 0x14], 0xf
jbe 0x1004a694
mov eax, dword [edi]
push eax
lea ecx, [ebp - 0x58]
call fcn.100030f0
or esi, 4
mov dword [ebp - 0x80], esi
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x20], xmm0
movups xmmword [ebp - 0x78], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0xa0], xmm0
movq qword [ebp - 0x68], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
mov byte [ebp - 4], 7
mov ecx, dword [ebp - 0x98]
push edi
call fcn.10003ea0
mov esi, eax
lea eax, [ebp - 0x78]
cmp esi, eax
je 0x1004a85d
mov edx, dword [esi + 0x14]
cmp edx, 0xf
jbe 0x1004a721
mov ecx, dword [esi]
inc edx
cmp edx, 0x1000
jb 0x1004a717
mov edi, dword [ecx - 4]
add edx, 0x23
sub ecx, edi
lea eax, [ecx - 4]
cmp eax, 0x1f
ja 0x1004a968
mov ecx, edi
push edx
push ecx
call fcn.100666c9
add esp, 8
movups xmm0, xmmword [ebp - 0x20]
mov ecx, 0xf
mov byte [ebp - 0x78], 0
movups xmmword [esi], xmm0
movq xmm0, qword [ebp - 0xa0]
movq qword [esi + 0x10], xmm0
jmp 0x1004a860
cmp dword [edi + 0x14], 0xf
mov eax, edi
movlpd qword [ebp - 0x50], xmm0
movlpd qword [ebp - 0x48], xmm0
mov dword [ebp - 0x7c], 0
mov dword [ebp - 0x5c], 2
mov dword [ebp - 0x60], 1
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x58], 1
jbe 0x1004a77a
mov eax, dword [edi]
lea ecx, [ebp - 0x7c]
push ecx
lea ecx, [ebp - 0x60]
push ecx
push 0
push eax
call dword [sym.imp.WS2_32.dll_getaddrinfo]
cmp eax, 0xffffffff
je 0x1004a619
mov edx, dword [ebp - 0x7c]
mov eax, edx
test eax, eax
je 0x1004a619
mov esi, 2
mov ecx, dword [eax + 0x18]
cmp si, word [ecx]
je 0x1004a7ba
mov eax, dword [eax + 0x1c]
test eax, eax
jne 0x1004a7a6
jmp 0x1004a849
push dword [ecx + 4]
call dword [sym.imp.WS2_32.dll_inet_ntoa]
mov edx, eax
mov dword [ebp - 0x18], 0
mov ecx, edx
mov dword [ebp - 0x14], 0
xorps xmm0, xmm0
movups xmmword [ebp - 0x28], xmm0
lea esi, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1004a7e0
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x28]
call fcn.10003200
mov byte [ebp - 4], 5
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], 0xf
lea ecx, [ebp - 0x40]
push dword [ebp - 0x18]
cmova eax, dword [ebp - 0x28]
push eax
call fcn.10002eb0
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x14]
cmp ecx, 0xf
jbe 0x1004a846
mov edx, dword [ebp - 0x28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1004a83c
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1004a968
push ecx
push edx
call fcn.100666c9
add esp, 8
mov edx, dword [ebp - 0x7c]
test edx, edx
je 0x1004a619
push edx
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
jmp 0x1004a619
mov ecx, dword [ebp - 0x64]
mov byte [ebp - 4], 6
cmp ecx, 0xf
jbe 0x1004a895
mov edx, dword [ebp - 0x78]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1004a88b
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1004a968
push ecx
push edx
call fcn.100666c9
add esp, 8
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x44]
cmp ecx, 0xf
jbe 0x1004a8cd
mov edx, dword [ebp - 0x58]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1004a8c3
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1004a968
push ecx
push edx
call fcn.100666c9
add esp, 8
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x2c]
cmp ecx, 0xf
jbe 0x1004a901
mov edx, dword [ebp - 0x40]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1004a8f7
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1004a968
push ecx
push edx
call fcn.100666c9
add esp, 8
mov eax, dword [ebp - 0xa4]
mov edi, dword [ebp - 0x94]
inc dword [ebp - 0x84]
add edi, 0x34
mov dword [ebp - 0x94], edi
mov ecx, dword [eax + 4]
mov esi, dword [eax]
sub ecx, esi
mov eax, 0x4ec4ec4f
imul ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp dword [ebp - 0x84], eax
jb 0x1004a3b0
mov eax, dword [ebp - 0x98]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1006636c
mov esp, ebp
pop ebp
ret 8
call fcn.10002b90
call fcn.10070c0f
int3