Function at 0x42181d
Capabilities:
Read file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x1090]
mov eax, 0x1090
call fcn.0049a330
push 0xffffffffffffffff
push 0x4bc554
mov eax, dword fs:[0]
push eax
sub esp, 0xa8
mov eax, dword [0x4ec6a0]
xor eax, ebp
mov dword [ebp + 0x108c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
xor esi, esi
mov ebx, ecx
push 0x94800
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x5c], esi
mov dword [ebp - 0x64], esi
mov dword [ebp - 0x6c], 0x94800
call fcn.004732d6
push 0x2c
mov dword [ebp - 0x40], eax
lea eax, [ebp - 0xb4]
push esi
push eax
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x20], esi
call fcn.00499500
push 0x2048
call fcn.004732ab
mov edi, eax
add esp, 0x14
xor eax, eax
cmp dword [ebx + 0x58], esi
mov dword [ebp - 0x14], edi
jle 0x421559
xor edx, edx
lea ebx, [ebx]
test edx, edx
jl 0x4215cf
cmp eax, dword [ebx + 0x58]
jge 0x4215cf
mov esi, dword [ebx + 0x54]
add esi, edx
mov ecx, 0x23
lea edi, [ebp]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebx + 0x108]
mov esi, dword [ebp + 0xc]
cmp ecx, esi
jle 0x4215b8
mov edi, dword [ebp + 0x10]
add edi, esi
cmp ecx, edi
jl 0x4215c3
add eax, 1
add edx, 0x8c
cmp eax, dword [ebx + 0x58]
jl 0x421510
mov edi, dword [ebp - 0x14]
xor esi, esi
mov eax, dword [ebx + 0x58]
add eax, 0xffffffff
cmp eax, esi
jl 0x421600
mov edx, eax
imul edx, edx, 0x8c
test eax, eax
jl 0x4215cf
cmp eax, dword [ebx + 0x58]
jge 0x4215cf
mov esi, dword [ebx + 0x54]
add esi, edx
mov ecx, 0x23
lea edi, [ebp]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp + 0x10]
mov edi, dword [ebp + 0xc]
lea esi, [ecx + edi]
mov ecx, dword [ebx + 0x10c]
cmp ecx, esi
jg 0x4215d4
cmp ecx, edi
jle 0x4215a2
cmp ecx, esi
jl 0x4215e4
sub eax, 1
sub edx, 0x8c
test eax, eax
mov dword [ebp - 0x44], 0xffffffff
jge 0x421573
jmp 0x4215fb
mov dword [ebx + 0x108], esi
mov dword [ebp - 0x58], eax
jmp 0x421554
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x5c], 0
jmp 0x421554
jmp fcn.00475a3b
mov edx, dword [ebp + 0x10]
add edx, edi
mov dword [ebx + 0x10c], edx
mov dword [ebp - 0x44], eax
jmp 0x4215fb
cmp dword [ebp - 0x58], eax
mov dword [ebp - 0x44], eax
mov eax, ecx
jne 0x4215f6
sub eax, dword [ebx + 0x108]
jmp 0x4215f8
sub eax, edi
mov dword [ebp - 0x64], eax
mov edi, dword [ebp - 0x14]
xor esi, esi
mov eax, dword [ebp - 0x58]
cmp eax, dword [ebp - 0x44]
jg 0x421f79
mov dword [ebp - 4], esi
mov dword [ebp - 0x30], eax
cmp eax, dword [ebp - 0x44]
jg 0x421e5b
cmp eax, esi
mov dword [ebp - 0x60], esi
jl 0x4215cf
cmp eax, dword [ebx + 0x44]
jge 0x4215cf
mov eax, dword [ebp - 0x30]
mov ebx, dword [ebx + 0x40]
imul eax, eax, 0x8c
add ebx, eax
add ebx, 0x28
push ebx
lea ecx, [ebp - 0x50]
mov dword [ebp - 0x4c], eax
call fcn.0040d650
mov byte [ebp - 4], 1
mov ebx, dword [ebp - 0x50]
mov ecx, dword [ebx - 8]
mov eax, 1
sub eax, dword [ebx - 4]
or ecx, eax
jge 0x421666
push esi
lea ecx, [ebp - 0x50]
call fcn.00404da0
mov ebx, dword [ebp - 0x50]
push 0x2048
push esi
push edi
mov dword [ebp - 0x3c], esi
call fcn.00499500
add esp, 0xc
push esi
push 0x80
push 3
push esi
push 3
push SysReAllocString
push ebx
mov dword [edi], 0xffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [edi], eax
je 0x4216c1
push esi
lea ecx, [ebp - 0x3c]
push ecx
push 0x2030
lea edx, [edi + 8]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [ebp - 0x3c], 0x2030
jne 0x4216c1
mov dword [edi + 4], 0xffffffff
mov eax, dword [ebp - 0x58]
cmp dword [ebp - 0x30], eax
mov eax, dword [edi + 0x18]
jne 0x4216d8
mov edx, dword [edi + 0x14]
mov dword [ebp - 0x24], edx
cdq
idiv dword [edi + 0x1c]
jmp 0x4216fa
cdq
idiv dword [edi + 0x1c]
cmp dword [ebp - 0x54], eax
jne 0x4216f1
mov ecx, dword [ebp - 0x28]
cmp ecx, dword [edi + 0x10]
jne 0x4216f1
mov edx, dword [ebp - 0x24]
cmp edx, dword [edi + 0x14]
je 0x421703
mov edx, dword [edi + 0x14]
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x18], esi
mov ecx, dword [edi + 0x10]
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x28], ecx
mov eax, dword [ebp - 0x54]
imul eax, dword [ebp - 0x64]
cmp dword [ebp - 0x28], 0x160
mov dword [ebp - 0x68], eax
jle 0x42189c
cmp dword [ebp - 0x24], 0x120
jg 0x42189c
mov ebx, dword [ebp - 0x20]
cmp ebx, esi
je 0x421797
mov edi, dword [ebx + 4]
cmp edi, esi
mov dword [ebx], vtable.CVideoEncoder.0
je 0x42178b
mov eax, dword [edi + 0x90]
mov eax, dword [eax + 0x18]
cmp eax, esi
je 0x42174e
push edi
call eax
add esp, 4
push edi
call fcn.0042cba0
mov eax, dword [edi + 0x94]
add esp, 4
cmp eax, esi
je 0x421770
movzx ecx, byte [eax - 1]
sub eax, ecx
push eax
call fcn.004912ef
add esp, 4
mov dword [edi + 0x94], esi
mov dword [edi + 0x90], esi
mov edx, dword [ebx + 4]
push edx
call fcn.004912ef
add esp, 4
mov dword [ebx + 4], esi
push ebx
call fcn.004732db
add esp, 4
mov dword [ebp - 0x20], esi
push 8
call fcn.004732ab
mov edi, eax
add esp, 4
mov dword [ebp - 0x1c], edi
cmp edi, esi
mov byte [ebp - 4], 2
je 0x4217c5
mov eax, dword [ebp - 0x24]
mov ebx, dword [ebp - 0x28]
push 0xd
add eax, eax
call fcn.0042bc90
mov dword [edi], vtable.CMpeg4Encoder.0
jmp 0x4217c7
xor edi, edi
mov ebx, dword [ebp - 0x2c]
xor esi, esi
cmp ebx, esi
mov byte [ebp - 4], 1
mov dword [ebp - 0x20], edi
je 0x42182d
mov dword [ebx], vtable.CVideoDecoder.0
mov eax, dword [ebx + 0x98]
mov eax, dword [eax + 0x18]
cmp eax, esi
lea edi, [ebx + 8]
je 0x4217f3
push edi
call eax
add esp, 4
push edi
call fcn.0042cba0
mov eax, dword [edi + 0x94]
add esp, 4
cmp eax, esi
je 0x421815
movzx ecx, byte [eax - 1]
sub eax, ecx
push eax
call fcn.004912ef
add esp, 4
mov dword [edi + 0x94], esi
push ebx
mov dword [edi + 0x90], esi
mov bh, 0x90
add byte [eax], al
add al, ch
mov ah, 0x1a
add eax, 0x4c48300
mov dword [ebp - 0x2c], esi
push 0x448
call fcn.004732ab
mov edi, eax
add esp, 4
mov dword [ebp - 0x1c], edi
cmp edi, esi
mov byte [ebp - 4], 3
je 0x42185c
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x28]
push edx
push eax
call fcn.0042b960
mov dword [edi], vtable.CMpeg4Decoder.0
jmp 0x42185e
xor edi, edi
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0xb4]
cmp eax, esi
mov dword [ebp - 0x2c], edi
je 0x42187e
movzx ecx, byte [eax - 1]
sub eax, ecx
push eax
call fcn.004912ef
add esp, 4
mov edx, dword [ebp - 0x28]
mov ebx, dword [ebp - 0x24]
push edx
add ebx, ebx
push 1
lea edi, [ebp - 0xb4]
call fcn.0042b7a0
add esp, 8
jmp 0x421941
mov ebx, dword [ebp - 0x20]
cmp ebx, esi
je 0x42190c
mov edi, dword [ebx + 4]
cmp edi, esi
mov dword [ebx], vtable.CVideoEncoder.0
je 0x421900
mov eax, dword [edi + 0x90]
mov eax, dword [eax + 0x18]
cmp eax, esi
je 0x4218c3
push edi
call eax
add esp, 4
push edi
call fcn.0042cba0
mov eax, dword [edi + 0x94]
add esp, 4
cmp eax, esi
je 0x4218e5
movzx ecx, byte [eax - 1]
sub eax, ecx
push eax
call fcn.004912ef
add esp, 4
mov dword [edi + 0x94], esi
mov dword [edi + 0x90], esi
mov edx, dword [ebx + 4]
push edx
call fcn.004912ef
add esp, 4
mov dword [ebx + 4], esi
push ebx
call fcn.004732db
add esp, 4
mov dword [ebp - 0x20], esi
push 8
call fcn.004732ab
mov edi, eax
add esp, 4
mov dword [ebp - 0x1c], edi
cmp edi, esi
mov byte [ebp - 4], 4
je 0x421938
mov eax, dword [ebp - 0x24]
mov ebx, dword [ebp - 0x28]
push 0xd
call fcn.0042bc90
mov dword [edi], vtable.CMpeg4Encoder.0
jmp 0x42193a
xor edi, edi
mov byte [ebp - 4], 1
mov dword [ebp - 0x20], edi
cmp dword [ebp - 0x5c], 0
mov ecx, dword [ebp - 0x38]
jne 0x42197f
mov eax, dword [ebp - 0x30]
cmp eax, dword [ecx + 0x58]
jge 0x4215cf
mov eax, dword [ecx + 0x54]
add eax, dword [ebp - 0x4c]
mov edi, dword [ecx + 0x108]
sub edi, dword [eax + 0xc]
mov edx, dword [ebp - 0x14]
imul edi, edi, 0x3e8
push 0
call fcn.0042bbd0
add esp, 4
mov dword [ebp - 0x5c], 1
mov ecx, dword [ebp - 0x30]
cmp ecx, dword [ebp - 0x44]
mov eax, dword [ebp - 0x68]
jne 0x421993
cmp dword [ebp - 0x60], eax
jb 0x421993
test eax, eax
jne 0x4219ab
mov esi, dword [ebp - 0x14]
mov edi, dword [ebp - 0x40]
call fcn.0042ba90
test eax, eax
mov edx, dword [esi + 0x203a]
mov dword [ebp - 0x4c], edx
jne 0x4219e2
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x50]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4219ce
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
add dword [ebp - 0x30], 1
mov edi, dword [ebp - 0x14]
mov ebx, dword [ebp - 0x38]
mov eax, dword [ebp - 0x30]
xor esi, esi
jmp 0x421612
cmp dword [ebp - 0x18], 0
jne 0x421d94
mov esi, dword [ebp - 0x34]
test esi, esi
je 0x421a13
mov edx, dword [esi]
mov eax, dword [edx + 8]
mov ecx, esi
call eax
mov eax, esi
call fcn.0042c0d0
push esi
call fcn.004732db
add esp, 4
mov dword [ebp - 0x34], 0
call fcn.00474091
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x421a2d
push 0x80004005
call fcn.00404150
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea ebx, [eax + 0x10]
mov dword [ebp - 0x18], ebx
lea esi, [ebp - 0x84]
mov byte [ebp - 4], 5
call fcn.004050f0
mov ecx, dword [ebp - 0x38]
mov eax, dword [ecx + 0x104]
lea esi, [eax - 0x10]
add ebx, 0xfffffff0
cmp esi, ebx
je 0x421af4
cmp dword [ebx + 0xc], 0
jl 0x421ae7
mov ecx, dword [esi]
cmp ecx, dword [ebx]
jne 0x421ae7
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
call eax
cmp dword [esi + 0xc], 0
lea ecx, [esi + 0xc]
jl 0x421a8f
cmp eax, dword [esi]
jne 0x421a8f
mov edi, esi
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x421ac6
mov ecx, dword [esi + 4]
mov edx, dword [eax]
mov edx, dword [edx]
push 1
push ecx
mov ecx, eax
call edx
mov edi, eax
test edi, edi
jne 0x421aa8
jmp fcn.00404d90
mov eax, dword [esi + 4]
mov dword [edi + 4], eax
mov eax, dword [esi + 4]
add eax, 1
push eax
add esi, 0x10
push esi
push eax
lea ecx, [edi + 0x10]
push ecx
call fcn.00491d32
add esp, 0x10
lea eax, [ebx + 0xc]
or edx, 0xffffffff
lock xadd dword [eax], edx
dec edx
test edx, edx
jg 0x421adf
mov ecx, dword [ebx]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push ebx
call edx
add edi, 0x10
mov dword [ebp - 0x18], edi
jmp 0x421af4
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [ebp - 0x18]
call fcn.00404d00
mov esi, dword [ebp - 0x18]
push ecx
mov ecx, dword [esi - 0x10]
mov eax, dword [ecx]
mov edx, dword [eax + 0x10]
add esi, 0xfffffff0
lea ebx, [ebp + 0x8c]
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x48], esp
mov dword [ebp - 0x70], esi
call edx
cmp dword [esi + 0xc], 0
lea ecx, [esi + 0xc]
jl 0x421b2e
cmp eax, dword [esi]
jne 0x421b2e
mov edi, esi
mov eax, 1
lock xadd dword [ecx], eax
jmp 0x421b65
mov ecx, dword [esi + 4]
mov edx, dword [eax]
mov edx, dword [edx]
push 1
push ecx
mov ecx, eax
call edx
mov edi, eax
test edi, edi
jne 0x421b47
jmp fcn.00404d90
mov eax, dword [esi + 4]
mov dword [edi + 4], eax
mov eax, dword [esi + 4]
add eax, 1
push eax
add esi, 0x10
push esi
push eax
lea ecx, [edi + 0x10]
push ecx
call fcn.00491d32
add esp, 0x10
mov edx, dword [ebp - 0x48]
add edi, 0x10
mov dword [edx], edi
call fcn.0041ffe0
add esp, 4
lea eax, [ebp + 0x8c]
push eax
call dword [sym.imp.dbghelp.dll_MakeSureDirectoryPathExists]
lea ecx, [ebp - 0x84]
push ecx
mov esi, str.__y__m__d__H__M__S.avi
lea edi, [ebp - 0x74]
call fcn.00405160
mov edi, eax
mov eax, dword [ebp - 0x38]
lea esi, [ebp - 0x78]
mov byte [ebp - 4], 6
call fcn.00424e50
push edi
push eax
lea edx, [ebp - 0x7c]
push edx
mov byte [ebp - 4], 7
call fcn.0040d780
add esp, 0xc
mov byte [ebp - 4], 8
mov eax, dword [eax]
mov ecx, dword [eax - 0xc]
mov edi, dword [ebp - 0x18]
mov esi, dword [edi - 0xc]
mov ebx, eax
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x70]
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x48], esi
add esi, ecx
mov ecx, 1
sub ecx, dword [eax + 0xc]
mov eax, dword [eax + 8]
sub eax, esi
sub ebx, edi
fisttp word [ebx]
invalid
jge 0x421bf7
push esi
lea ecx, [ebp - 0x18]
call fcn.00404da0
mov edi, dword [ebp - 0x18]
cmp ebx, dword [ebp - 0x48]
ja 0x421c01
add ebx, edi
mov dword [ebp - 0x3c], ebx
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x3c]
mov edx, dword [ebp - 0x48]
push eax
push ecx
push eax
add edx, edi
push edx
call fcn.00491d32
add esp, 0x10
test esi, esi
jl 0x421e40
cmp esi, dword [edi - 8]
jg 0x421e40
mov dword [edi - 0xc], esi
mov byte [esi + edi], 0
mov byte [ebp - 4], 7
mov eax, dword [ebp - 0x7c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x421c53
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0x78]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x421c76
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov bl, 5
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x74]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x421c9a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0x18
call fcn.004732ab
mov esi, eax
add esp, 4
mov dword [ebp - 0x1c], esi
xor eax, eax
cmp esi, eax
mov byte [ebp - 4], 9
je 0x421cd9
mov dword [esi], vtable.CMuxer.0
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], 0x19
mov dword [esi + 0x14], 1
call fcn.00445210
xor eax, eax
jmp 0x421cdb
xor esi, esi
mov ecx, dword [ebp - 0x54]
mov edx, dword [ebp - 0x20]
mov byte [ebp - 4], bl
push eax
mov dword [esi + 0x10], ecx
mov dword [esi + 0x14], 1
mov eax, dword [edx + 4]
push eax
push ecx
mov ecx, dword [edi - 0x10]
mov eax, dword [ecx]
mov edx, dword [eax + 0x10]
add edi, 0xfffffff0
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x1c], esp
call edx
cmp dword [edi + 0xc], 0
lea ecx, [edi + 0xc]
jl 0x421d24
cmp eax, dword [edi]
jne 0x421d24
mov ebx, edi
mov eax, 1
lock xadd dword [ecx], eax
jmp 0x421d5b
mov ecx, dword [edi + 4]
mov edx, dword [eax]
mov edx, dword [edx]
push 1
push ecx
mov ecx, eax
call edx
mov ebx, eax
test ebx, ebx
jne 0x421d3d
jmp fcn.00404d90
mov eax, dword [edi + 4]
mov dword [ebx + 4], eax
mov eax, dword [edi + 4]
add eax, 1
push eax
lea ecx, [edi + 0x10]
push ecx
push eax
lea edx, [ebx + 0x10]
push edx
call fcn.00491d32
add esp, 0x10
mov eax, dword [ebp - 0x1c]
add ebx, 0x10
mov dword [eax], ebx
call fcn.0042bf50
mov edx, dword [esi]
mov eax, dword [edx]
mov ecx, esi
call eax
mov dword [ebp - 0x18], 1
mov byte [ebp - 4], 1
lea ecx, [edi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x421d94
mov ecx, dword [edi]
mov eax, dword [ecx]
mov edx, dword [eax + 4]
push edi
call edx
mov esi, dword [ebp - 0x28]
cmp esi, 0x160
jle 0x421e25
mov edi, dword [ebp - 0x24]
cmp edi, 0x120
jg 0x421e25
mov ecx, dword [ebp - 0x2c]
mov eax, dword [ecx]
mov edx, dword [ebp - 0x40]
mov eax, dword [eax]
push edx
call eax
mov ecx, dword [ebp - 0xb4]
mov ebx, eax
push edi
push ecx
mov ecx, dword [ebx]
call fcn.00441d70
mov ecx, dword [ebx + 4]
mov eax, edi
cdq
sub eax, edx
mov edi, eax
mov eax, esi
cdq
sub eax, edx
mov edx, dword [ebp - 0xb0]
add esp, 8
sar edi, 1
mov esi, eax
push edi
sar esi, 1
push edx
call fcn.00441d70
mov eax, dword [ebp - 0xac]
mov ecx, dword [ebx + 8]
add esp, 8
push edi
push eax
call fcn.00441d70
mov eax, dword [ebp - 0x6c]
mov ecx, dword [ebp - 0x20]
mov edx, dword [ecx]
mov edx, dword [edx + 4]
add esp, 8
push 0
push eax
mov eax, dword [ebp - 0x40]
push eax
lea eax, [ebp - 0xb4]
push eax
call edx
mov dword [ebp - 0x4c], eax
mov edx, dword [ebp - 0x4c]
mov ecx, dword [ebp - 0x34]
mov eax, dword [ecx]
mov eax, dword [eax + 4]
push edx
mov edx, dword [ebp - 0x40]
push edx
call eax
add dword [ebp - 0x60], 1
jmp 0x42197f
push 0x80070057
call fcn.00404150
mov ecx, dword [ebp - 0x88]
call fcn.00475947
mov eax, 0x421e62
ret
mov dword [ebp - 4], 0xffffffff
mov esi, dword [ebp - 0x34]
mov edi, dword [ebp - 0x2c]
xor ebx, ebx