Function at 0x402bc0
Capabilities:
Copy file
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x406783
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, 0x494c8
call fcn.004049e0
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0x10]
xor esi, esi
cmp eax, esi
mov dword [ebp - 4], 1
je 0x402d6d
mov eax, dword [ebp + 0xc]
push eax
push 1
push 1
push esi
call dword [sym.imp.KERNEL32.dll_CreateSemaphoreA]
push 0xffffffffffffffff
push eax
mov dword [ebp - 0x64], eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [ebp + 0xc]
mov edi, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push 0x80
push ecx
call edi
mov edx, dword [ebp + 0xc]
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileA]
push edx
call ebx
push 0x5c
lea ecx, [ebp + 0xc]
call sub.MFC42.DLL_CString::ReverseFind
inc eax
lea ecx, [ebp + 0xc]
push eax
lea eax, [ebp - 0x20]
push eax
call sub.MFC42.DLL_CString::Mid
lea ecx, [ebp - 0x20]
lea edx, [ebp + 8]
push ecx
lea eax, [ebp - 0x68]
push edx
push eax
mov byte [ebp - 4], 2
call sub.MFC42.DLL_operator_1
push 0x5f
lea ecx, [ebp - 0x14]
push eax
push ecx
mov byte [ebp - 4], 3
call sub.MFC42.DLL_operator
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 5
call sub.MFC42.DLL_CString::CString
call fcn.00402a90
test eax, eax
je 0x402cfd
mov edx, dword [ebp + 8]
push 0x80
push edx
call edi
lea eax, [ebp + 8]
push 0x5f
lea ecx, [ebp - 0x1c]
push eax
push ecx
call sub.MFC42.DLL_operator
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 6
call fcn.004046fa
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 5
call sub.MFC42.DLL_CString::CString
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp + 8]
push esi
push edx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp + 8]
call fcn.004046fa
lea edx, [ebp + 8]
push 0x5f
lea eax, [ebp - 0x1c]
push edx
push eax
call sub.MFC42.DLL_operator
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 7
call fcn.004046fa
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 5
call sub.MFC42.DLL_CString::CString
mov ecx, dword [ebp - 0x14]
push ecx
call ebx
lea ecx, [ebp - 0x34]
call fcn.0040476c
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 8
call fcn.0040476c
mov edx, dword [ebp + 8]
push esi
push esi
push edx
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 9
call sub.MFC42.DLL_CFile::Open
test eax, eax
jne 0x402d9b
lea ecx, [ebp + 0x10]
call sub.MFC42.DLL_CString::CString_3
lea ecx, [ebp + 0x10]
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 8
call sub.MFC42.DLL_CFile::CFile
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 5
call sub.MFC42.DLL_CFile::CFile
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp + 8]
mov byte [ebp - 4], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp + 0xc]
mov dword [ebp - 4], 0xffffffff
call sub.MFC42.DLL_CString::CString
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x14]
push esi
push 0x1001
push eax
lea ecx, [ebp - 0x60]
call sub.MFC42.DLL_CFile::Open
test eax, eax
je 0x402d3d
mov edi, dword [sym.imp.MSVCRT.dll_rand]
mov dword [ebp - 0x18], esi
mov byte [ebp - 4], 0xa
mov dword [ebp - 0x38], esi
call edi
cdq
mov ecx, 6
idiv ecx
inc edx
lea eax, [edx + edx*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 4
push eax
mov dword [ebp - 0x1c], eax
call sub.MFC42.DLL_operatornew
add esp, 4
mov ebx, eax
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x18], ebx
push esi
push 0x6f74
call sub.MFC42.DLL_CFile::Seek
mov edx, dword [ebp - 0x1c]
lea ecx, [ebp - 0x34]
push edx
push ebx
call sub.MFC42.DLL_CFile::Read
push 2
push 0xfffffffffffffffc
lea ecx, [ebp - 0x34]
call sub.MFC42.DLL_CFile::Seek
lea eax, [ebp - 0x38]
push 4
push eax
lea ecx, [ebp - 0x34]
call sub.MFC42.DLL_CFile::Read
mov edx, dword [ebp - 0x34]
push esi
push esi
lea ecx, [ebp - 0x34]
call dword [edx + 0x30]
mov ebx, 0x493e0
mov dword [ebp - 0x24], 0x85000
mov eax, 0x85000
cmp esi, eax
jge 0x402e85
mov eax, dword [ebp - 0x24]
sub eax, esi
cmp ebx, eax
jle 0x402e4f
mov ebx, eax
lea eax, [ebp - 0x494d0]
push ebx
push eax
lea ecx, [ebp - 0x34]
call sub.MFC42.DLL_CFile::Read
mov edi, eax
test edi, edi
je 0x402e7f
lea ecx, [ebp - 0x494d0]
push edi
push ecx
lea ecx, [ebp - 0x60]
call sub.MFC42.DLL_CFile::Write
add esi, edi
mov edi, dword [sym.imp.MSVCRT.dll_rand]
jmp 0x402e3b
mov edi, dword [sym.imp.MSVCRT.dll_rand]
lea ecx, [ebp - 0x34]
call sub.MFC42.DLL_CFile::Close
mov edx, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x18]
push edx
push esi
lea ecx, [ebp - 0x60]
call sub.MFC42.DLL_CFile::Write
lea eax, [ebp - 0x1c]
push 4
push eax
lea ecx, [ebp - 0x60]
call sub.MFC42.DLL_CFile::Write
lea ecx, [ebp - 0x60]
call sub.MFC42.DLL_CFile::Close
push esi
call sub.MFC42.DLL_operatordelete
add esp, 4
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], 9
push 0xffff
push 0
push ecx
lea ecx, [ebp - 0xf0]
call fcn.00404be0
xor eax, eax
xor edx, edx
mov dword [ebp - 0x4f], eax
xor ecx, ecx
mov dword [ebp - 0x47], edx
mov word [ebp - 0x4b], ax
mov dword [ebp - 0x3f], ecx
mov word [ebp - 0x43], dx
mov byte [ebp - 0x49], al
mov word [ebp - 0x3b], cx
mov al, 0x20
mov byte [ebp - 0x41], dl
mov byte [ebp - 0x39], cl
mov byte [ebp - 4], 0xc
mov byte [ebp - 0x48], al
mov byte [ebp - 0x41], al
mov byte [ebp - 0x50], al
mov byte [ebp - 0x49], al
mov byte [ebp - 0x40], al
mov byte [ebp - 0x39], al
mov esi, 1
call edi
cdq
mov ecx, 0x1a
idiv ecx
add dl, 0x61
mov byte [ebp + esi - 0x48], dl
call edi
cdq
mov ecx, 0x1a
idiv ecx
add dl, 0x61
mov byte [ebp + esi - 0x50], dl
call edi
cdq
mov ecx, 0x1a
idiv ecx
add dl, 0x61
mov byte [ebp + esi - 0x40], dl
inc esi
cmp esi, 6
jl 0x402f1a
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx]
mov eax, dword [edx - 8]
add eax, 0xfffffffc
push eax
lea eax, [ebp - 0x18]
push eax
call sub.MFC42.DLL_CString::Left
lea ecx, [ebp - 0x18]
lea edx, [ebp - 0x40]
push ecx
lea eax, [ebp - 0x1c]
push edx
push eax
mov byte [ebp - 4], 0xd
call sub.MFC42.DLL_operator_2
mov esi, eax
lea ecx, [ebp - 0x18]
lea edx, [ebp - 0x50]
push ecx
lea eax, [ebp - 0x38]
push edx
push eax
mov byte [ebp - 4], 0xe
call sub.MFC42.DLL_operator_2
mov edi, eax
lea ecx, [ebp - 0x48]
lea edx, [ebp - 0x18]
push ecx
lea eax, [ebp - 0x24]
mov bl, 0xf
push edx
push eax
mov byte [ebp - 4], bl
call sub.MFC42.DLL_operator_3
push esi
push edi
push eax
lea ecx, [ebp - 0xf0]
mov byte [ebp - 4], 0x10
call fcn.004054e0
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 0xe
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 0xd
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0xf0]
call fcn.00404d10
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0xc
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0xf0]
mov byte [ebp - 4], 9
call fcn.00404ca0
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 0x14]
push 0
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
mov esi, eax
test esi, esi
je 0x403029
mov eax, dword [ebp + 0xc]
push 0x22
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov ecx, dword [ebp - 0x14]
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
push ecx
call edi
call fcn.00402a90
test eax, eax
je 0x403044
mov edx, dword [ebp + 8]
push edx
call edi
mov eax, dword [ebp - 0x64]
push 0
push 1
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 8
call sub.MFC42.DLL_CFile::CFile
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 5
call sub.MFC42.DLL_CFile::CFile
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp + 8]
mov byte [ebp - 4], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp + 0xc]
mov dword [ebp - 4], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret