Function at 0x10047080
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1008ce4c
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.1006332a
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 0x100476d0
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 0x100473a9
cmp dword [edi + 0x28], 0
je 0x100474d3
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 0x100471ce
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 0x100471e5
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 0x10047206
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.1001a940
push eax
lea ecx, [ebp - 0x24]
call fcn.10019cb0
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x44]
cmp ecx, 0xf
jbe 0x10047261
mov edx, dword [ebp - 0x58]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10047257
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100476f8
push ecx
push edx
call fcn.10063674
add esp, 8
mov edi, dword [ebp - 0x90]
cmp edi, dword [ebp - 0x8c]
je 0x1004728e
lea eax, [ebp - 0x40]
cmp eax, edi
je 0x1004728e
mov eax, edi
mov ecx, eax
cmp dword [ecx + 0x14], 0xf
jbe 0x10047282
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 0x100472c1
mov ecx, dword [ebp - 0x20]
cmp ecx, 0xffffffff
je 0x100472ba
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 0x100472d1
push eax
call fcn.10063325
add esp, 4
mov byte [ebp - 4], 1
test edi, edi
je 0x100473a6
mov eax, dword [ebp - 0x8c]
mov esi, edi
cmp esi, eax
je 0x10047341
nop dword [eax]
mov ecx, dword [esi + 0x14]
cmp ecx, 0xf
jbe 0x10047329
mov eax, dword [esi]
inc ecx
cmp ecx, 0x1000
jb 0x10047319
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100476f8
mov eax, edx
push ecx
push eax
call fcn.10063674
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 0x100472f0
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 0x1004737e
mov edi, dword [eax - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100476f8
push ecx
push edi
call fcn.10063674
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 0x100473cf
lea eax, [edi + 0x18]
lea ecx, [ebp - 0x40]
cmp ecx, eax
je 0x100473cf
cmp dword [eax + 0x14], 0xf
mov ecx, eax
jbe 0x100473c3
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 0x1004765d
mov eax, closesocket
sub eax, ecx
cmp eax, 1
jb 0x100476f3
cmp dword [ebp - 0x2c], 0xf
lea eax, [ebp - 0x40]
push 1
cmova eax, dword [ebp - 0x40]
push 0x10097cd4
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 0x10047424
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 0x100475ed
mov edx, dword [esi + 0x14]
cmp edx, 0xf
jbe 0x100474b1
mov ecx, dword [esi]
inc edx
cmp edx, 0x1000
jb 0x100474a7
mov edi, dword [ecx - 4]
add edx, 0x23
sub ecx, edi
lea eax, [ecx - 4]
cmp eax, 0x1f
ja 0x100476f8
mov ecx, edi
push edx
push ecx
call fcn.10063674
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 0x100475f0
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 0x1004750a
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 0x100473a9
mov edx, dword [ebp - 0x7c]
mov eax, edx
test eax, eax
je 0x100473a9
mov esi, 2
mov ecx, dword [eax + 0x18]
cmp si, word [ecx]
je 0x1004754a
mov eax, dword [eax + 0x1c]
test eax, eax
jne 0x10047536
jmp 0x100475d9
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 0x10047570
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 0x100475d6
mov edx, dword [ebp - 0x28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x100475cc
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100476f8
push ecx
push edx
call fcn.10063674
add esp, 8
mov edx, dword [ebp - 0x7c]
test edx, edx
je 0x100473a9
push edx
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
jmp 0x100473a9
mov ecx, dword [ebp - 0x64]
mov byte [ebp - 4], 6
cmp ecx, 0xf
jbe 0x10047625
mov edx, dword [ebp - 0x78]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1004761b
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100476f8
push ecx
push edx
call fcn.10063674
add esp, 8
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x44]
cmp ecx, 0xf
jbe 0x1004765d
mov edx, dword [ebp - 0x58]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10047653
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100476f8
push ecx
push edx
call fcn.10063674
add esp, 8
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x2c]
cmp ecx, 0xf
jbe 0x10047691
mov edx, dword [ebp - 0x40]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10047687
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100476f8
push ecx
push edx
call fcn.10063674
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 0x10047140
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.10063317
mov esp, ebp
pop ebp
ret 8
call fcn.10002b20
call fcn.1006dd1f
int3