Function at 0x40152c
Capabilities:
Move file
Read file on windows
Write file on windows

Disassembly:
mov eax, 0x11ac
call fcn.004024e0
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov ecx, 0x31
xor eax, eax
lea edi, [esp + 0xf5]
mov byte [esp + 0xf4], 0
mov dword [esp + 0x14], esi
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x20]
mov dword [esp + 0x28], 0
push eax
call dword [sym.imp.MSVCRT.dll_time]
lea ecx, [esp + 0x24]
push ecx
call dword [sym.imp.MSVCRT.dll_localtime]
mov edx, dword [eax]
mov ecx, dword [eax + 4]
push edx
mov edx, dword [eax + 8]
push ecx
mov ecx, dword [eax + 0xc]
push edx
mov edx, dword [eax + 0x10]
mov eax, dword [eax + 0x14]
push ecx
add eax, 0x76c
push edx
push eax
lea ecx, [esp + 0x4c]
push 0x40430c
push ecx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x28
lea edx, [esp + 0x2c]
mov ecx, esi
push edx
call fcn.00401410
mov eax, dword [esp + 0x11c4]
mov ebp, dword [sym.imp.MSVCRT.dll_fgetc]
test eax, eax
je 0x4017d0
mov eax, dword [esp + 0x11c0]
push 0x404308
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
push 0
push 0x200000
push esi
call dword [sym.imp.MSVCRT.dll_fseek]
add esp, 0x14
lea edi, [esp + 0x1bc]
mov ebx, 0x400
push esi
call ebp
mov dword [edi], eax
add esp, 4
add edi, 4
dec ebx
jne 0x4015ef
mov eax, dword [esp + 0x1c0]
mov ebx, 0x4c
sub ebx, eax
and ebx, 0xff
add eax, ebx
cmp al, 0x4c
jne 0x4017c2
mov ecx, dword [esp + 0x1c4]
add ecx, ebx
cmp cl, 0x56
jne 0x4017c2
mov edx, dword [esp + 0x11c0]
lea eax, [esp + 0x2c]
push edx
push 0x4042f8
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
mov edi, dword [esp + 0x20]
add esp, 0xc
lea ecx, [esp + 0x2c]
push ecx
mov ecx, edi
call fcn.00401410
push 0x4042ec
mov ecx, edi
call fcn.00401410
push 0x4042d8
mov ecx, edi
call fcn.00401410
push 0
push 0x200000
push esi
call dword [sym.imp.MSVCRT.dll_fseek]
mov edi, dword [sym.imp.MSVCRT.dll_fputc]
push esi
push 0x46
call edi
add esp, 0x14
lea ebp, [esp + 0x1c0]
mov dword [esp + 0x10], 3
mov edx, dword [ebp]
push esi
add edx, ebx
and edx, 0xff
push edx
call edi
mov eax, dword [esp + 0x18]
add esp, 8
add ebp, 4
dec eax
mov dword [esp + 0x10], eax
jne 0x40169b
lea ebp, [esp + 0x1cc]
mov dword [esp + 0x10], 0x3fc
mov eax, dword [ebp]
push esi
add eax, ebx
and eax, 0xff
push eax
call edi
mov eax, dword [esp + 0x18]
add esp, 8
add ebp, 4
dec eax
mov dword [esp + 0x10], eax
jne 0x4016ca
mov ebx, dword [sym.imp.MSVCRT.dll_fseek]
push 0
push 0x20000a
push esi
call ebx
push esi
push 0x20
call edi
push 0
push 0
push esi
call ebx
push esi
push 0x46
call edi
push esi
push 0x4c
call edi
push esi
push 0x56
call edi
push esi
push 1
call edi
add esp, 0x40
push esi
push 5
call edi
push esi
push 0
call edi
push esi
push 0
call edi
push esi
push 0
call edi
push esi
push 9
call edi
push esi
push 0
call edi
push esi
push 0
call edi
push esi
push 0
call edi
add esp, 0x40
push esi
push 0
call edi
push esi
push 0xff
call edi
push esi
push 0x1f
call edi
push esi
push 0xff
call edi
push esi
push 0xf1
call edi
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
mov esi, dword [esp + 0x11ec]
lea ecx, [esp + 0x120]
push esi
push str._s.flv
push ecx
call dword [sym.imp.MSVCRT.dll_sprintf]
lea edx, [esp + 0x12c]
push edx
push esi
call dword [sym.imp.MSVCRT.dll_rename]
add esp, 0x40
test eax, eax
je 0x4017af
mov ecx, dword [esp + 0x14]
push 0x404298
call fcn.00401410
mov ecx, dword [esp + 0x14]
push 0x40428c
call fcn.00401410
jmp 0x401c89
mov ecx, dword [esp + 0x14]
push 0x404264
call fcn.00401410
mov edx, dword [esp + 0x11c0]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea ebx, [esp + 0xf4]
mov eax, ecx
mov esi, edi
mov edi, ebx
push 0x404260
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.MSVCRT.dll_fopen]
mov ecx, dword [esp + 0x11c8]
lea edx, [esp + 0x34]
push ecx
mov ebx, eax
push 0x4042f8
push edx
mov dword [esp + 0x24], ebx
call dword [sym.imp.MSVCRT.dll_sprintf]
mov ecx, dword [esp + 0x28]
add esp, 0x14
lea eax, [esp + 0x2c]
push eax
call fcn.00401410
xor esi, esi
push ebx
call ebp
add esp, 4
mov byte [esi + 0x40444c], al
inc esi
cmp esi, 0x200000
jle 0x40183a
mov eax, dword [esp + 0x1c]
lea esi, [esp + 0x1bc]
mov edi, 4
push ebx
mov dword [esi], eax
call ebp
add esp, 4
add esi, 4
dec edi
jne 0x40185f
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x1c0]
mov ebx, 0x52
mov ebp, dword [esp + 0x1c8]
sub ebx, eax
mov edi, dword [esp + 0x1c4]
and ebx, 0xff
lea ecx, [eax + ebx]
cmp cl, 0x52
jne 0x4018c9
lea edx, [edi + ebx]
cmp dl, 0x4d
jne 0x4018c9
lea ecx, [ebx + ebp]
cmp cl, 0x46
jne 0x4018c9
push ebx
lea edx, [esp + 0x30]
push 0x40423c
push edx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
mov esi, 1
jmp 0x401a31
mov ebx, 0x26
sub ebx, eax
and ebx, 0xff
lea ecx, [edi + ebx]
cmp cl, 0xb2
jne 0x401904
lea edx, [ebx + ebp]
cmp dl, 0x75
jne 0x401904
push ebx
lea eax, [esp + 0x30]
push 0x40421c
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
mov esi, 2
jmp 0x401a31
mov ebx, 0x4c
sub ebx, eax
and ebx, 0xff
lea ecx, [eax + ebx]
cmp cl, 0x4c
jne 0x40193f
lea edx, [edi + ebx]
cmp dl, 0x56
jne 0x40193f
push ebx
lea eax, [esp + 0x30]
push 0x4041fc
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
mov esi, 3
jmp 0x401a31
mov ebx, 0x49
sub ebx, eax
and ebx, 0xff
lea ecx, [eax + ebx]
cmp cl, 0x49
jne 0x401981
lea edx, [edi + ebx]
cmp dl, 0x46
jne 0x401981
lea ecx, [ebx + ebp]
cmp cl, dl
jne 0x401981
push ebx
lea edx, [esp + 0x30]
push 0x4041dc
push edx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
mov esi, 4
jmp 0x401a31
mov esi, eax
neg esi
and esi, 0xff
mov ebx, esi
lea ecx, [eax + ebx]
test cl, cl
jne 0x4019b6
lea edx, [edi + ebx]
test dl, dl
jne 0x4019b6
push ebx
lea eax, [esp + 0x30]
push 0x4041bc
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
mov esi, 5
jmp 0x401a31
mov ebx, esi
lea ecx, [eax + ebx]
test cl, cl
jne 0x4019ea
lea edx, [edi + ebx]
cmp dl, 1
jne 0x4019ea
lea ecx, [ebx + ebp]
cmp cl, 0xba
jne 0x4019ea
push ebx
lea edx, [esp + 0x30]
push 0x40419c
push edx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
mov esi, 6
jmp 0x401a31
mov ebx, 0x45
sub ebx, eax
and ebx, 0xff
add eax, ebx
cmp al, 0x45
jne 0x401cd3
lea eax, [edi + ebx]
cmp al, 0xdf
jne 0x401cd3
lea ecx, [ebx + ebp]
cmp cl, 0xa3
jne 0x401cd3
push ebx
lea edx, [esp + 0x30]
push 0x40417c
push edx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
mov esi, 7
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x2c]
push eax
mov dword [esp + 0x1c], esi
call fcn.00401410
cmp esi, 1
jne 0x401a56
lea edx, [esp + 0xf4]
mov edi, str..rmvb
jmp 0x401ac6
cmp esi, 2
jne 0x401a69
lea edx, [esp + 0xf4]
mov edi, str..wmv
jmp 0x401ac6
cmp esi, 3
jne 0x401a7c
lea edx, [esp + 0xf4]
mov edi, 0x404164
jmp 0x401ac6
cmp esi, 4
jne 0x401a8f
lea edx, [esp + 0xf4]
mov edi, str..avi
jmp 0x401ac6
cmp esi, 5
jne 0x401aa2
lea edx, [esp + 0xf4]
mov edi, str..mp4
jmp 0x401ac6
cmp esi, 6
jne 0x401ab5
lea edx, [esp + 0xf4]
mov edi, str..mpg
jmp 0x401ac6
cmp esi, 7
jne 0x401aeb
lea edx, [esp + 0xf4]
mov edi, str..mkv
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea eax, [esp + 0xf4]
push 0x404140
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
lea ecx, [esp + 0xfc]
lea edx, [esp + 0x34]
push ecx
push 0x404128
push edx
mov edi, eax
call dword [sym.imp.MSVCRT.dll_sprintf]
mov ecx, dword [esp + 0x28]
add esp, 0x14
lea eax, [esp + 0x2c]
push eax
call fcn.00401410
mov eax, dword [esp + 0x18]
mov ebp, dword [sym.imp.MSVCRT.dll_fputc]
cmp eax, 1
jne 0x401b3d
push edi
push 0x2e
jmp 0x401b77
cmp eax, 2
jne 0x401b47
push edi
push 0x30
jmp 0x401b77
cmp eax, 3
jne 0x401b51
push edi
push 0x46
jmp 0x401b77
cmp eax, 4
jne 0x401b5b
push edi
push 0x52
jmp 0x401b77
cmp eax, 5
jne 0x401b65
push edi
push 0
jmp 0x401b77
cmp eax, 6
jne 0x401b6f
push edi
push 0
jmp 0x401b77
cmp eax, 7
jne 0x401b7c
push edi
push 0x1a
call ebp
add esp, 8
lea esi, [esp + 0x1c0]
mov dword [esp + 0x24], 3
mov ecx, dword [esi]
push edi
add ecx, ebx
and ecx, 0xff
push ecx
call ebp
mov eax, dword [esp + 0x2c]
add esp, 8
add esi, 4
dec eax
mov dword [esp + 0x24], eax
jne 0x401b8b
mov eax, dword [esp + 0x1c]
mov esi, 0x3fc
add eax, ebx
push edi
and eax, 0xff
push eax
call ebp
mov edx, dword [esp + 0x18]
push edx
call dword [sym.imp.MSVCRT.dll_fgetc]
add esp, 0xc
dec esi
jne 0x401bb3
push edi
push eax
mov dword [esp + 0x24], eax
mov esi, 0x400
call ebp
add esp, 8
mov ecx, dword [esp + 0x10]
push ecx
push 0x800000
push 1
push 0x40444c
call dword [sym.imp.MSVCRT.dll_fread]
mov ebx, eax
add esp, 0x10
test ebx, ebx
je 0x401c5c
push edi
push ebx
push 1
push 0x40444c
call dword [sym.imp.MSVCRT.dll_fwrite]
add esi, ebx
mov eax, esi
cdq
and edx, 0xfffff
add edx, eax
mov eax, dword [esp + 0x38]
sar edx, 0x14
add eax, edx
and esi, 0x800fffff
mov dword [esp + 0x38], eax
jns 0x401c38
dec esi
or esi, 0xfff00000
inc esi
push eax
lea eax, [esp + 0x40]
push 0x404118
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x1c
lea ecx, [esp + 0x2c]
push ecx
mov ecx, dword [esp + 0x18]
call fcn.00401410
jmp 0x401bdf
cmp dword [esp + 0x18], 3
jne 0x401c76
push 0
push 0xa
push edi
call dword [sym.imp.MSVCRT.dll_fseek]
push edi
push 0
call ebp
add esp, 0x14
mov edx, dword [esp + 0x10]
mov esi, dword [sym.imp.MSVCRT.dll_fclose]
push edx
call esi
push edi
call esi
add esp, 8
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.MSVCRT.dll_time]
lea ecx, [esp + 0x24]
push ecx
call dword [sym.imp.MSVCRT.dll_localtime]
mov edx, dword [eax]
mov ecx, dword [eax + 4]
push edx
mov edx, dword [eax + 8]
push ecx
mov ecx, dword [eax + 0xc]
push edx
mov edx, dword [eax + 0x10]
mov eax, dword [eax + 0x14]
push ecx
add eax, 0x76c
push edx
push eax
lea ecx, [esp + 0x4c]
push 0x4040ec
push ecx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x28
jmp 0x401d8f
mov eax, dword [esp + 0x11c0]
lea ecx, [esp + 0xf4]
push eax
push 0x4040e8
push ecx
call dword [sym.imp.MSVCRT.dll_sprintf]
lea edx, [esp + 0x100]
push 0x404140
push edx
call dword [sym.imp.MSVCRT.dll_fopen]
mov edi, dword [sym.imp.MSVCRT.dll_fputc]
add esp, 0x14
mov esi, eax
xor ebx, ebx
movsx eax, byte [ebx + 0x40444c]
push esi
push eax
call edi
add esp, 8
inc ebx
cmp ebx, 0x200000
jl 0x401d0e
lea ebx, [esp + 0x1bc]
mov ebp, 4
mov ecx, dword [ebx]
push esi
push ecx
call edi
add esp, 8
add ebx, 4
dec ebp
jne 0x401d31
mov edx, dword [esp + 0x1c]
push esi
push edx
call edi
mov ebp, dword [esp + 0x18]
add esp, 8
mov ebx, 0x100000
push esi
push ebp
call dword [sym.imp.MSVCRT.dll_fgetc]
add esp, 4
push eax
call edi
add esp, 8
dec ebx
jne 0x401d54
mov edi, dword [sym.imp.MSVCRT.dll_fclose]
push ebp
call edi
push esi
call edi
lea eax, [esp + 0xfc]
lea ecx, [esp + 0x34]
push eax
push 0x404020
push ecx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x14
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x2c]
push edx
call fcn.00401410
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x11ac
ret 8