Function at 0x10068360
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1008d97c
mov eax, dword fs:[0]
push eax
sub esp, 0xe94
mov eax, dword [0x100b400c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0xe9c], ecx
mov eax, dword [ebp + 0x14]
mov edi, dword [ebp + 0x10]
mov ebx, dword [ebp + 0xc]
push 0x40
mov dword [ebp - 0xea0], eax
lea eax, [ebp - 0xe94]
push 0
push eax
mov dword [ebp - 0xe98], edi
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea ecx, [ebp - 0xe94]
push 1
call fcn.100012c0
push 0xa
mov dword [ebp - 4], 0
lea ecx, [ebp - 0xe74]
push str.ffmpeg.exe
mov dword [ebp - method.CCmdOpts.virtual_0], vtable.CCmdFFmpegOpts.0
call fcn.10003db0
push 0xa
mov dword [ebp - 4], 1
lea ecx, [ebp - 0xe74]
push str.ffmpeg.exe
mov dword [ebp - method.CCmdOpts.virtual_0], vtable.CFFmpegOpts.0
mov byte [ebp - 0xe84], 0
call fcn.10003db0
push 0x100
lea eax, [ebp - 0x218]
mov dword [ebp - 4], 2
push eax
push 0x100
lea eax, [ebp - 0x418]
push eax
push 0x100
lea eax, [ebp - 0x820]
push eax
push 3
lea eax, [ebp - 0x18]
push eax
push edi
call dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__wsplitpath_s]
lea eax, [ebp - 0x820]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0xc30]
push 0x100919bc
push eax
call fcn.100077f0
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x418]
push eax
lea eax, [ebp - 0x620]
push 0x100919bc
push eax
call fcn.100077f0
add esp, 0x44
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x418]
push eax
lea eax, [ebp - 0x820]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0xa28]
push str._s_s_s_temp_s
push eax
call fcn.100077f0
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x418]
push eax
push str._s_temp_s
lea eax, [ebp - 0xe38]
push eax
call fcn.100077f0
lea ecx, [ebp - 0xa28]
add esp, 0x28
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100684e1
sub ecx, edx
lea eax, [ebp - 0xa28]
sar ecx, 1
push ecx
push eax
lea ecx, [ebx + 0x318]
call fcn.100052a0
lea eax, [ebp - 0xc30]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
xor eax, eax
mov dword [ebp - 0xe54], 0
mov dword [ebp - 0xe44], 0
mov dword [ebp - 0xe40], 7
mov word [ebp - 0xe54], ax
lea ecx, [ebp - 0x620]
mov byte [ebp - 4], 3
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10068544
sub ecx, edx
lea eax, [ebp - 0x620]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0xe54]
call fcn.10016cc0
mov esi, dword [ebx + 0x1a8]
cmp esi, dword [ebx + 0x1ac]
je 0x1006864d
nop dword [eax + eax]
push 0
push 0x100b54cc
push 0x100b5590
push 0
push dword [esi]
call sub.VCRUNTIME140.dll___RTDynamicCast
add esp, 0x14
lea ecx, [ebp - 0xe54]
mov edi, eax
push 1
push 0x100a576c
call fcn.10016cc0
add edi, 0x2d0
cmp dword [edi + 0x14], 8
jb 0x100685ba
mov edi, dword [edi]
push 0x100
lea eax, [ebp - 0x218]
push eax
push 0x100
lea eax, [ebp - 0x418]
push eax
push 0x100
lea eax, [ebp - 0x820]
push eax
push 3
lea eax, [ebp - 0x18]
push eax
push edi
call dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__wsplitpath_s]
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x418]
push eax
lea eax, [ebp - 0x620]
push 0x100919bc
push eax
call fcn.100077f0
lea eax, [ebp - 0x620]
add esp, 0x34
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10068616
sub eax, edx
lea ecx, [ebp - 0xe54]
sar eax, 1
push eax
lea eax, [ebp - 0x620]
push eax
call fcn.10016cc0
add esi, 4
cmp esi, dword [ebx + 0x1ac]
jne 0x10068580
mov edi, dword [ebp - 0xe98]
cmp dword [ebp - 0xe40], 8
lea eax, [ebp - 0xe54]
cmovae eax, dword [ebp - 0xe54]
push eax
push 0x100a5770
lea eax, [ebp - 0xe94]
push 0x10095d74
push eax
call fcn.10001fb0
push 0x10095f04
lea eax, [ebp - 0xe94]
push 0x10095f08
push eax
call fcn.10001fb0
mov eax, dword [ebp - 0xe9c]
add esp, 0x1c
mov eax, dword [eax + 0x74]
cmp eax, 0xf
jne 0x100686ad
push 0
push 0x10091b60
push str._target_ntsc_dvd
jmp 0x100686be
cmp eax, 0x10
jne 0x100686c9
push 0
push 0x10091b60
push str._target_pal_dvd
lea ecx, [ebp - 0xe94]
call fcn.10001d90
lea edx, [ebp - 0xe38]
mov dword [ebp - 0xe3c], 0
lea ecx, [ebp - 0xe3c]
call fcn.10001c70
push 0
push 0x10091b60
mov byte [ebp - 4], 4
lea ecx, [ebp - 0xe94]
push dword [ebp - 0xe3c]
call fcn.10001d90
cmp dword [ebx + 0x1d0], 8
lea eax, [ebx + 0x1bc]
jb 0x10068711
mov eax, dword [eax]
mov ecx, dword [ebp - 0xea0]
push 0xffffffffffffffff
push edi
push 0
push 0
push eax
push 0xc
lea eax, [ebp - 0xe94]
push eax
call fcn.100177c0
mov byte [ebp - 4], 3
or eax, 0xffffffff
mov edx, dword [ebp - 0xe3c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1006874f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0xe40]
cmp edx, 8
jb 0x10068791
mov ecx, dword [ebp - 0xe54]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x10068787
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10068787
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
xor eax, eax
mov dword [ebp - 0xe44], 0
lea ecx, [ebp - 0xe94]
mov dword [ebp - 0xe40], 7
mov word [ebp - 0xe54], ax
call fcn.10001590
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1007fac0
mov esp, ebp
pop ebp
ret 0x10