Function at 0x405230
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.004d30a0
add esp, 8
test eax, eax
jne 0x40525d
mov eax, 1
jmp 0x405738
push 0x11
push edi
call fcn.00403dc0
add esp, 8
mov dword [ebp - 4], eax
mov edx, dword [ebp - 4]
test edx, edx
jne 0x405280
push 0x15
push edi
call fcn.00403dc0
add esp, 8
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
test ecx, ecx
jne 0x4052a2
test bl, 1
je 0x40529b
push 0x10
push 0x5e45fe
push edi
push 0
call sub.USER32.dll_MessageBoxA
xor eax, eax
jmp 0x405738
mov edx, ebx
and edx, 1
test edx, edx
je 0x405330
push 0x15
push esi
call fcn.00403dc0
add esp, 8
mov dword [ebp - 8], eax
lea ecx, [ebp - 8]
push ecx
call fcn.00403e5c
pop ecx
test eax, eax
je 0x405330
lea eax, [ebp - 8]
push eax
call fcn.00403e94
pop ecx
mov dword [ebp - 8], eax
test bl, 0x10
je 0x4052e7
mov eax, 1
jmp 0x405738
push esi
push 0x5e4619
lea edx, [ebp - 0x330]
push edx
call fcn.004d75f8
add esp, 0xc
test bl, 0x20
jne 0x405330
lea ecx, [ebp - 0x330]
push ecx
push 0x5e4654
call fcn.00401454
add esp, 8
test eax, eax
jne 0x405330
lea eax, [ebp - 4]
push eax
call fcn.00403e94
pop ecx
mov dword [ebp - 4], eax
mov eax, 1
jmp 0x405738
lea edx, [ebp - 4]
push edx
call fcn.00403e94
pop ecx
mov dword [ebp - 4], eax
mov ecx, ebx
and ecx, 1
test ecx, ecx
je 0x40534b
call fcn.00401424
test bl, 0x80
jne 0x405355
test bh, 1
je 0x4053c4
push esi
push edi
push 0x5e4668
lea eax, [ebp - 0x330]
push eax
call fcn.004d75f8
add esp, 0x10
mov edx, dword [ebp + 0x10]
test edx, edx
jne 0x40539c
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.00403134
add esp, 0x20
jmp 0x4053c4
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.00403134
add esp, 0x20
test bl, 8
je 0x405513
push 0x11
push edi
call fcn.00403dc0
add esp, 8
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
test eax, eax
jne 0x4053f0
push 0x15
push edi
call fcn.00403dc0
add esp, 8
mov dword [ebp - 4], eax
mov edx, dword [ebp - 4]
test edx, edx
jne 0x4053fe
xor eax, eax
jmp 0x405738
push 0x20
push esi
call sub.KERNEL32.dll_SetFileAttributesA
push esi
call sub.KERNEL32.dll_DeleteFileA
push 0x11
push esi
call fcn.00403dc0
add esp, 8
mov dword [ebp - 8], eax
lea edx, [ebp - 8]
push edx
call fcn.00403e5c
pop ecx
test eax, eax
jne 0x405436
push 0x15
push esi
call fcn.00403dc0
add esp, 8
mov dword [ebp - 8], eax
lea ecx, [ebp - 8]
push ecx
call fcn.00403e5c
pop ecx
test eax, eax
je 0x405465
lea eax, [ebp - 8]
push eax
call fcn.00403e94
pop ecx
mov dword [ebp - 8], eax
lea edx, [ebp - 4]
push edx
call fcn.00403e94
pop ecx
mov dword [ebp - 4], eax
xor eax, eax
jmp 0x405738
push 0xa
push esi
call fcn.00403dc0
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 0x4054d2
push edi
call sub.LZ32.dll_LZClose
push esi
call sub.LZ32.dll_LZClose
lea eax, [ebp - 4]
push eax
call fcn.00403e94
pop ecx
mov dword [ebp - 4], eax
lea edx, [ebp - 8]
push edx
call fcn.00403e94
pop ecx
mov dword [ebp - 8], eax
test bl, 0x80
je 0x4054cb
mov ecx, dword [ebp + 0x10]
test ecx, ecx
jne 0x4054cb
call fcn.0040332c
xor eax, eax
jmp 0x405738
push edi
call sub.LZ32.dll_LZClose
push esi
call sub.LZ32.dll_LZClose
lea edx, [ebp - 4]
push edx
call fcn.00403e94
pop ecx
mov dword [ebp - 4], eax
lea ecx, [ebp - 8]
push ecx
call fcn.00403e94
pop ecx
mov dword [ebp - 8], eax
test bl, 0x80
je 0x405509
mov eax, dword [ebp + 0x10]
test eax, eax
jne 0x405509
call fcn.0040332c
mov eax, 1
jmp 0x405738
push 0x20
push esi
call sub.KERNEL32.dll_SetFileAttributesA
push esi
call fcn.00404c44
pop ecx
test eax, eax
jne 0x405564
call sub.KERNEL32.dll_GetLastError
push eax
call fcn.00401298
push eax
push esi
push 0x5e4681
lea edx, [ebp - 0x330]
push edx
call fcn.004d75f8
add esp, 0x14
lea ecx, [ebp - 0x330]
push ecx
push esi
call fcn.00405860
add esp, 8
lea eax, [ebp - 0x330]
push eax
call fcn.00404c44
pop ecx
push 0x5e469b
push 0x5e4692
call sub.KERNEL32.dll_GetModuleHandleA
push eax
call sub.KERNEL32.dll_GetProcAddress
mov dword [ebp - 0x24], eax
mov edx, dword [ebp - 0x24]
test edx, edx
je 0x405632
mov dword [ebp - 0x348], 0x18
mov ecx, dword [ebp + 0x10]
lea eax, [ebp - 0x330]
mov dword [ebp - 0x340], ecx
mov dword [ebp - 0x33c], edi
mov dword [ebp - 0x338], esi
mov dword [ebp - 0x334], eax
mov dword [ebp - 0x344], ebx
push 0
lea edx, [ebp - 0x348]
push 0
push edx
push 0x40517c
push esi
push edi
call dword [ebp - 0x24]
test eax, eax
jne 0x40568e
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x78
je 0x40568e
test bl, 1
je 0x40561a
push esi
push edi
call sub.KERNEL32.dll_GetLastError
push eax
push 0x5e46a7
lea ecx, [ebp - 0x330]
push ecx
call fcn.004d75f8
add esp, 0x14
lea eax, [ebp - 0x330]
push 0x10
push 0x5e46d2
push eax
call fcn.004011e4
add esp, 0xc
test bl, 0x80
je 0x40562b
mov edx, dword [ebp + 0x10]
test edx, edx
jne 0x40562b
call fcn.0040332c
xor eax, eax
jmp 0x405738
push 0
push esi
push edi
call sub.KERNEL32.dll_CopyFileA
test eax, eax
jne 0x40568e
test bl, 1
je 0x405676
push esi
push edi
call sub.KERNEL32.dll_GetLastError
push eax
push 0x5e46e7
lea edx, [ebp - 0x330]
push edx
call fcn.004d75f8
add esp, 0x14
lea ecx, [ebp - 0x330]
push 0x10
push 0x5e4712
push ecx
call fcn.004011e4
add esp, 0xc
test bl, 0x80
je 0x405687
mov eax, dword [ebp + 0x10]
test eax, eax
jne 0x405687
call fcn.0040332c
xor eax, eax
jmp 0x405738
test bl, 1
je 0x405698
call fcn.00401428
test bl, 4
jne 0x405701
push 0x15
push edi
call fcn.00403dc0
add esp, 8
mov dword [ebp - 4], eax
push 0x15
push esi
call fcn.00403dc0
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 0x4056e7
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.00403e94
pop ecx
mov dword [ebp - 4], eax
lea edx, [ebp - 8]
push edx
call fcn.00403e94
pop ecx
mov dword [ebp - 8], eax
test bl, 2
je 0x40570e
push 0x20
push esi
call sub.KERNEL32.dll_SetFileAttributesA
push esi
push edi
call fcn.00404e38
add esp, 8
test bl, 0x80
je 0x405729
mov ecx, dword [ebp + 0x10]
test ecx, ecx
jne 0x405729
call fcn.0040332c
mov dword [0x4e2074], 0x628
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret