Function at 0x100470d0
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1008cd5c
mov eax, dword fs:[0]
push eax
sub esp, 0x9c
mov eax, dword [0x100a70c0]
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.1006328a
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 0x10047720
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 0x100473f9
cmp dword [edi + 0x28], 0
je 0x10047523
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 0x1004721e
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 0x10047235
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x58]
call fcn.10003170
mov byte [ebp - 4], 4
mov eax, edi
cmp dword [edi + 0x14], 0xf
jbe 0x10047256
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.1001a9b0
push eax
lea ecx, [ebp - 0x24]
call fcn.10019d20
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x44]
cmp ecx, 0xf
jbe 0x100472b1
mov edx, dword [ebp - 0x58]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x100472a7
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10047748
push ecx
push edx
call fcn.100635d4
add esp, 8
mov edi, dword [ebp - 0x90]
cmp edi, dword [ebp - 0x8c]
je 0x100472de
lea eax, [ebp - 0x40]
cmp eax, edi
je 0x100472de
mov eax, edi
mov ecx, eax
cmp dword [ecx + 0x14], 0xf
jbe 0x100472d2
mov eax, dword [edi]
push dword [ecx + 0x10]
lea ecx, [ebp - 0x40]
push eax
call fcn.10002e20
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x10047311
mov ecx, dword [ebp - 0x20]
cmp ecx, 0xffffffff
je 0x1004730a
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 0x10047321
push eax
call fcn.10063285
add esp, 4
mov byte [ebp - 4], 1
test edi, edi
je 0x100473f6
mov eax, dword [ebp - 0x8c]
mov esi, edi
cmp esi, eax
je 0x10047391
nop dword [eax]
mov ecx, dword [esi + 0x14]
cmp ecx, 0xf
jbe 0x10047379
mov eax, dword [esi]
inc ecx
cmp ecx, 0x1000
jb 0x10047369
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10047748
mov eax, edx
push ecx
push eax
call fcn.100635d4
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 0x10047340
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 0x100473ce
mov edi, dword [eax - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10047748
push ecx
push edi
call fcn.100635d4
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 0x1004741f
lea eax, [edi + 0x18]
lea ecx, [ebp - 0x40]
cmp ecx, eax
je 0x1004741f
cmp dword [eax + 0x14], 0xf
mov ecx, eax
jbe 0x10047413
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
lea ecx, [ebp - 0x40]
call fcn.10002e20
mov ecx, dword [ebp - 0x30]
test ecx, ecx
je 0x100476ad
mov eax, closesocket
sub eax, ecx
cmp eax, 1
jb 0x10047743
cmp dword [ebp - 0x2c], 0xf
lea eax, [ebp - 0x40]
push 1
cmova eax, dword [ebp - 0x40]
push 0x10097c94
push ecx
push eax
push ecx
push dword [ebp - 0xa8]
lea ecx, [ebp - 0x58]
call fcn.10004340
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 0x10047474
mov eax, dword [edi]
push eax
lea ecx, [ebp - 0x58]
call fcn.10003060
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.10003e00
mov esi, eax
lea eax, [ebp - 0x78]
cmp esi, eax
je 0x1004763d
mov edx, dword [esi + 0x14]
cmp edx, 0xf
jbe 0x10047501
mov ecx, dword [esi]
inc edx
cmp edx, 0x1000
jb 0x100474f7
mov edi, dword [ecx - 4]
add edx, 0x23
sub ecx, edi
lea eax, [ecx - 4]
cmp eax, 0x1f
ja 0x10047748
mov ecx, edi
push edx
push ecx
call fcn.100635d4
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 0x10047640
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 0x1004755a
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 0x100473f9
mov edx, dword [ebp - 0x7c]
mov eax, edx
test eax, eax
je 0x100473f9
mov esi, 2
mov ecx, dword [eax + 0x18]
cmp si, word [ecx]
je 0x1004759a
mov eax, dword [eax + 0x1c]
test eax, eax
jne 0x10047586
jmp 0x10047629
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 0x100475c0
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x28]
call fcn.10003170
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.10002e20
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x14]
cmp ecx, 0xf
jbe 0x10047626
mov edx, dword [ebp - 0x28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1004761c
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10047748
push ecx
push edx
call fcn.100635d4
add esp, 8
mov edx, dword [ebp - 0x7c]
test edx, edx
je 0x100473f9
push edx
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
jmp 0x100473f9
mov ecx, dword [ebp - 0x64]
mov byte [ebp - 4], 6
cmp ecx, 0xf
jbe 0x10047675
mov edx, dword [ebp - 0x78]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1004766b
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10047748
push ecx
push edx
call fcn.100635d4
add esp, 8
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x44]
cmp ecx, 0xf
jbe 0x100476ad
mov edx, dword [ebp - 0x58]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x100476a3
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10047748
push ecx
push edx
call fcn.100635d4
add esp, 8
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x2c]
cmp ecx, 0xf
jbe 0x100476e1
mov edx, dword [ebp - 0x40]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x100476d7
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10047748
push ecx
push edx
call fcn.100635d4
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 0x10047190
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.10063277
mov esp, ebp
pop ebp
ret 8
call fcn.10002b20
call fcn.1006dc9f
int3