Function at 0x408826
Capabilities:
Copy file
Delete file

Disassembly:
push ebp
lea ebp, [esp - 0x558]
sub esp, 0x5d8
mov eax, dword [0x41b9e4]
xor eax, ebp
push ebx
mov dword [ebp + 0x554], eax
mov eax, dword [ebp + 0x560]
push esi
push edi
mov ebx, edx
mov dword [ebp - 0x58], eax
lea eax, [ebp - 0x48]
mov edi, ecx
mov dword [ebp - 0x68], ebx
call fcn.00406d50
mov esi, dword [edi + 0x14]
jmp 0x40887a
push esi
push dword [ebp - 0x58]
call fcn.004091d0
test eax, eax
pop ecx
pop ecx
je 0x408c02
mov esi, dword [esi + 0x108]
test esi, esi
jne 0x408861
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x7c]
push eax
push ebx
call fcn.00408c1e
test al, al
jne 0x408897
push 2
jmp 0x408ba0
push 0x4188b8
push ebx
call fcn.00409405
pop ecx
mov esi, eax
test esi, esi
pop ecx
push 2
je 0x408ba0
push 0
push esi
call fcn.00409f8e
push esi
call fcn.0040ab6f
push esi
mov dword [ebp - 0x5c], eax
call fcn.00409464
add esp, 0x14
lea esi, [ebp + 0x33c]
call fcn.004087e0
lea esi, [ebp + 0x234]
call fcn.004087e0
lea eax, [ebp - 0x48]
call fcn.00406d50
and dword [ebp - 0x34], 0
and dword [ebp - 0x30], 0
lea eax, [ebp - 0x24]
push ebx
push eax
call fcn.00408f00
lea eax, [ebp + 0x33c]
push eax
lea eax, [ebp + 0xe1]
push eax
call fcn.00408f00
mov ecx, dword [edi + 0x10]
add esp, 0x10
lea eax, [ebp - 0x48]
call fcn.00407045
mov eax, dword [edi]
lea ecx, [ebp - 0x48]
mov dword [ebp + 0x228], eax
call fcn.00406d83
xor ebx, ebx
push 4
inc ebx
test eax, eax
pop esi
jne 0x40896e
mov eax, dword [ebp - 0x3c]
cmp eax, dword [ebp - 0x5c]
mov dword [ebp - 0x64], eax
jle 0x408969
push 0
lea eax, [ebp + 0x33c]
push eax
push dword [ebp - 0x68]
call dword [sym.imp.KERNEL32.dll_CopyFileA]
mov eax, dword [ebp - 0x5c]
push str.No_compress_n
mov dword [ebp - 0x64], eax
mov byte [ebp - 0x49], 0
call fcn.0040a96e
pop ecx
jmp 0x408992
mov byte [ebp - 0x49], bl
jmp 0x408992
cmp eax, esi
jne 0x408976
push 0xa
jmp 0x4089b7
push 0
lea eax, [ebp + 0x33c]
push eax
push dword [ebp - 0x68]
call dword [sym.imp.KERNEL32.dll_CopyFileA]
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x64], eax
mov byte [ebp - 0x49], 0
mov ecx, dword [edi + 0xc]
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp + 0x234]
add ecx, 0x22af
push eax
lea edx, [ebp + 0x33c]
call fcn.00408643
test al, al
jne 0x4089d7
push 9
mov esi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
pop edi
lea eax, [ebp + 0x33c]
push eax
call esi
lea eax, [ebp + 0x234]
push eax
call esi
mov eax, edi
jmp 0x408c04
lea eax, [ebp + 0x33c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [ebp + 0x54c]
push str.FILE
push eax
call fcn.00408f00
pop ecx
pop ecx
push esi
lea eax, [ebp + 0x54c]
push eax
mov ecx, 0x16fa
call fcn.004085fb
push dword [edi + 4]
lea eax, [ebp + 0x54c]
push esi
push ebx
push eax
call fcn.004096f1
push dword [ebp - 0x58]
lea eax, [ebp + 0x444]
push eax
call fcn.00408f00
lea eax, [ebp + 0x444]
push eax
call fcn.00408e10
push dword [edi + 4]
mov dword [ebp - 0x54], eax
xor eax, 0x29bc
push ebx
mov dword [ebp - 0x60], eax
lea eax, [ebp - 0x60]
push esi
push eax
call fcn.004096f1
mov eax, dword [ebp - 0x54]
add esp, 0x2c
push eax
lea ecx, [eax + 0xa25e]
lea eax, [ebp + 0x444]
push eax
call fcn.004085fb
push dword [edi + 4]
lea eax, [ebp + 0x444]
push dword [ebp - 0x54]
push ebx
push eax
call fcn.004096f1
add esp, 0x10
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp + 0x444]
push eax
push 0x104
push dword [ebp - 0x68]
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
lea eax, [ebp + 0x444]
push eax
call fcn.00408e10
push dword [edi + 4]
mov dword [ebp - 0x54], eax
xor eax, 0x29ac
push ebx
mov dword [ebp - 0x60], eax
lea eax, [ebp - 0x60]
push esi
push eax
call fcn.004096f1
mov eax, dword [ebp - 0x54]
add esp, 0x14
push eax
lea ecx, [eax + 0xf25e]
lea eax, [ebp + 0x444]
push eax
call fcn.004085fb
push dword [edi + 4]
lea eax, [ebp + 0x444]
push dword [ebp - 0x54]
push ebx
push eax
call fcn.004096f1
push dword [edi + 4]
lea eax, [ebp - 0x49]
push ebx
push ebx
push eax
call fcn.004096f1
push dword [edi + 4]
mov eax, dword [ebp - 0x64]
xor eax, 0x45aa
push ebx
mov dword [ebp - 0x50], eax
lea eax, [ebp - 0x50]
push esi
push eax
call fcn.004096f1
push dword [edi + 4]
mov eax, dword [ebp - 0x5c]
xor eax, 0x45aa
push ebx
mov dword [ebp - 0x50], eax
lea eax, [ebp - 0x50]
push esi
push eax
call fcn.004096f1
mov eax, dword [ebp - 0x6c]
add esp, 0x40
push dword [edi + 4]
xor eax, 0xc3d2
push ebx
mov dword [ebp - 0x50], eax
lea eax, [ebp - 0x50]
push esi
push eax
call fcn.004096f1
push dword [edi + 4]
lea eax, [ebp - 0x78]
push ebx
push esi
push eax
call fcn.004096f1
push dword [edi + 4]
lea eax, [ebp - 0x7c]
push ebx
push esi
push eax
call fcn.004096f1
push dword [edi + 4]
lea eax, [ebp - 0x70]
push ebx
push esi
push eax
call fcn.004096f1
add esp, 0x40
push dword [edi + 4]
lea eax, [ebp - 0x74]
push ebx
push esi
push eax
call fcn.004096f1
add esp, 0x10
lea eax, [ebp + 0x234]
push eax
call fcn.00408768
test al, al
lea eax, [ebp + 0x234]
push eax
jne 0x408ba3
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 9
pop eax
jmp 0x408c04
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov esi, dword [edi + 0x14]
xor ebx, ebx
cmp esi, ebx
jne 0x408bd4
push 0x10c
call fcn.00409933
push dword [ebp - 0x58]
mov dword [edi + 0x14], eax
mov dword [eax + 0x108], ebx
push dword [edi + 0x14]
call fcn.00408f00
jmp 0x408bff
mov esi, dword [eax]
lea eax, [esi + 0x108]
cmp dword [eax], ebx
jne 0x408bd2
push 0x10c
call fcn.00409933
push dword [ebp - 0x58]
mov edi, eax
push edi
mov dword [esi + 0x108], edi
call fcn.00408f00
mov dword [edi + 0x108], ebx
add esp, 0xc
xor eax, eax
mov ecx, dword [ebp + 0x554]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00411ba7
add ebp, 0x558
leave
ret 4