Function at 0x424000
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5dc6a6
mov eax, dword fs:[0]
push eax
sub esp, 0x3d0
mov eax, dword [0x66c0e0]
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 esi, dword [ebp + 8]
mov eax, dword [esi + 4]
mov edi, dword [ebp + 0xc]
xor ebx, ebx
mov dword [ebp - 0x360], edi
mov dword [ebp - 0x358], ebx
cmp dword [eax - 0xc], ebx
je 0x424469
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x424469
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameA]
cmp eax, ebx
je 0x424469
push 0x5fa418
push eax
call fcn.005bdf70
add esp, 8
test eax, eax
jne 0x424469
push ebx
call fcn.00484bc0
add esp, 4
test eax, eax
jle 0x424469
lea ecx, [ebp - 0x354]
call fcn.00406050
lea ecx, [ebp - 0x3dc]
mov dword [ebp - 4], ebx
call fcn.00422e60
mov eax, dword [esi + 4]
lea ecx, [ebp - 0x210]
push ecx
lea edx, [ebp - 0x110]
push edx
lea ecx, [ebp - 0x310]
push ecx
lea edx, [ebp - 0x37c]
push edx
push eax
mov byte [ebp - 4], 1
call fcn.005bd9ac
mov eax, dword [esi + 4]
lea ecx, [ebp - 0x384]
push ecx
lea edx, [ebp - 0x378]
push edx
push eax
call fcn.0041aea0
mov eax, dword [esi + 4]
lea ecx, [ebp - 0x330]
push ecx
push eax
call fcn.00484b00
add esp, 0x28
test eax, eax
js 0x424442
mov ecx, dword [ebp - 0x320]
mov edx, dword [ebp - 0x330]
mov eax, dword [ebp - 0x32c]
mov dword [esi + 0x1c], ecx
mov ecx, dword [ebp - 0x314]
mov dword [esi + 8], edx
mov edx, dword [ebp - 0x31c]
mov dword [esi + 0xc], eax
mov dword [esi + 0x20], edx
cmp ecx, ebx
jle 0x424149
mov eax, dword [ebp - 0x318]
cdq
idiv ecx
mov dword [ebp - 0x35c], eax
jmp 0x42414f
mov dword [ebp - 0x35c], ebx
mov eax, dword [esi + 4]
lea ecx, [ebp - 0x3dc]
push ecx
push eax
push ebx
mov ecx, edi
mov dword [ebp - 0x364], ebx
mov dword [ebp - 0x368], ebx
mov dword [ebp - 0x36c], ebx
mov dword [ebp - 0x370], ebx
call fcn.00423f20
mov edi, eax
cmp edi, ebx
jl 0x4242fb
mov edx, dword [ebp - 0x378]
cmp edx, dword [ebp - 0x3d4]
jne 0x4242d7
mov eax, dword [ebp - 0x374]
cmp eax, dword [ebp - 0x3d0]
jne 0x4242d7
lea ecx, [ebp - 0x370]
call fcn.00422940
test eax, eax
jne 0x4241f8
mov eax, 8
xor ecx, ecx
mov edi, edi
mov edx, dword [ebp + ecx - 0x384]
cmp edx, dword [ebp + ecx - 0x3cc]
jne 0x4241dd
sub eax, 4
add ecx, 4
cmp eax, 4
jae 0x4241c0
jmp 0x424216
mov eax, dword [esi + 4]
push eax
lea eax, [ebp - 0x370]
push eax
call fcn.00421420
add esp, 8
test eax, eax
je 0x4242d7
lea ecx, [ebp - 0x3c4]
push ecx
lea edx, [ebp - 0x370]
push edx
call fcn.004212c0
add esp, 8
test al, al
je 0x4242d7
mov eax, dword [ebp - 0x3b4]
cmp eax, dword [esi + 0x18]
jne 0x4242d7
mov ebx, dword [ebp - 0x3b0]
mov ecx, dword [esi + 0x2c]
push ebx
push ecx
lea edx, [ebp - 0x354]
push str._s_s
push edx
call fcn.004065c0
mov eax, dword [ebp - 0x354]
add esp, 0x10
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x4242cb
mov edx, dword [ebp - 0x354]
lea ecx, [ebp - 0x350]
push ecx
push edx
call fcn.00484b00
add esp, 8
test eax, eax
js 0x4242cb
mov eax, dword [ebp - 0x350]
cmp eax, dword [esi + 0x10]
jne 0x4242d7
mov ecx, dword [ebp - 0x34c]
cmp ecx, dword [esi + 0x14]
jne 0x4242d7
lea eax, [ebp - 0x354]
lea ecx, [esi + 0x30]
push eax
call fcn.00406510
mov ecx, dword [ebp - 0x350]
mov edx, dword [ebp - 0x34c]
mov eax, dword [ebp - 0x338]
mov dword [esi + 0x34], ecx
mov ecx, dword [ebp - 0x334]
mov dword [esi + 0x38], edx
mov dword [esi + 0x24], eax
mov dword [esi + 0x28], ecx
mov dword [ebp - 0x358], 2
jmp 0x424442
mov ecx, dword [ebp - 0x360]
push ebx
call fcn.00423550
mov eax, dword [esi + 4]
mov ecx, dword [ebp - 0x360]
lea edx, [ebp - 0x3dc]
push edx
push eax
inc edi
push edi
call fcn.00423f20
mov edi, eax
xor ebx, ebx
cmp edi, ebx
jge 0x424184
cmp dword [ebp - 0x35c], 0x18
jg 0x4243be
mov ecx, dword [esi + 0x10]
lea ecx, [ecx + ecx*2]
add ecx, ecx
add ecx, ecx
mov eax, 0x66666667
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp dword [esi + 8], eax
jle 0x424442
mov edi, dword [esi + 0x14]
mov ebx, dword [esi + 0xc]
lea ecx, [edi + edi*2]
add ecx, ecx
add ecx, ecx
mov eax, 0x66666667
imul ecx
sar edx, 2
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
cmp ebx, ecx
jle 0x424442
mov eax, dword [esi + 8]
cmp eax, 0xf0
jle 0x424442
cmp ebx, 0xa0
jle 0x424442
cmp eax, 0x140
jle 0x424390
cmp ebx, 0xf0
jle 0x424390
cmp dword [ebp - 0x320], 0x140000
jle 0x4243be
mov dword [esi + 0x1c], 0x100000
jmp 0x4243be
cmp dword [ebp - 0x320], 0x1c0000
jle 0x4243a5
mov dword [esi + 0x1c], 0x180000
jmp 0x4243be
cdq
sub eax, edx
sar eax, 1
cmp eax, dword [esi + 0x10]
jg 0x4243be
mov eax, ebx
cdq
sub eax, edx
sar eax, 1
cmp eax, edi
jl 0x424442
mov ebx, 1
mov edi, ebx
mov eax, dword [esi + 0x2c]
push edi
lea edx, [ebp - 0x110]
push edx
push eax
lea ecx, [ebp - 0x354]
push str._s_s__d.mp4
push ecx
call fcn.004065c0
mov edx, dword [ebp - 0x354]
add esp, 0x14
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x4243fe
add edi, ebx
test edi, edi
jg 0x4243c5
jmp 0x424442
lea eax, [ebp - 0x354]
lea ecx, [esi + 0x30]
push eax
call fcn.00406510
xor eax, eax
mov dword [esi + 0x34], eax
mov dword [esi + 0x38], eax
mov eax, 0x18
cmp dword [ebp - 0x35c], eax
jle 0x42442a
mov dword [esi + 0x24], eax
mov dword [esi + 0x28], ebx
jmp 0x42443c
mov ecx, dword [ebp - 0x318]
mov edx, dword [ebp - 0x314]
mov dword [esi + 0x24], ecx
mov dword [esi + 0x28], edx
mov dword [ebp - 0x358], ebx
call fcn.00484a70
lea ecx, [ebp - 0x3dc]
mov byte [ebp - 4], 0
call fcn.00422e10
lea ecx, [ebp - 0x354]
call fcn.004273a0
mov eax, dword [ebp - 0x358]
jmp 0x42446b
xor eax, eax
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.005bb30e
mov esp, ebp
pop ebp
ret