Function at 0x405fb0
Capabilities:
Copy file
Delete file

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x412dd0
push eax
mov eax, dword [0x41b2bc]
mov dword fs:[0], esp
sub esp, 0x40
push ebx
push ebp
push esi
xor esi, esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CopyFileA]
cmp eax, esi
jne 0x406306
mov eax, dword [0x41bd5c]
push 0x41b4dc
add eax, 0x10
push eax
lea eax, [esp + 0x24]
push eax
call sub.MFC42.DLL_operator
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x58], esi
push ecx
call fcn.004030d0
mov edx, dword [esp + 0x20]
add esp, 4
mov ecx, 0x41d34c
push edx
call fcn.00409280
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::CString
mov eax, dword [0x41bd5c]
push 0x41bd24
add eax, 0x10
mov byte [esp + 0x5c], 1
push eax
lea eax, [esp + 0x28]
push eax
call sub.MFC42.DLL_operator_2
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x5c], 2
call fcn.0040cffa
lea ecx, [esp + 0x20]
mov byte [esp + 0x58], 1
call fcn.0040cfa6
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
push ecx
push edx
mov ecx, 0x41d34c
call fcn.00409810
mov al, byte [esp + 0x13]
mov dword [esp + 0x44], esi
mov byte [esp + 0x40], al
mov dword [esp + 0x48], esi
mov dword [esp + 0x4c], esi
lea ecx, [esp + 0x40]
push esi
push ecx
push ecx
lea edx, [esp + 0x28]
mov ecx, esp
mov dword [esp + 0x48], esp
push edx
mov byte [esp + 0x68], 3
call sub.MFC42.DLL_CString::CString_2
mov ecx, 0x41d34c
call fcn.004094a0
mov ecx, dword [esp + 0x44]
cmp ecx, esi
jne 0x4060b8
mov dword [esp + 0x20], esi
jmp 0x4060c5
mov eax, dword [esp + 0x48]
sub eax, ecx
sar eax, 2
mov dword [esp + 0x20], eax
mov eax, dword [0x41bd5c]
mov ecx, 0x41d34c
mov eax, dword [eax + 0x14]
push eax
call fcn.00409280
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0x20]
mov ebx, 4
cmp eax, esi
mov byte [esp + 0x58], bl
jle 0x40628f
mov ecx, dword [esp + 0x44]
mov eax, dword [0x41bd5c]
add eax, 0xc
lea edx, [ecx + esi*4]
push edx
push eax
lea eax, [esp + 0x2c]
push eax
call sub.MFC42.DLL_operator_2
mov eax, dword [eax]
mov ecx, 0x41d34c
push eax
mov byte [esp + 0x5c], 5
call fcn.004093e0
lea ecx, [esp + 0x24]
mov ebp, eax
mov byte [esp + 0x58], bl
call fcn.0040cfa6
test ebp, ebp
je 0x4061e0
mov ecx, dword [esp + 0x44]
mov eax, dword [0x41bd5c]
add eax, 0x14
lea edx, [ecx + esi*4]
push edx
push eax
lea eax, [esp + 0x30]
push eax
call sub.MFC42.DLL_operator_2
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x5c], 6
call fcn.0040cffa
lea ecx, [esp + 0x28]
mov byte [esp + 0x58], bl
call fcn.0040cfa6
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x2c]
push ecx
push edx
mov ecx, 0x41d34c
call fcn.00409420
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x5c], 7
call fcn.0040cffa
lea ecx, [esp + 0x2c]
mov byte [esp + 0x58], bl
call fcn.0040cfa6
mov eax, dword [esp + 0x18]
mov ecx, 0x41d34c
push eax
call fcn.00409280
mov ecx, dword [esp + 0x44]
mov eax, dword [0x41bd5c]
add eax, 0xc
lea edx, [ecx + esi*4]
push edx
push eax
lea eax, [esp + 0x38]
push eax
call sub.MFC42.DLL_operator_2
mov ecx, dword [esp + 0x14]
mov eax, dword [eax]
push 0
push ecx
push eax
call edi
lea ecx, [esp + 0x30]
call fcn.0040cfa6
mov edx, dword [esp + 0x44]
mov eax, dword [0x41bd5c]
add eax, 0xc
lea ecx, [edx + esi*4]
lea edx, [esp + 0x34]
push ecx
push eax
push edx
call sub.MFC42.DLL_operator_2
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x5c], 8
call fcn.0040cffa
lea ecx, [esp + 0x34]
mov byte [esp + 0x58], bl
call fcn.0040cfa6
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x38]
push eax
push ecx
mov ecx, 0x41d34c
call fcn.00409420
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x5c], 9
call fcn.0040cffa
lea ecx, [esp + 0x38]
mov byte [esp + 0x58], bl
call fcn.0040cfa6
mov edx, dword [esp + 0x18]
mov ecx, 0x41d34c
push edx
call fcn.00409280
mov eax, dword [esp + 0x44]
lea edx, [esp + 0x1c]
lea ecx, [eax + esi*4]
lea eax, [esp + 0x3c]
push ecx
push edx
push eax
call sub.MFC42.DLL_operator_2
mov ecx, dword [esp + 0x14]
mov eax, dword [eax]
push 0
push ecx
push eax
call edi
lea ecx, [esp + 0x3c]
call fcn.0040cfa6
mov eax, dword [esp + 0x20]
inc esi
cmp esi, eax
jl 0x4060f6
mov edx, dword [esp + 0x1c]
push edx
call fcn.004030d0
add esp, 4
lea ecx, [esp + 0x14]
mov byte [esp + 0x58], 3
call fcn.0040cfa6
mov ebp, dword [esp + 0x48]
mov esi, dword [esp + 0x44]
cmp esi, ebp
mov byte [esp + 0x58], 1
je 0x4062ce
push 0
mov ecx, esi
call fcn.00407100
add esi, ebx
cmp esi, ebp
jne 0x4062bb
mov esi, dword [esp + 0x44]
push esi
call sub.MFC42.DLL_operatordelete
xor eax, eax
add esp, 4
lea ecx, [esp + 0x18]
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov byte [esp + 0x58], al
call fcn.0040cfa6
or ebx, 0xffffffff
lea ecx, [esp + 0x1c]
mov dword [esp + 0x58], ebx
call fcn.0040cfa6
xor esi, esi
jmp 0x406309
or ebx, 0xffffffff
cmp dword [0x41b2bc], 1
jne 0x406415
mov eax, dword [0x41bd5c]
cmp eax, esi
jne 0x406323
xor edx, edx
jmp 0x40633c
mov ecx, dword [0x41bd60]
sub ecx, eax
mov eax, 0x66666667
imul ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
cmp edx, esi
jle 0x406415
mov ebp, edx
mov ecx, dword [0x41bd5c]
mov eax, dword [esi + ecx + 0xc]
mov ecx, 0x41d34c
push eax
call fcn.004093e0
test eax, eax
je 0x4063ad
mov eax, dword [0x41bd5c]
lea edx, [esp + 0x3c]
mov ecx, 0x41d34c
mov eax, dword [esi + eax + 0x14]
push eax
push edx
call fcn.00409420
mov eax, dword [eax]
mov ecx, 0x41d34c
push eax
mov dword [esp + 0x5c], 0xa
call fcn.00409280
lea ecx, [esp + 0x3c]
mov dword [esp + 0x58], ebx
call fcn.0040cfa6
mov eax, dword [0x41bd5c]
push 0
mov ecx, dword [esi + eax + 0x14]
mov eax, dword [esi + eax + 0xc]
push ecx
push eax
call edi
mov eax, dword [0x41bd5c]
mov ecx, 0x41d34c
mov eax, dword [esi + eax + 0xc]
push eax
lea eax, [esp + 0x3c]
push eax
call fcn.00409420
mov eax, dword [eax]
mov ecx, 0x41d34c
push eax
mov dword [esp + 0x5c], 0xb
call fcn.00409280
lea ecx, [esp + 0x38]
mov dword [esp + 0x58], ebx
call fcn.0040cfa6
mov eax, dword [0x41bd5c]
push 0
mov ecx, dword [esi + eax + 0xc]
mov edx, dword [esi + eax + 0x10]
push ecx
push edx
call edi
mov eax, dword [0x41bd5c]
mov ecx, dword [esi + eax + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
add esi, 0x28
dec ebp
jne 0x406346
mov ecx, dword [esp + 0x50]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x4c
ret