Function at 0x10006ec0
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100417a8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xbc
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
push 0x20c
mov dword [ebp - 0x14], 0
call fcn.100240ca
add esp, 4
mov dword [ebp - 0x34], eax
mov ecx, eax
mov dword [ebp - 4], 0
call fcn.1000d450
mov esi, eax
mov dword [ebp - 0x38], esi
push 0x10
mov dword [ebp - 4], 1
call fcn.100240ca
xorps xmm0, xmm0
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x80], esi
mov dword [ebp - 0x7c], eax
movq qword [eax], xmm0
mov dword [eax + 8], 0
mov dword [eax + 4], 1
mov dword [eax + 8], 1
mov dword [eax], vtable.std::_Ref_count_class_F_mS_.0
mov dword [eax + 0xc], esi
mov dword [ebp - 4], 2
push 0x58
mov byte [ebp - 4], 3
call fcn.100240ca
mov ecx, eax
add esp, 8
mov dword [ebp - 0x34], ecx
movq xmm0, qword [str.SocketDownload]
xor eax, eax
mov word [ebp - 0x22], ax
mov eax, dword [0x1004d1ec]
mov dword [ebp - 0x28], eax
mov ax, word [0x1004d1f0]
mov dword [ebp - 0x20], 0xe
mov dword [ebp - 0x1c], 0xf
movq qword [ebp - 0x30], xmm0
mov word [ebp - 0x24], ax
mov byte [ebp - 0x22], 0
lea eax, [ebp - 0x30]
mov byte [ebp - 4], 5
push eax
mov dword [ebp - 0x14], 1
call fcn.10015760
mov edi, eax
mov dword [ebp - 0x70], edi
mov dword [ebp - 4], 8
mov ecx, dword [ebp - 0x1c]
cmp ecx, 0xf
jbe 0x10006fef
mov edx, dword [ebp - 0x30]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10006fe5
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10007631
push ecx
push edx
call fcn.100240fa
add esp, 8
push 1
call fcn.100240ca
add esp, 4
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x74], eax
mov byte [ebp - 4], 9
mov ecx, dword [edi]
add ecx, 0x1c
cmp ecx, 0x10055c50
je 0x1000702f
cmp dword [0x10055c64], 0xf
mov eax, 0x10055c50
push dword [0x10055c60]
cmova eax, dword [0x10055c50]
push eax
call fcn.10008c50
mov ecx, dword [edi]
push 3
add ecx, 4
push 0x1004d1f4
call fcn.10008c50
mov ecx, dword [edi]
mov eax, dword [ebp + 0xc]
add ecx, 0x34
cmp ecx, eax
je 0x1000705f
cmp dword [eax + 0x14], 0xf
mov edx, eax
jbe 0x10007056
mov edx, dword [eax]
push dword [eax + 0x10]
push edx
call fcn.10008c50
mov ecx, dword [edi]
mov esi, dword [ebp + 8]
add ecx, 0x4c
cmp ecx, esi
je 0x1000707e
cmp dword [esi + 0x14], 0xf
mov eax, esi
jbe 0x10007075
mov eax, dword [esi]
push dword [esi + 0x10]
push eax
call fcn.10008c50
cmp dword [esi + 0x14], 0xf
mov eax, esi
jbe 0x10007088
mov eax, dword [esi]
push 0
push 0x80
push 3
push 0
push 1
push closesocket
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x14], eax
cmp eax, 0xffffffff
je 0x100070c5
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push dword [ebp - 0x14]
mov esi, eax
mov dword [ebp - 0x18], esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, 0xffffffff
jne 0x100070ca
xor esi, esi
mov dword [ebp - 0x18], esi
lea ecx, [ebp - 0x1b]
nop dword [eax]
mov eax, 0xcccccccd
dec ecx
mul esi
mov dword [ebp - 0x14], ecx
shr edx, 3
mov al, dl
mov esi, edx
shl al, 2
lea ecx, [eax + edx]
mov eax, dword [ebp - 0x18]
add cl, cl
sub al, cl
mov ecx, dword [ebp - 0x14]
add al, 0x30
mov byte [ecx], al
mov eax, edx
mov dword [ebp - 0x18], eax
test eax, eax
jne 0x100070d0
push ecx
lea eax, [ebp - 0x1b]
push eax
push ecx
lea ecx, [ebp - 0x6c]
call fcn.10001620
mov esi, dword [edi]
lea eax, [ebp - 0x6c]
add esi, 0x64
cmp esi, eax
je 0x10007176
mov ecx, dword [esi + 0x14]
cmp ecx, 0xf
jbe 0x1000714c
mov eax, dword [esi]
inc ecx
cmp ecx, 0x1000
jb 0x10007142
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10007631
mov eax, edx
push ecx
push eax
call fcn.100240fa
add esp, 8
movups xmm0, xmmword [ebp - 0x6c]
mov dword [esi + 0x10], 0
mov ecx, 0xf
mov dword [esi + 0x14], 0xf
movups xmmword [esi], xmm0
mov byte [ebp - 0x6c], 0
movq xmm0, qword [ebp - 0x5c]
movq qword [esi + 0x10], xmm0
jmp 0x10007179
mov ecx, dword [ebp - 0x58]
cmp ecx, 0xf
jbe 0x100071aa
mov edx, dword [ebp - 0x6c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x100071a0
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10007631
push ecx
push edx
call fcn.100240fa
add esp, 8
lea eax, [ebp - 0x54]
mov ecx, edi
push eax
call fcn.10016330
mov byte [ebp - 4], 0xa
mov ecx, dword [ebp - 0x38]
push eax
call fcn.1000d6c0
mov byte [ebp - 4], 9
mov ecx, dword [ebp - 0x40]
cmp ecx, 0xf
jbe 0x100071fa
mov edx, dword [ebp - 0x54]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x100071f0
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1000762c
push ecx
push edx
call fcn.100240fa
add esp, 8
push 0x58
call fcn.100240ca
mov ecx, eax
add esp, 4
mov dword [ebp - 0x18], ecx
movq xmm0, qword [str.SocketDownload]
xor eax, eax
mov word [ebp - 0x22], ax
mov eax, dword [0x1004d1ec]
mov dword [ebp - 0x28], eax
mov ax, word [0x1004d1f0]
mov dword [ebp - 0x20], 0xe
mov dword [ebp - 0x1c], 0xf
movq qword [ebp - 0x30], xmm0
mov word [ebp - 0x24], ax
mov byte [ebp - 0x22], 0
lea eax, [ebp - 0x30]
mov byte [ebp - 4], 0xc
push eax
mov dword [ebp - 0x14], 0xe
call fcn.10015760
mov esi, eax
mov dword [ebp - 0x18], esi
mov dword [ebp - 4], 0xf
mov ecx, dword [ebp - 0x1c]
cmp ecx, 0xf
jbe 0x10007294
mov edx, dword [ebp - 0x30]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1000728a
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10007631
push ecx
push edx
call fcn.100240fa
add esp, 8
mov ecx, dword [esi]
add ecx, 0x1c
cmp ecx, 0x10055c50
je 0x100072c0
cmp dword [0x10055c64], 0xf
mov eax, 0x10055c50
push dword [0x10055c60]
cmova eax, dword [0x10055c50]
push eax
call fcn.10008c50
mov ecx, dword [esi]
push 4
add ecx, 4
push str.save
call fcn.10008c50
mov ecx, dword [esi]
mov eax, dword [ebp + 0xc]
add ecx, 0x34
cmp ecx, eax
je 0x100072f0
cmp dword [eax + 0x14], 0xf
mov edx, eax
jbe 0x100072e7
mov edx, dword [eax]
push dword [eax + 0x10]
push edx
call fcn.10008c50
push dword [ebp + 8]
lea eax, [ebp - 0x54]
push eax
call fcn.1000e460
mov ecx, eax
mov eax, dword [esi]
add eax, 0x4c
mov dword [ebp - 0x14], ecx
mov dword [ebp + 0xc], eax
cmp eax, ecx
je 0x1000737a
mov edx, dword [eax + 0x14]
cmp edx, 0xf
jbe 0x10007348
mov eax, dword [eax]
lea ecx, [edx + 1]
cmp ecx, 0x1000
jb 0x10007338
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10007636
mov eax, edx
push ecx
push eax
call fcn.100240fa
mov eax, dword [ebp + 0xc]
add esp, 8
mov ecx, dword [ebp - 0x14]
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
movups xmm0, xmmword [ecx]
movups xmmword [eax], xmm0
movq xmm0, qword [ecx + 0x10]
movq qword [eax + 0x10], xmm0
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0xf
mov byte [ecx], 0
mov ecx, dword [ebp - 0x40]
cmp ecx, 0xf
jbe 0x100073ae
mov edx, dword [ebp - 0x54]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x100073a4
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10007636
push ecx
push edx
call fcn.100240fa
add esp, 8
push dword [ebp + 8]
lea eax, [ebp - 0x24]
push eax
call fcn.1000f790
mov ecx, dword [esi]
push eax
add ecx, 0x7c
call fcn.100087a0
mov ecx, dword [ebp - 0x24]
test ecx, ecx
je 0x100073f9
mov edx, dword [ebp - 0x1c]
mov eax, ecx
sub edx, ecx
cmp edx, 0x1000
jb 0x100073ef
mov ecx, dword [eax - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1000763b
push edx
push ecx
call fcn.100240fa
add esp, 8
lea eax, [ebp - 0x54]
mov ecx, esi
push eax
call fcn.10016330
mov byte [ebp - 4], 0x10
mov ecx, dword [ebp - 0x38]
push eax
call fcn.1000d6c0
mov ecx, dword [ebp - 0x40]
cmp ecx, 0xf
jbe 0x10007445
mov edx, dword [ebp - 0x54]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1000743b
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10007640
push ecx
push edx
call fcn.100240fa
add esp, 8
mov ecx, esi
call fcn.10008d80
push 0x58
push esi
call fcn.100240fa
push 1
push dword [ebp - 0x34]
call fcn.100240fa
add esp, 0x10
mov ecx, edi
call fcn.10008d80
push 0x58
push edi
call fcn.100240fa
mov edi, dword [ebp - 0x3c]
or esi, 0xffffffff
add esp, 8
mov eax, esi
lock xadd dword [edi + 4], eax
jne 0x10007619
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
lock xadd dword [edi + 8], esi
dec esi
jne 0x10007619
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 8
call fcn.1002ade6
call fcn.1002ade6
call fcn.1002ade6
call fcn.1002ade6
call fcn.1002ade6
int3