Function at 0x4051f8
Capabilities:
Copy file
Delete file
Set file attributes
Timestomp file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffcb8
push ebx
push esi
push edi
mov ebx, dword [ebp + 0x14]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
push esi
push edi
call fcn.004cd568
add esp, 8
test eax, eax
jne 0x405225
mov eax, 1
jmp 0x4056f3
push 0x11
push edi
call fcn.00403da4
add esp, 8
mov dword [ebp - 4], eax
mov edx, dword [ebp - 4]
test edx, edx
jne 0x405248
push 0x15
push edi
call fcn.00403da4
add esp, 8
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
test ecx, ecx
jne 0x40526a
test bl, 1
je 0x405263
push 0x10
push 0x5ca0b1
push edi
push 0
call sub.USER32.dll_MessageBoxA
xor eax, eax
jmp 0x4056f3
mov edx, ebx
and edx, 1
test edx, edx
je 0x4052f8
push 0x15
push esi
call fcn.00403da4
add esp, 8
mov dword [ebp - 8], eax
lea ecx, [ebp - 8]
push ecx
call fcn.00403e40
pop ecx
test eax, eax
je 0x4052f8
lea eax, [ebp - 8]
push eax
call fcn.00403e78
pop ecx
mov dword [ebp - 8], eax
test bl, 0x10
je 0x4052af
mov eax, 1
jmp 0x4056f3
push esi
push 0x5ca0cc
lea edx, [ebp - 0x330]
push edx
call fcn.004d1ac0
add esp, 0xc
test bl, 0x20
jne 0x4052f8
lea ecx, [ebp - 0x330]
push ecx
push 0x5ca107
call fcn.0040142c
add esp, 8
test eax, eax
jne 0x4052f8
lea eax, [ebp - 4]
push eax
call fcn.00403e78
pop ecx
mov dword [ebp - 4], eax
mov eax, 1
jmp 0x4056f3
lea edx, [ebp - 4]
push edx
call fcn.00403e78
pop ecx
mov dword [ebp - 4], eax
mov ecx, ebx
and ecx, 1
test ecx, ecx
je 0x405313
call fcn.004013fc
test bl, 0x80
jne 0x40531d
test bh, 1
je 0x40538c
push esi
push edi
push 0x5ca11b
lea eax, [ebp - 0x330]
push eax
call fcn.004d1ac0
add esp, 0x10
mov edx, dword [ebp + 0x10]
test edx, edx
jne 0x405364
push 0
push 0x2204
push 0x78
push 0x26c
push 0x64
push 0x96
mov ecx, dword [ebp + 0x10]
push ecx
lea eax, [ebp - 0x330]
push eax
call fcn.0040312c
add esp, 0x20
jmp 0x40538c
push 0
push 7
push 0x48
push 0x154
push 0xc8
push 0x96
mov edx, dword [ebp + 0x10]
push edx
lea ecx, [ebp - 0x330]
push ecx
call fcn.0040312c
add esp, 0x20
test bl, 8
je 0x4054db
push 0x11
push edi
call fcn.00403da4
add esp, 8
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
test eax, eax
jne 0x4053b8
push 0x15
push edi
call fcn.00403da4
add esp, 8
mov dword [ebp - 4], eax
mov edx, dword [ebp - 4]
test edx, edx
jne 0x4053c6
xor eax, eax
jmp 0x4056f3
push 0x20
push esi
call sub.KERNEL32.dll_SetFileAttributesA
push esi
call sub.KERNEL32.dll_DeleteFileA
push 0x11
push esi
call fcn.00403da4
add esp, 8
mov dword [ebp - 8], eax
lea edx, [ebp - 8]
push edx
call fcn.00403e40
pop ecx
test eax, eax
jne 0x4053fe
push 0x15
push esi
call fcn.00403da4
add esp, 8
mov dword [ebp - 8], eax
lea ecx, [ebp - 8]
push ecx
call fcn.00403e40
pop ecx
test eax, eax
je 0x40542d
lea eax, [ebp - 8]
push eax
call fcn.00403e78
pop ecx
mov dword [ebp - 8], eax
lea edx, [ebp - 4]
push edx
call fcn.00403e78
pop ecx
mov dword [ebp - 4], eax
xor eax, eax
jmp 0x4056f3
push 0xa
push esi
call fcn.00403da4
add esp, 8
mov dword [ebp - 8], eax
mov edx, dword [ebp - 4]
push edx
call sub.LZ32.dll_LZInit
mov esi, eax
mov eax, dword [ebp - 8]
push eax
call sub.LZ32.dll_LZInit
mov edi, eax
push edi
push esi
call sub.LZ32.dll_LZCopy
test eax, eax
jge 0x40549a
push edi
call sub.LZ32.dll_LZClose
push esi
call sub.LZ32.dll_LZClose
lea eax, [ebp - 4]
push eax
call fcn.00403e78
pop ecx
mov dword [ebp - 4], eax
lea edx, [ebp - 8]
push edx
call fcn.00403e78
pop ecx
mov dword [ebp - 8], eax
test bl, 0x80
je 0x405493
mov ecx, dword [ebp + 0x10]
test ecx, ecx
jne 0x405493
call fcn.00403324
xor eax, eax
jmp 0x4056f3
push edi
call sub.LZ32.dll_LZClose
push esi
call sub.LZ32.dll_LZClose
lea edx, [ebp - 4]
push edx
call fcn.00403e78
pop ecx
mov dword [ebp - 4], eax
lea ecx, [ebp - 8]
push ecx
call fcn.00403e78
pop ecx
mov dword [ebp - 8], eax
test bl, 0x80
je 0x4054d1
mov eax, dword [ebp + 0x10]
test eax, eax
jne 0x4054d1
call fcn.00403324
mov eax, 1
jmp 0x4056f3
push 0x20
push esi
call sub.KERNEL32.dll_SetFileAttributesA
push esi
call fcn.00404c28
pop ecx
test eax, eax
jne 0x405519
call fcn.00401270
push eax
push esi
push 0x5ca134
lea edx, [ebp - 0x330]
push edx
call fcn.004d1ac0
add esp, 0x10
lea ecx, [ebp - 0x330]
push ecx
push esi
call fcn.0040581c
add esp, 8
push 0x5ca147
push 0x5ca13e
call sub.KERNEL32.dll_GetModuleHandleA
push eax
call sub.KERNEL32.dll_GetProcAddress
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x4055e6
mov dword [ebp - 0x348], 0x18
mov edx, dword [ebp + 0x10]
lea ecx, [ebp - 0x330]
mov dword [ebp - 0x340], edx
mov dword [ebp - 0x33c], edi
mov dword [ebp - 0x338], esi
mov dword [ebp - 0x334], ecx
mov dword [ebp - 0x344], ebx
push 0
lea eax, [ebp - 0x348]
push 0
push eax
push 0x405144
push esi
push edi
call dword [ebp - 0x24]
test eax, eax
jne 0x4055e6
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x78
jne 0x405597
xor edx, edx
mov dword [ebp - 0x24], edx
jmp 0x4055e6
test bl, 1
je 0x4055ce
push esi
push edi
call sub.KERNEL32.dll_GetLastError
push eax
push 0x5ca153
lea ecx, [ebp - 0x330]
push ecx
call fcn.004d1ac0
add esp, 0x14
lea eax, [ebp - 0x330]
push 0x10
push 0x5ca17e
push eax
call fcn.004011d4
add esp, 0xc
test bl, 0x80
je 0x4055df
mov edx, dword [ebp + 0x10]
test edx, edx
jne 0x4055df
call fcn.00403324
xor eax, eax
jmp 0x4056f3
mov edx, dword [ebp - 0x24]
test edx, edx
jne 0x405649
push 0
push esi
push edi
call sub.KERNEL32.dll_CopyFileA
test eax, eax
jne 0x405649
test bl, 1
je 0x405631
push esi
push edi
call sub.KERNEL32.dll_GetLastError
push eax
push 0x5ca193
lea ecx, [ebp - 0x330]
push ecx
call fcn.004d1ac0
add esp, 0x14
lea eax, [ebp - 0x330]
push 0x10
push 0x5ca1be
push eax
call fcn.004011d4
add esp, 0xc
test bl, 0x80
je 0x405642
mov edx, dword [ebp + 0x10]
test edx, edx
jne 0x405642
call fcn.00403324
xor eax, eax
jmp 0x4056f3
test bl, 1
je 0x405653
call fcn.00401400
test bl, 4
jne 0x4056bc
push 0x15
push edi
call fcn.00403da4
add esp, 8
mov dword [ebp - 4], eax
push 0x15
push esi
call fcn.00403da4
add esp, 8
mov dword [ebp - 8], eax
lea edx, [ebp - 0x20]
push edx
lea ecx, [ebp - 0x18]
push ecx
lea eax, [ebp - 0x10]
push eax
mov edx, dword [ebp - 4]
push edx
call sub.KERNEL32.dll_GetFileTime
test eax, eax
je 0x4056a2
lea ecx, [ebp - 0x20]
push ecx
lea eax, [ebp - 0x18]
push eax
lea edx, [ebp - 0x10]
push edx
mov ecx, dword [ebp - 8]
push ecx
call sub.KERNEL32.dll_SetFileTime
lea eax, [ebp - 4]
push eax
call fcn.00403e78
pop ecx
mov dword [ebp - 4], eax
lea edx, [ebp - 8]
push edx
call fcn.00403e78
pop ecx
mov dword [ebp - 8], eax
test bl, 2
je 0x4056c9
push 0x20
push esi
call sub.KERNEL32.dll_SetFileAttributesA
push esi
push edi
call fcn.00404e00
add esp, 8
test bl, 0x80
je 0x4056e4
mov ecx, dword [ebp + 0x10]
test ecx, ecx
jne 0x4056e4
call fcn.00403324
mov dword [0x4dc074], 0x628
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret