Function at 0x415b32
Capabilities:
Get file size
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x424
mov eax, dword [0x448008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, edx
mov ebx, ecx
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x420], ebx
cmp esi, dword [0x481cec]
jb 0x415bba
cmp esi, dword [0x481cf0]
ja 0x415bba
mov ecx, dword [0x449648]
cmp ecx, 0x45ed30
je 0x415ba1
cmp byte [ecx + 0x29], 3
je 0x415ba1
call fcn.00414184
mov ecx, dword [0x449648]
cmp dword [ecx + 0x38], esi
je 0x415b91
push 1
push 0
xor dl, dl
jmp 0x415b9c
cmp dword [ecx + 0x40], edi
je 0x415ba1
push 1
push 5
mov dl, 0x15
call fcn.0041055a
mov edx, edi
mov ecx, esi
call fcn.004132e0
mov ecx, eax
test ecx, ecx
jne 0x415bcf
mov dword [0x449648], 0x45ed30
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042a623
mov esp, ebp
pop ebp
ret 8
mov eax, dword [0x449648]
cmp eax, ecx
je 0x415bef
mov eax, ecx
mov byte [0x44de4a], 0
xor ecx, ecx
mov dword [0x449648], eax
mov word [0x44de48], cx
push dword [ebp + 0xc]
movzx eax, byte [eax + 0x28]
mov edx, esi
and dword [0x481cf8], 0
mov esi, 0x481e18
push eax
push edi
mov ecx, esi
call fcn.00410153
mov dl, 1
mov ecx, esi
call fcn.004129b6
mov edi, eax
cmp edi, 0xffffffff
je 0x415d8c
mov edx, dword [0x44e498]
test edx, 0x3fffffc0
jne 0x415c42
mov cl, byte [0x481e18]
call fcn.0040f8eb
or edx, eax
mov dword [0x44e498], edx
cmp dword [0x461aa4], 0
je 0x415d23
push 0x400
lea edx, [ebp - 0x408]
mov ecx, edi
call fcn.0040f05a
test al, al
je 0x415d23
mov eax, dword [0x449648]
mov ecx, dword [ebp - 0x308]
mov dword [eax + 0x30], ecx
mov eax, dword [ebp - 0x308]
test eax, eax
je 0x415d23
cmp eax, dword [0x461aa4]
je 0x415d23
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [0x449648]
mov edi, dword [sym.imp.USER32.dll_wsprintfA]
movzx eax, word [ecx + 0x30]
push eax
movzx eax, word [ecx + 0x32]
push eax
push esi
lea eax, [ebp - 0x408]
push str._s._d._d
push eax
call edi
add esp, 0x14
lea eax, [ebp - 0x408]
push 1
push eax
push esi
mov esi, dword [sym.imp.KERNEL32.dll_MoveFileExA]
call esi
movzx eax, word [0x461aa4]
push eax
movzx eax, word [0x461aa6]
push eax
push 0x481e18
lea eax, [ebp - 0x408]
push str._s._d._d
push eax
call edi
add esp, 0x14
lea eax, [ebp - 0x408]
push 1
push 0x481e18
push eax
call esi
mov ecx, dword [0x449648]
call fcn.00414184
mov esi, 0x481e18
mov dl, 1
mov ecx, esi
call fcn.004129b6
mov edi, eax
cmp edi, 0xffffffff
je 0x415d8c
mov al, byte [0x481e18]
mov ecx, ebx
mov edx, dword [0x449648]
sub al, 0x41
push 1
push edi
mov byte [edx + 0x28], al
call fcn.004159e9
mov cl, byte [0x481e18]
call fcn.0040f8eb
test dword [0x44e498], eax
je 0x415d8c
mov eax, dword [0x449648]
movsx eax, byte [eax + 0x28]
mov ecx, dword [eax*4 + 0x44e428]
test ecx, ecx
je 0x415d8c
cmp ecx, 0x32
jb 0x415d8c
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [0x449648]
mov cl, byte [ecx + 0x28]
mov byte [0x44de46], cl
xor eax, eax
inc eax
jmp 0x415bbc
mov dl, 1
mov ecx, 0x2000
call fcn.0041290b
mov edx, eax
mov dword [ebp - 0x418], edx
cmp edi, 0xffffffff
je 0x415f6c
mov bl, byte [0x481e18]
mov dl, 1
mov ecx, esi
mov byte [0x481e18], 0x41
call fcn.004129b6
mov dword [ebp - 0x410], eax
cmp eax, 0xffffffff
je 0x415eda
mov cl, byte [0x481e18]
cmp cl, bl
je 0x415ed3
mov edx, dword [0x449648]
sub cl, 0x41
push 0
push eax
mov byte [edx + 0x28], cl
mov ecx, dword [ebp - 0x420]
call fcn.004159e9
mov eax, dword [0x449648]
mov esi, dword [sym.imp.KERNEL32.dll_GetFileSize]
movsx eax, byte [eax + 0x28]
mov dword [ebp - 0x424], eax
lea eax, [ebp - 0x40c]
push eax
push edi
call esi
mov ecx, dword [ebp - 0x40c]
xor edx, edx
or edx, eax
mov dword [ebp - 0x41c], ecx
lea eax, [ebp - 0x40c]
mov dword [ebp - 0x414], edx
push eax
push dword [ebp - 0x410]
call esi
mov esi, dword [ebp - 0x40c]
xor ecx, ecx
or ecx, eax
mov dword [ebp - 0x40c], ecx
mov ecx, dword [ebp - 0x424]
call fcn.0040f903
mov edx, dword [ebp - 0x41c]
test dword [0x44e498], eax
jne 0x415eae
cmp esi, edx
jb 0x415eae
ja 0x415e77
mov eax, dword [ebp - 0x414]
cmp dword [ebp - 0x40c], eax
jb 0x415eb4
cmp dword [ecx*4 + 0x44e428], 0x400
jae 0x415e92
mov eax, dword [ebp - 0x418]
cmp ecx, eax
je 0x415e92
test eax, eax
jne 0x415eae
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
mov byte [0x44de46], cl
call esi
push dword [ebp - 0x410]
call esi
jmp 0x415d84
mov eax, dword [ebp - 0x414]
cmp esi, edx
jb 0x415ec8
ja 0x415ec2
cmp dword [ebp - 0x40c], eax
jbe 0x415ec8
mov bl, byte [0x481e18]
mov eax, dword [ebp - 0x410]
mov esi, 0x481e18
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x418]
test edx, edx
jne 0x415f07
mov eax, dword [0x449648]
mov byte [0x481e18], bl
sub bl, 0x41
mov byte [eax + 0x28], bl
mov byte [0x44de46], bl
jmp 0x415d84
mov bh, dl
add bh, 0x41
cmp bl, bh
je 0x415f6c
movsx eax, bh
push eax
movsx eax, bl
push eax
push str.Moving_Active_Tape_from_drive__c_to__c
push 2
push 0x80
push 0
push 0
call fcn.00420600
mov ecx, dword [0x449648]
add esp, 0x18
sub bl, 0x41
mov dl, 1
push 0
mov byte [ecx + 0x28], bl
mov byte [ecx + 0x57], bh
call fcn.00411199
pop ecx
pop ecx
test al, al
jne 0x415f9b
push str.Move_failed
push 3
push 0x88
push 0
push 0
call fcn.00420600
add esp, 0x14
mov edx, dword [ebp - 0x418]
test edx, edx
jne 0x415fe3
mov dl, 1
mov ecx, 0x1000
call fcn.0041290b
mov edx, eax
test edx, edx
jne 0x415fe3
mov dl, 5
mov ecx, dword [0x449648]
push 0
push 0xff
call fcn.0041055a
jmp 0x415bba
mov dl, 1
mov byte [0x481e18], bh
mov ecx, esi
call fcn.004129b6
mov esi, eax
cmp esi, 0xffffffff
je 0x415f66
mov bl, byte [0x481e18]
mov edx, dword [0x449648]
sub bl, 0x41
mov ecx, dword [ebp - 0x420]
push 0
push esi
mov byte [edx + 0x28], bl
mov byte [0x44de46], bl
call fcn.004159e9
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x415d84
mov bl, dl
add bl, 0x41
mov cl, bl
call fcn.0040f8eb
test eax, 0x3fffffc0
je 0x415bba
mov eax, dword [0x449648]
mov ecx, 0x481e18
mov byte [0x481e18], bl
push 4
mov byte [eax + 0x28], dl
pop edx
call fcn.0040f98b
cmp eax, 0xffffffff
jne 0x416021
mov dl, 4
jmp 0x415f84
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [0x449648]
mov al, byte [eax + 0x28]
mov byte [0x44de46], al
jmp 0x415d84