Function at 0x1006b010
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1008dcbb
mov eax, dword fs:[0]
push eax
sub esp, 0x264
mov eax, dword [0x100b400c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov dword [ebp - 0x268], eax
cmp dword [edi + 0x70], 0
jne 0x1006b05c
cmp dword [edi + 0xd8], 0
je 0x1006b6b1
mov eax, dword [0x100b64c8]
mov dword [ebp - 0x254], eax
test eax, eax
jne 0x1006b0ad
push 0x2f4
call fcn.1007faf4
mov esi, eax
mov dword [ebp - 0x270], esi
push 0x2f4
push 0
push esi
mov dword [ebp - 4], 0
call sub.VCRUNTIME140.dll_memset
add esp, 0x10
mov ecx, esi
call fcn.10076a20
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x254], eax
mov dword [0x100b64c8], eax
xor eax, eax
mov ecx, edi
mov dword [ebp - 0x250], eax
mov dword [ebp - 0x24c], eax
call fcn.100159b0
mov esi, eax
test esi, esi
je 0x1006b0e6
mov edx, dword [esi]
mov ecx, esi
mov edx, dword [edx + 0xc]
call edx
mov edx, dword [esi]
mov ecx, esi
mov dword [ebp - 0x250], eax
mov edx, dword [edx + 0x10]
call edx
mov dword [ebp - 0x24c], eax
xor eax, eax
mov dword [ebp - 0x25c], 0
push 0x208
push eax
mov dword [ebp - 0x264], eax
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x218]
push eax
mov dword [ebp - 0x258], 0
call sub.VCRUNTIME140.dll_memset
mov eax, dword [ebp - 0x254]
add esp, 0xc
sub eax, 0xffffff80
cmp dword [eax + 0x14], 8
jb 0x1006b12e
mov eax, dword [eax]
lea ecx, [ebp - 0x218]
push ecx
push 0
push str.wtmk
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
je 0x1006b6b1
lea ecx, [ebp - 0x218]
add ecx, 0xfffffffe
mov ax, word [ecx + 2]
lea ecx, [ecx + 2]
test ax, ax
jne 0x1006b154
mov eax, dword [str..png]
mov dword [ecx], eax
mov eax, dword [0x100a59dc]
mov dword [ecx + 4], eax
mov ax, word [0x100a59e0]
mov word [ecx + 8], ax
lea ecx, [ebp - 0x218]
call fcn.1007c4c0
cmp dword [edi + 0x70], 0
mov esi, eax
mov edx, dword [ebp - 0x250]
mov ecx, dword [ebp - 0x24c]
mov dword [ebp - 0x254], esi
mov dword [ebp - 0x26c], 0
je 0x1006b485
test edx, edx
jle 0x1006b485
test ecx, ecx
jle 0x1006b485
mov eax, dword [edi + 0x198]
test eax, eax
je 0x1006b485
movups xmm3, xmmword [edi + 0x78]
mov dword [ebp - 0x26c], eax
movups xmm2, xmmword [edi + 0x88]
movd eax, xmm3
movd xmm0, edx
cvtdq2pd xmm0, xmm0
movd xmm1, eax
cvtdq2pd xmm1, xmm1
mulsd xmm1, xmm0
movaps xmm0, xmm2
psrldq xmm0, 8
movd esi, xmm0
psrldq xmm2, 0xc
movd xmm0, esi
cvtdq2pd xmm0, xmm0
divsd xmm1, xmm0
movaps xmm0, xmm3
cvttsd2si eax, xmm1
psrldq xmm0, 4
mov dword [ebp - 0x25c], eax
movd eax, xmm0
movd xmm0, ecx
cvtdq2pd xmm0, xmm0
movd xmm1, eax
cvtdq2pd xmm1, xmm1
movd ecx, xmm2
mulsd xmm1, xmm0
movd xmm0, ecx
cvtdq2pd xmm0, xmm0
divsd xmm1, xmm0
movaps xmm0, xmm3
psrldq xmm3, 0xc
cvttsd2si eax, xmm1
psrldq xmm0, 8
mov dword [ebp - 0x258], eax
movd eax, xmm0
imul eax, edx
cdq
idiv esi
mov esi, eax
movd eax, xmm3
mov dword [ebp - 0x264], esi
imul eax, dword [ebp - 0x24c]
cdq
idiv ecx
cmp dword [edi + 0x190], 0
mov dword [ebp - 0x260], eax
jne 0x1006b354
lea eax, [edi + 0xbc]
push eax
lea ecx, [ebp - 0x230]
call fcn.10007640
lea ecx, [ebp - 0x230]
mov dword [ebp - 4], 1
call fcn.1007cc10
push dword [ebp - 0x258]
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
push dword [ebp - 0x25c]
cmovae eax, dword [ebp - 0x230]
push dword [ebp - 0x260]
mov edx, dword [ebp - 0x268]
push esi
push eax
push str.movie_s_scale_d:_d__in_overlay_d:_d
mov ecx, dword [edx]
push 0x100a36c8
push 1
push 0x10091a90
push edx
call dword [ecx + 0x24]
mov dword [ebp - 4], 0xffffffff
add esp, 0x28
mov edx, dword [ebp - 0x21c]
cmp edx, 8
jb 0x1006b349
mov ecx, dword [ebp - 0x230]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x1006b33f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1006b33f
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.1007face
add esp, 8
mov esi, dword [ebp - 0x254]
jmp 0x1006b479
mov esi, dword [ebp - 0x254]
test esi, esi
je 0x1006b479
mov ecx, dword [edi + 0x198]
mov edx, esi
push eax
mov eax, dword [ebp - 0x264]
push eax
push dword [ebp - 0x24c]
mov eax, dword [ebp - 0x250]
push eax
lea eax, [ebp - 0x258]
push eax
lea eax, [ebp - 0x25c]
push eax
call fcn.1007b620
add esp, 0x18
test eax, eax
jne 0x1006b479
lea ecx, [ebp - 0x218]
mov dword [ebp - 0x230], eax
mov dword [ebp - 0x220], eax
lea edx, [ecx + 2]
mov dword [ebp - 0x21c], 7
mov word [ebp - 0x230], ax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1006b3c3
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x230]
call fcn.100052a0
lea ecx, [ebp - 0x230]
mov dword [ebp - 4], 2
call fcn.1007cc10
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
mov edx, dword [ebp - 0x268]
cmovae eax, dword [ebp - 0x230]
push 0
push 0
mov ecx, dword [edx]
push eax
push str.movie_s__in_overlay_d:_d
push 0x100a36c8
push 1
push 0x10091a90
push edx
call dword [ecx + 0x24]
mov dword [ebp - 4], 0xffffffff
add esp, 0x20
mov edx, dword [ebp - 0x21c]
cmp edx, 8
jb 0x1006b479
mov ecx, dword [ebp - 0x230]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x1006b46f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1006b46f
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.1007face
add esp, 8
mov edx, dword [ebp - 0x250]
mov ecx, dword [ebp - 0x24c]
cmp dword [edi + 0xd8], 0
je 0x1006b6a4
test edx, edx
jle 0x1006b6a4
test ecx, ecx
jle 0x1006b6a4
mov eax, dword [edi + 0x19c]
mov dword [ebp - 0x270], eax
test eax, eax
je 0x1006b584
movups xmm3, xmmword [edi + 0xe0]
movups xmm2, xmmword [edi + 0xf0]
movd eax, xmm3
movd xmm0, edx
cvtdq2pd xmm0, xmm0
movd xmm1, eax
cvtdq2pd xmm1, xmm1
mulsd xmm1, xmm0
movaps xmm0, xmm2
psrldq xmm0, 8
movd esi, xmm0
psrldq xmm2, 0xc
movd xmm0, esi
cvtdq2pd xmm0, xmm0
divsd xmm1, xmm0
movaps xmm0, xmm3
cvttsd2si eax, xmm1
psrldq xmm0, 4
mov dword [ebp - 0x25c], eax
movd eax, xmm0
movd xmm0, ecx
cvtdq2pd xmm0, xmm0
movd xmm1, eax
cvtdq2pd xmm1, xmm1
movd ecx, xmm2
mulsd xmm1, xmm0
movd xmm0, ecx
cvtdq2pd xmm0, xmm0
divsd xmm1, xmm0
movaps xmm0, xmm3
psrldq xmm3, 0xc
cvttsd2si eax, xmm1
psrldq xmm0, 8
mov dword [ebp - 0x258], eax
movd eax, xmm0
imul eax, edx
cdq
idiv esi
mov esi, dword [ebp - 0x254]
mov edi, eax
movd eax, xmm3
imul eax, dword [ebp - 0x24c]
cdq
idiv ecx
mov edx, dword [ebp - 0x250]
mov ecx, dword [ebp - 0x24c]
mov dword [ebp - 0x260], eax
mov eax, dword [ebp - 0x270]
jmp 0x1006b59a
mov edi, dword [ebp - 0x26c]
mov eax, edi
test edi, edi
je 0x1006b6a4
mov edi, dword [ebp - 0x264]
test esi, esi
je 0x1006b6b1
push dword [ebp - 0x260]
push edi
push ecx
push edx
lea ecx, [ebp - 0x258]
mov edx, esi
push ecx
lea ecx, [ebp - 0x25c]
push ecx
mov ecx, eax
call fcn.1007b620
add esp, 0x18
test eax, eax
jne 0x1006b6a8
lea ecx, [ebp - 0x218]
mov dword [ebp - 0x248], eax
mov dword [ebp - 0x238], eax
lea edx, [ecx + 2]
mov dword [ebp - 0x234], 7
mov word [ebp - 0x248], ax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1006b5f3
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x248]
call fcn.100052a0
lea ecx, [ebp - 0x248]
mov dword [ebp - 4], 3
call fcn.1007cc10
cmp dword [ebp - 0x234], 8
lea eax, [ebp - 0x248]
mov edx, dword [ebp - 0x268]
cmovae eax, dword [ebp - 0x248]
push 0
push 0
mov ecx, dword [edx]
push eax
push str.movie_s__in_overlay_d:_d
push 0x100a36c8
push 1
push 0x10091a90
push edx
call dword [ecx + 0x24]
mov edx, dword [ebp - 0x234]
add esp, 0x20
cmp edx, 8
jb 0x1006b6a8
mov ecx, dword [ebp - 0x248]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x1006b698
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1006b698
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.1007face
add esp, 8
jmp 0x1006b6a8
test esi, esi
je 0x1006b6b1
push esi
call fcn.1008029f
add esp, 4
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.1007fac0
mov esp, ebp
pop ebp
ret 8