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

Disassembly:
push 0xffffffffffffffff
push 0x42ab4b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x328
push ebx
push ebp
push esi
mov esi, ecx
push edi
xor ebx, ebx
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x125]
mov byte [esp + 0x124], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x21]
mov byte [esp + 0x20], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [0x435654]
mov dword [esp + 0x18], ebx
mov dword [esp + 0x14], eax
mov dword [esp + 0x340], 1
mov dword [esp + 0x10], eax
mov edi, dword [esp + 0x358]
mov ebp, dword [esp + 0x354]
cmp edi, ebx
mov byte [esp + 0x340], 2
jne 0x40c9b9
mov edi, ebp
mov ecx, dword [esp + 0x34c]
lea eax, [esp + 0x124]
push eax
push ebp
push ecx
call fcn.00406200
lea edx, [esp + 0x130]
push edx
call fcn.004056e0
add esp, 0x10
test eax, eax
jne 0x40ca6e
lea eax, [esp + 0x124]
push eax
call fcn.004061d0
push eax
mov dword [esp + 0x24], eax
call fcn.004056e0
add esp, 8
test eax, eax
jne 0x40ca5b
mov cx, word [esi + 0x4d6]
mov edx, dword [esi + 0x4d0]
push ebp
push 0xe
push ecx
push edx
call fcn.00406fa0
add esp, 0xc
push eax
lea eax, [esp + 0x18]
push eax
call fcn.00420183
mov ecx, dword [esp + 0x1c]
add esp, 0xc
push ecx
push 2
mov ecx, esi
call fcn.0040cdb0
mov esi, dword [esp + 0x348]
push 0x438904
mov ecx, esi
call fcn.00424c85
mov dword [esp + 0x18], 1
jmp 0x40ccb2
mov edx, dword [esp + 0x1c]
lea eax, [esp + 0x124]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov eax, dword [esp + 0x350]
cmp byte [eax], bl
jne 0x40cad4
lea ecx, [esp + 0x1c]
push ecx
mov ecx, esi
call fcn.0040ffd0
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x344], 3
call fcn.00424d04
lea ecx, [esp + 0x1c]
mov byte [esp + 0x340], 2
call fcn.00424c17
mov edx, dword [esp + 0x14]
push 0x438904
push edx
call fcn.00414977
add esp, 8
test eax, eax
je 0x40cc90
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x20]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
jmp 0x40cae3
lea edx, [esp + 0x20]
push edx
push edi
push eax
call fcn.00406200
add esp, 0xc
lea eax, [esp + 0x2b0]
push ebx
lea ecx, [esp + 0x128]
push eax
push ecx
call sub.LZ32.dll_LZOpenFileA
mov edi, eax
cmp edi, ebx
jge 0x40cb3a
mov dx, word [esi + 0x4d6]
mov eax, dword [esi + 0x4d0]
push ebp
push 0x11
push edx
push eax
call fcn.00406fa0
add esp, 0xc
lea ecx, [esp + 0x14]
push eax
push ecx
call fcn.00420183
mov edx, dword [esp + 0x1c]
add esp, 0xc
mov ecx, esi
push edx
push 6
call fcn.0040cdb0
jmp 0x40cc0c
lea eax, [esp + 0x228]
push 0x1000
lea ecx, [esp + 0x24]
push eax
push ecx
call sub.LZ32.dll_LZOpenFileA
mov ebp, eax
cmp ebp, ebx
jge 0x40cbb8
mov edx, dword [esp + 0x354]
mov ax, word [esi + 0x4d6]
mov ecx, dword [esi + 0x4d0]
push edx
push 0x11
push eax
push ecx
call fcn.00406fa0
add esp, 0xc
lea edx, [esp + 0x14]
push eax
push edx
call fcn.00420183
mov eax, dword [esp + 0x1c]
add esp, 0xc
mov ecx, esi
push eax
push 6
call fcn.0040cdb0
push edi
call sub.LZ32.dll_LZClose
mov eax, dword [esp + 0x14]
cmp dword [eax - 8], ebx
jne 0x40cc90
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0x438904
jmp 0x40cc9c
push ebp
push edi
call sub.LZ32.dll_LZCopy
cmp eax, ebx
jge 0x40cc23
mov ecx, dword [esp + 0x354]
mov dx, word [esi + 0x4d6]
mov eax, dword [esi + 0x4d0]
push ecx
push 0x11
push edx
push eax
call fcn.00406fa0
add esp, 0xc
lea ecx, [esp + 0x14]
push eax
push ecx
call fcn.00420183
mov edx, dword [esp + 0x1c]
add esp, 0xc
mov ecx, esi
push edx
push 6
call fcn.0040cdb0
push edi
call sub.LZ32.dll_LZClose
push ebp
call sub.LZ32.dll_LZClose
mov eax, dword [esp + 0x14]
cmp dword [eax - 8], ebx
jne 0x40cc90
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0x438904
jmp 0x40cc9c
push edi
call sub.LZ32.dll_LZClose
push ebp
call sub.LZ32.dll_LZClose
lea eax, [esp + 0x20]
push 0x80
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
cmp eax, ebx
jne 0x40cc97
mov ecx, dword [esp + 0x354]
mov dx, word [esi + 0x4d6]
mov eax, dword [esi + 0x4d0]
push ecx
push 0x11
push edx
push eax
call fcn.00406fa0
add esp, 0xc
lea ecx, [esp + 0x14]
push eax
push ecx
call fcn.00420183
mov edx, dword [esp + 0x1c]
add esp, 0xc
mov ecx, esi
push edx
push 6
call fcn.0040cdb0
mov eax, dword [esp + 0x14]
cmp dword [eax - 8], ebx
je 0x40cc90
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0x438904
jmp 0x40cc9c
lea eax, [esp + 0x20]
push eax
mov esi, dword [esp + 0x34c]
mov ecx, esi
call fcn.00424c85
mov dword [esp + 0x18], 1
lea ecx, [esp + 0x10]
mov byte [esp + 0x340], 1
call fcn.00424c17
lea ecx, [esp + 0x14]
mov byte [esp + 0x340], bl
call fcn.00424c17
mov ecx, dword [esp + 0x338]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x334
ret 0x14