Function at 0x441ae0
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4bafcf
mov eax, dword fs:[0]
push eax
sub esp, 0x2a0
mov eax, dword [0x587614]
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
lea ecx, [ebp - 0x2a4]
mov dword [ebp - 4], 0
call sub.mfc140u.dll_CFile::CFile
lea ecx, [ebp - 0x26c]
mov byte [ebp - 4], 1
call sub.mfc140u.dll_CFile::CFile
push 0
push 0x8002
push dword [ebp + 8]
lea ecx, [ebp - 0x2a4]
mov byte [ebp - 4], 2
call sub.mfc140u.dll_CFile::Open
test eax, eax
je 0x441bf6
push 0x58cfe8
lea eax, [ebp - 0x22c]
push str._stempCopiesTemp1.prn
push eax
call fcn.00427d70
add esp, 0xc
lea ecx, [ebp - 0x2a4]
call sub.mfc140u.dll_CFile::GetLength
mov esi, eax
mov dword [ebp - 0x27c], 0
mov edi, edx
mov dword [ebp - 0x24c], esi
xor eax, eax
mov dword [ebp - 0x270], edi
push esi
mov dword [ebp - 0x248], eax
call sub.mfc140u.dll_operator_1
mov ebx, eax
add esp, 4
mov dword [ebp - 0x290], ebx
test ebx, ebx
je 0x441bc3
push esi
push ebx
lea ecx, [ebp - 0x2a4]
call sub.mfc140u.dll_CFile::Read
lea ecx, [ebp - 0x2a4]
call sub.mfc140u.dll_CFile::Close
xor ecx, ecx
test edi, edi
jb 0x441beb
ja 0x441bd0
test esi, esi
je 0x441beb
nop
cmp byte [ecx + ebx], 0x1b
jne 0x441bdd
cmp byte [ecx + ebx + 1], 0x69
je 0x441c35
inc ecx
mov eax, ecx
cdq
cmp edx, edi
ja 0x441beb
jb 0x441bd0
cmp eax, esi
jb 0x441bd0
push 1
push ebx
call fcn.004b5f37
add esp, 8
lea ecx, [ebp - 0x26c]
call fcn.004b4f4e
lea ecx, [ebp - 0x2a4]
call fcn.004b4f4e
lea ecx, [ebp + 8]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
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.004b61c2
mov esp, ebp
pop ebp
ret 4
lea edi, [ecx + 2]
test edi, edi
js 0x441beb
push 0
push 0x9001
lea eax, [ebp - 0x22c]
push eax
lea ecx, [ebp - 0x26c]
call sub.mfc140u.dll_CFile::Open
test eax, eax
je 0x441beb
push ecx
mov ecx, esp
mov dword [ebp - 0x244], 0
push 0x4d92f8
call dword [sym.imp.mfc140u.dll_ATL::CStringT_wchar_t_StrTraitMFC_DLL_wchar_t_ATL::ChTraitsCRT_wchar_t__19]
mov ecx, dword [0x58cfd8]
lea ecx, [ecx + 0x890]
call fcn.00425000
mov esi, dword [0x58cfd8]
mov dword [ebp - 0x238], eax
movd xmm0, eax
cvtdq2ps xmm0, xmm0
push dword [esi + 0x894]
mulss xmm0, dword [esi + 0x888]
cvtps2pd xmm0, xmm0
addsd xmm0, qword [0x4c09d0]
cvttsd2si ecx, xmm0
sub eax, ecx
cdq
sub eax, edx
sar eax, 1
mov dword [ebp - 0x278], eax
call fcn.00473030
add esp, 4
mov ecx, 4
cmp eax, 0x5e
jne 0x441cdd
mov dword [ebp - 0x240], 0
jmp 0x441d10
cmp eax, 0x47
jne 0x441cee
mov dword [ebp - 0x240], 0x30
jmp 0x441d10
cmp eax, 0x62
jne 0x441cff
mov dword [ebp - 0x240], 0xb
jmp 0x441d10
cmp eax, 0x63
mov edx, 2
cmove ecx, edx
mov dword [ebp - 0x240], ecx
mov ecx, dword [ebp - 0x270]
xor esi, esi
mov dword [ebp - 0x234], 0
mov byte [ebp - 0x22d], 0xd
nop dword [eax]
cmp byte [ebx + esi], 0x28
jne 0x441d3d
cmp byte [ebx + esi + 1], 0x76
je 0x441d55
inc esi
mov eax, esi
cdq
cmp edx, ecx
ja 0x441dcc
jb 0x441d30
cmp eax, dword [ebp - 0x24c]
jae 0x441dcc
jmp 0x441d30
lea eax, [ebp - 0x250]
push eax
lea eax, [ebp - 0x258]
push eax
mov eax, dword [0x58cfd8]
push dword [eax + 0x894]
call fcn.00472eb0
movzx ecx, byte [esi + ebx + 7]
add esp, 0xc
movzx eax, byte [esi + ebx + 6]
shl ecx, 8
add ecx, eax
movzx eax, byte [esi + ebx + 5]
shl ecx, 8
add ecx, eax
mov eax, dword [ebp - 0x250]
cdq
idiv dword [ebp - 0x238]
shl ecx, 8
imul eax, dword [ebp - 0x278]
sub ecx, eax
movzx eax, byte [esi + ebx + 4]
add ecx, eax
mov eax, ecx
mov byte [esi + ebx + 4], cl
shr eax, 8
mov byte [esi + ebx + 5], al
mov eax, ecx
shr eax, 0x10
shr ecx, 0x18
mov byte [esi + ebx + 6], al
mov byte [esi + ebx + 7], cl
push edi
push ebx
lea ecx, [ebp - 0x26c]
mov byte [ebp - 0x24], 0xff
call sub.mfc140u.dll_CFile::Write
mov eax, edi
mov dword [ebp - 0x274], 0
cdq
lea esi, [edi + ebx]
mov edi, eax
mov dword [ebp - 0x28c], 1
mov ebx, edx
push dword [ebp - 0x270]
mov ecx, 0x64
mov dword [ebp - 0x250], ebx
push dword [ebp - 0x24c]
mov eax, ebx
mov dword [ebp - 0x280], edi
mul ecx
mov edx, 0x64
mov ecx, eax
mov eax, edi
mul edx
add ecx, edx
push ecx
push eax
call fcn.004b6590
cmp eax, dword [ebp - 0x274]
je 0x441e5b
mov ecx, dword [0x58a570]
mov dword [ebp - 0x274], eax
test ecx, ecx
je 0x441e5b
push eax
call fcn.00474ad0
mov ecx, dword [0x58a570]
push 1
call fcn.00474980
movzx ecx, byte [esi + 4]
movzx eax, byte [esi + 3]
shl ecx, 8
add ecx, eax
movzx eax, byte [esi + 5]
mov dword [ebp - 0x23c], ecx
movzx ecx, byte [esi + 6]
shl ecx, 8
add ecx, eax
cmp byte [esi + 1], 0
movzx eax, byte [esi]
mov dword [ebp - 0x254], ecx
mov dword [ebp - 0x288], eax
jne 0x442155
cmp byte [esi + 2], 2
jne 0x442155
mov ecx, dword [ebp - 0x238]
mov eax, ecx
mov byte [esi + 1], 1
and eax, 0x800000ff
jns 0x441eb8
dec eax
or eax, 0xffffff00
inc eax
mov byte [esi + 5], al
mov eax, ecx
cdq
lea ecx, [ebp - 0x26c]
and edx, 0xff
add eax, edx
push 7
sar eax, 8
push esi
mov byte [esi + 6], al
call sub.mfc140u.dll_CFile::Write
mov eax, dword [ebp - 0x23c]
add esi, 7
imul eax, dword [ebp - 0x238]
cmp dword [ebp - 0x234], 0
mov dword [ebp - 0x258], esi
jne 0x441f14
push eax
mov dword [ebp - 0x284], eax
call sub.mfc140u.dll_operator_1
mov dword [ebp - 0x234], eax
add esp, 4
mov eax, dword [ebp - 0x284]
push eax
push 0
push dword [ebp - 0x234]
call sub.VCRUNTIME140.dll_memset
mov ecx, dword [ebp - 0x254]
mov eax, dword [ebp - 0x23c]
imul ecx, eax
imul eax, dword [ebp - 0x278]
push ecx
add eax, dword [ebp - 0x234]
push esi
push eax
mov dword [ebp - 0x254], ecx
call sub.VCRUNTIME140.dll_memcpy
mov ecx, dword [ebp - 0x288]
add esp, 0x18
mov edx, dword [ebp - 0x240]
cmp ecx, edx
mov eax, dword [ebp - 0x244]
cmove eax, dword [ebp - 0x28c]
cmp dword [0x58d228], 0
mov dword [ebp - 0x244], eax
je 0x441f86
cmp ecx, edx
jne 0x441f86
mov eax, dword [ebp - 0x234]
or byte [eax], 0x40
mov eax, dword [ebp - 0x248]
test eax, eax
jne 0x441fb3
mov eax, dword [ebp - 0x23c]
add eax, 0x87
imul eax, eax, 0x81
shr eax, 7
push eax
call sub.mfc140u.dll_operator_1
add esp, 4
mov dword [ebp - 0x248], eax
mov ecx, dword [ebp - 0x238]
test ecx, ecx
jle 0x442035
mov edi, dword [ebp - 0x234]
mov esi, ecx
mov ebx, dword [ebp - 0x23c]
jmp 0x441fd6
mov eax, dword [ebp - 0x248]
lea ecx, [ebp - 0x2a8]
push ecx
lea ecx, [ebp - 0x2ac]
push ecx
lea ecx, [ebp - 0x27c]
push ecx
push eax
mov eax, dword [0x58cfd8]
push ebx
push edi
push dword [eax + 0x894]
call fcn.00408980
mov eax, dword [ebp - 0x27c]
add esp, 0x1c
mov ecx, dword [ebp - 0x248]
sub eax, ecx
push eax
push ecx
lea ecx, [ebp - 0x26c]
call sub.mfc140u.dll_CFile::Write
add edi, ebx
sub esi, 1
jne 0x441fd0
mov esi, dword [ebp - 0x258]
mov edi, dword [ebp - 0x280]
mov ebx, dword [ebp - 0x250]
push 1
lea eax, [ebp - 0x22d]
push eax
lea ecx, [ebp - 0x26c]
call sub.mfc140u.dll_CFile::Write
mov eax, dword [ebp - 0x254]
inc esi
add esi, eax
inc eax
cdq
add eax, 7
adc edx, 0
add edi, eax
adc ebx, edx
cmp dword [0x58d228], 0
mov eax, dword [ebp - 0x244]
je 0x4420bc
cmp byte [esi + 2], 0x76
je 0x442078
cmp byte [esi], 0xc
jne 0x4420bc
test eax, eax
jne 0x4420bc
cmp byte [ebp - 0x24], 0xff
jne 0x4420ab
mov eax, dword [ebp - 0x240]
mov byte [ebp - 0x22], al
mov al, byte [ebp - 0x22d]
mov word [ebp - 0x24], 0x691b
mov dword [ebp - 0x21], 0x10200
mov word [ebp - 0x1d], 1
mov byte [ebp - 0x1b], 0x40
mov byte [ebp - 0x1a], al
push 0xb
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x26c]
call sub.mfc140u.dll_CFile::Write
push 2
push esi
lea ecx, [ebp - 0x26c]
mov dword [ebp - 0x244], 0
call sub.mfc140u.dll_CFile::Write
mov al, byte [esi]
cmp al, 0x1b
jne 0x44212f
mov al, byte [esi + 1]
cmp al, 0x69
je 0x44211d
cmp al, 0x28
jne 0x44212b
push 1
add esi, 2
lea ecx, [ebp - 0x26c]
push esi
call sub.mfc140u.dll_CFile::Write
mov al, byte [esi]
cmp al, 0x76
je 0x442100
cmp al, 0x24
jne 0x442155
push 6
inc esi
lea ecx, [ebp - 0x26c]
push esi
call sub.mfc140u.dll_CFile::Write
add esi, 6
add edi, 9
adc ebx, 0
jmp 0x44205e
add esi, 2
add edi, 2
adc ebx, 0
jmp 0x441dfb
cmp al, 0x40
jmp 0x442131
cmp al, 0xc
jne 0x442155
mov eax, dword [ebp - 0x24c]
lea ecx, [ebp - 0x26c]
add esi, 2
add edi, 2
sub eax, edi
push eax
push esi
call sub.mfc140u.dll_CFile::Write
mov esi, 1
jmp 0x442157
xor esi, esi
mov eax, dword [ebp - 0x234]
test eax, eax
je 0x44216a
push eax
call sub.mfc140u.dll_operator
add esp, 4
mov eax, dword [ebp - 0x248]
test eax, eax
je 0x44217f
push 1
push eax
call fcn.004b5f37
add esp, 8
push 1
push dword [ebp - 0x290]
call fcn.004b5f37
add esp, 8
lea ecx, [ebp - 0x26c]
call sub.mfc140u.dll_CFile::Close
push dword [ebp + 8]
call dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__wunlink]
push dword [ebp + 8]
lea eax, [ebp - 0x22c]
push eax
call dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__wrename]
add esp, 0xc
lea ecx, [ebp - 0x26c]
call fcn.004b4f4e
lea ecx, [ebp - 0x2a4]
call fcn.004b4f4e
lea ecx, [ebp + 8]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
mov eax, esi
jmp 0x441c17