Function at 0x43fd50
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4baeff
mov eax, dword fs:[0]
push eax
sub esp, 0x264
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
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x24c], ebx
lea ecx, [ebp - 0x244]
mov dword [ebp - 4], 0
call sub.mfc140u.dll_CFile::CFile
lea ecx, [ebp - 0x268]
mov byte [ebp - 4], 1
call sub.mfc140u.dll_CFile::CFile
push 0
push 0x8002
push dword [ebp + 8]
lea ecx, [ebp - 0x244]
mov byte [ebp - 4], 2
call sub.mfc140u.dll_CFile::Open
test eax, eax
je 0x43fe5b
lea eax, [ebp - 0x218]
push 0x58cfe8
test ebx, ebx
je 0x43fddf
push str._stempCopiesTemp1.prn
jmp 0x43fde4
push str._stempCopiesTemp2.prn
push eax
call fcn.00427d70
add esp, 0xc
or edi, 0xffffffff
mov dword [ebp - 0x230], edi
push 0x200
call sub.mfc140u.dll_operator_1
add esp, 4
lea ecx, [ebp - 0x244]
mov esi, eax
mov eax, dword [ebp - 0x244]
push 0x200
push esi
call dword [eax + 0x40]
cmp eax, 0x200
jne 0x43fe43
xor eax, eax
cmp byte [eax + esi], 0x1b
jne 0x43fe30
cmp byte [eax + esi + 1], 0x69
je 0x43fe3a
inc eax
cmp eax, 0x1f4
jl 0x43fe23
jmp 0x43fe43
lea edi, [eax + 2]
mov dword [ebp - 0x230], edi
push esi
call sub.mfc140u.dll_operator
add esp, 4
test edi, edi
jns 0x43fe9c
lea ecx, [ebp - 0x244]
call sub.mfc140u.dll_CFile::Close
xor esi, esi
lea ecx, [ebp - 0x268]
call fcn.004b4f4e
lea ecx, [ebp - 0x244]
call fcn.004b4f4e
lea ecx, [ebp + 8]
call dword [sym.imp.mfc140u.dll_Ordinal_1045]
mov eax, esi
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 0xc
push 0
push 0x9001
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x268]
call sub.mfc140u.dll_CFile::Open
test eax, eax
je 0x43fe50
push ecx
mov ecx, esp
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 ebx, eax
mov eax, dword [0x58cfd8]
mov ecx, ebx
mov dword [ebp - 0x248], ebx
push 0
push 0
movd xmm0, ebx
cvtdq2ps xmm0, xmm0
push 0
mulss xmm0, dword [eax + 0x888]
mov byte [ebp - 0x226], 0xd
cvtps2pd xmm0, xmm0
addsd xmm0, qword [0x4c09d0]
cvttsd2si eax, xmm0
cdq
sub eax, edx
mov esi, eax
sar esi, 1
lea eax, [esi + esi]
sub ecx, eax
mov eax, ecx
cdq
sub eax, edx
mov edx, ebx
mov ecx, eax
lea eax, [esi + esi]
sar ecx, 1
sub ebx, eax
sub edx, ecx
sub ebx, ecx
sub edx, esi
lea ecx, [ebp - 0x244]
cmp dword [ebp - 0x24c], 0
cmovne ebx, edx
mov dword [ebp - 0x254], ebx
call sub.mfc140u.dll_CFile::Seek
push edi
call sub.mfc140u.dll_operator_1
add esp, 4
lea ecx, [ebp - 0x244]
mov esi, eax
push edi
push esi
call sub.mfc140u.dll_CFile::Read
push edi
push esi
lea ecx, [ebp - 0x268]
call sub.mfc140u.dll_CFile::Write
push 1
push esi
call fcn.004b5f37
mov eax, dword [ebp - 0x230]
lea ecx, [ebp - 0x244]
add esp, 8
cdq
xor edi, edi
mov dword [ebp - 0x22c], edi
push edi
push edx
push eax
call sub.mfc140u.dll_CFile::Seek
lea ecx, [ebp - 0x244]
call sub.mfc140u.dll_CFile::GetLength
mov ebx, dword [ebp + 0x10]
mov dword [ebp - 0x270], eax
mov dword [ebp - 0x26c], edx
mov dword [ebp - 0x250], ebx
mov dword [ebp - 0x230], 1
nop word [eax + eax]
lea ecx, [ebp - 0x244]
call sub.mfc140u.dll_CFile::GetPosition
push dword [ebp - 0x26c]
mov ecx, eax
mov esi, edx
push dword [ebp - 0x270]
shld esi, ecx, 2
shl ecx, 2
add eax, ecx
adc edx, esi
shld edx, eax, 2
shl eax, 2
push edx
push eax
call fcn.004b6590
add eax, dword [ebp + 0x10]
cmp eax, ebx
je 0x44002e
mov ecx, dword [0x58a570]
mov dword [ebp - 0x250], eax
test ecx, ecx
je 0x44002e
push eax
call fcn.00474ad0
mov ecx, dword [0x58a570]
push 1
call fcn.00474980
push 7
lea eax, [ebp - 0x224]
mov word [ebp - 0x21c], 0
xorps xmm0, xmm0
lea ecx, [ebp - 0x244]
push eax
movq qword [ebp - 0x224], xmm0
call sub.mfc140u.dll_CFile::Read
movzx esi, byte [ebp - 0x220]
movzx eax, byte [ebp - 0x221]
movzx ebx, byte [ebp - 0x21e]
shl esi, 8
add esi, eax
shl ebx, 8
movzx eax, byte [ebp - 0x21f]
add ebx, eax
cmp dword [ebp - 0x230], 0
je 0x44009a
mov eax, dword [ebp - 0x24c]
xor ecx, ecx
mov dword [ebp - 0x230], ecx
mov dword [eax*4 + 0x58a5b0], esi
cmp byte [ebp - 0x223], 0
jne 0x4402ad
cmp byte [ebp - 0x222], 2
jne 0x4402ad
mov ecx, dword [ebp - 0x248]
mov eax, ecx
and eax, 0x800000ff
jns 0x4400ca
dec eax
or eax, 0xffffff00
inc eax
mov byte [ebp - 0x21f], al
mov eax, ecx
cdq
lea ecx, [ebp - 0x268]
and edx, 0xff
add eax, edx
sar eax, 8
mov byte [ebp - 0x21e], al
lea eax, [ebp - 0x224]
push 7
push eax
call sub.mfc140u.dll_CFile::Write
test edi, edi
mov edi, esi
jne 0x440116
imul edi, dword [ebp - 0x248]
push edi
call sub.mfc140u.dll_operator_1
add esp, 4
mov dword [ebp - 0x22c], eax
jmp 0x440123
imul edi, dword [ebp - 0x248]
mov eax, dword [ebp - 0x22c]
push edi
push 0
push eax
call sub.VCRUNTIME140.dll_memset
imul ebx, esi
lea ecx, [ebp - 0x244]
imul esi, dword [ebp - 0x254]
add esp, 0xc
push ebx
mov ebx, dword [ebp - 0x22c]
add esi, ebx
push esi
call sub.mfc140u.dll_CFile::Read
push edi
push ebx
lea ecx, [ebp - 0x268]
call sub.mfc140u.dll_CFile::Write
push 1
lea eax, [ebp - 0x226]
push eax
lea ecx, [ebp - 0x268]
call sub.mfc140u.dll_CFile::Write
push 1
push 0
push 1
lea ecx, [ebp - 0x244]
call sub.mfc140u.dll_CFile::Seek
push 2
lea eax, [ebp - 0x224]
push eax
lea ecx, [ebp - 0x244]
call sub.mfc140u.dll_CFile::Read
push 2
lea eax, [ebp - 0x224]
push eax
lea ecx, [ebp - 0x268]
call sub.mfc140u.dll_CFile::Write
mov al, byte [ebp - 0x224]
cmp al, 0x1b
jne 0x44026e
nop word [eax + eax]
mov al, byte [ebp - 0x223]
cmp al, 0x69
je 0x440272
cmp al, 0x28
jne 0x440283
push 1
lea eax, [ebp - 0x225]
push eax
lea ecx, [ebp - 0x244]
call sub.mfc140u.dll_CFile::Read
push 1
lea eax, [ebp - 0x225]
push eax
lea ecx, [ebp - 0x268]
call sub.mfc140u.dll_CFile::Write
mov al, byte [ebp - 0x225]
cmp al, 0x76
je 0x440210
cmp al, 0x24
jne 0x4402b3
push 6
lea eax, [ebp - 0x224]
push eax
lea ecx, [ebp - 0x244]
call sub.mfc140u.dll_CFile::Read
push 6
lea eax, [ebp - 0x224]
push eax
lea ecx, [ebp - 0x268]
call sub.mfc140u.dll_CFile::Write
push 2
lea eax, [ebp - 0x224]
push eax
lea ecx, [ebp - 0x244]
call sub.mfc140u.dll_CFile::Read
push 2
lea eax, [ebp - 0x224]
push eax
lea ecx, [ebp - 0x268]
call sub.mfc140u.dll_CFile::Write
mov al, byte [ebp - 0x224]
cmp al, 0x1b
je 0x4401c0
cmp al, 0xc
jmp 0x440285
mov edi, dword [ebp - 0x22c]
mov ebx, dword [ebp - 0x250]
jmp 0x43ffd0
cmp al, 0x40
jne 0x4402b3
push 0x64
push ebx
lea ecx, [ebp - 0x244]
call sub.mfc140u.dll_CFile::Read
test eax, eax
jle 0x4402a6
push eax
push ebx
lea ecx, [ebp - 0x268]
call sub.mfc140u.dll_CFile::Write
mov esi, 1
jmp 0x4402b5
mov ebx, dword [ebp - 0x22c]
xor esi, esi
test ebx, ebx
je 0x4402c2
push ebx
call sub.mfc140u.dll_operator
add esp, 4
lea ecx, [ebp - 0x244]
call sub.mfc140u.dll_CFile::Close
lea ecx, [ebp - 0x268]
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 - 0x218]
push eax
call dword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__wrename]
add esp, 0xc
jmp 0x43fe5d