Function at 0x42f313
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x64
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sub.msvcrt.dll_strlen
mov ebx, eax
mov eax, dword [0x7bde80]
mov edx, eax
sar edx, 0x1f
mov dword [esp], eax
mov dword [esp + 4], edx
call fcn.00436856
add eax, ebx
add eax, 2
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
lea edx, [eax + 0xf]
mov eax, 0x10
dec eax
add eax, edx
mov ecx, 0x10
mov edx, 0
div ecx
imul eax, eax, 0x10
call fcn.006b7700
sub esp, eax
lea eax, [esp + 0x18]
add eax, 0xf
shr eax, 4
shl eax, 4
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x10]
lea edx, [eax + 0xf]
mov eax, 0x10
dec eax
add eax, edx
mov ecx, 0x10
mov edx, 0
div ecx
imul eax, eax, 0x10
call fcn.006b7700
sub esp, eax
lea eax, [esp + 0x18]
add eax, 0xf
shr eax, 4
shl eax, 4
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x48]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.0047e20c
test eax, eax
jne 0x42f3dc
mov ax, word [ebp - 0x42]
and eax, 0xffff
and eax, 0xf000
cmp eax, 0x8000
jne 0x42f544
mov eax, dword [0x7bde80]
mov dword [ebp - 0xc], eax
jmp 0x42f4ab
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0xc]
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], 0x6f6857
mov edx, dword [ebp + 8]
mov dword [esp + 0xc], edx
mov dword [esp + 8], str._s_s_d
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x18]
mov dword [esp], eax
call fcn.0047daf0
mov eax, dword [ebp - 0xc]
lea edx, [eax - 1]
mov eax, dword [ebp - 0x10]
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], 0x6f6857
mov edx, dword [ebp + 8]
mov dword [esp + 0xc], edx
mov dword [esp + 8], str._s_s_d
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call fcn.0047daf0
mov eax, dword [ebp - 0x18]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call sub.msvcrt.dll_rename
test eax, eax
je 0x42f4a8
mov eax, dword [sym.imp.msvcrt.dll__errno]
call eax
mov eax, dword [eax]
mov dword [esp], eax
call fcn.0047f310
mov ebx, eax
mov eax, dword [sym.imp.msvcrt.dll__errno]
call eax
mov eax, dword [eax]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x18]
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x14]
mov dword [esp + 8], eax
mov dword [esp + 4], str.Failed_to_rename__s_to__s:___d___s_n
mov dword [esp], 1
call fcn.004246ce
dec dword [ebp - 0xc]
cmp dword [ebp - 0xc], 1
jg 0x42f3e9
mov eax, dword [ebp - 0x10]
mov dword [esp + 0x14], 1
mov dword [esp + 0x10], 0x6f6857
mov edx, dword [ebp + 8]
mov dword [esp + 0xc], edx
mov dword [esp + 8], str._s_s_d
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x18]
mov dword [esp], eax
call fcn.0047daf0
mov eax, dword [ebp - 0x18]
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sub.msvcrt.dll_rename
test eax, eax
je 0x42f545
mov eax, dword [sym.imp.msvcrt.dll__errno]
call eax
mov eax, dword [eax]
mov dword [esp], eax
call fcn.0047f310
mov ebx, eax
mov eax, dword [sym.imp.msvcrt.dll__errno]
call eax
mov eax, dword [eax]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x18]
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 8]
mov dword [esp + 8], eax
mov dword [esp + 4], str.Failed_to_rename__s_to__s:___d___s_n
mov dword [esp], 1
call fcn.004246ce
jmp 0x42f545
nop
mov ebx, dword [ebp - 4]
leave
ret