Function at 0x5988fc
Capabilities:
Copy file
Delete file

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 5
push 0
push 0
dec ecx
jne 0x598905
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov esi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
call fcn.00405164
xor eax, eax
push ebp
push 0x598bdc
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x48]
test eax, eax
je 0x598943
cmp eax, 3
jne 0x598b36
mov eax, dword [ebp - 4]
mov edi, dword [eax + 0x4c]
test edi, edi
je 0x598bc1
mov bl, 1
lea eax, [edi + 0x54]
mov edx, dword [ebp - 4]
mov edx, dword [edx + 8]
call fcn.00404d08
lea ecx, [ebp - 0xc]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x4c]
mov edx, dword [eax + 0x54]
mov eax, dword [ebp - 4]
call fcn.005990e0
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x4c]
add eax, 0x68
call fcn.00404d08
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x4c]
add eax, 0x38
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x10]
call fcn.00404d08
ret
out 0xff, al
lea edx, [ebp - 0x14]
mov eax, dword [ebp - 8]
call fcn.004113fc
push dword [ebp - 0x14]
lea edx, [ebp - 0x18]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10]
call fcn.0040cee4
push dword [ebp - 0x18]
push 0x598bf4
lea eax, [ebp - 0x10]
mov edx, 3
call fcn.00405034
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x4c]
call fcn.004b1204
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x20]
test eax, eax
je 0x5989f2
mov edx, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x4c]
call fcn.004b11f8
jmp 0x5989ff
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x4c]
mov edx, esi
call fcn.004b11f8
mov eax, dword [ebp - 4]
cmp byte [eax + 0x1c], 0
jne 0x598a40
lea edx, [ebp - 0x1c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10]
call fcn.0040c11c
mov eax, dword [ebp - 0x1c]
call fcn.0040ca40
test al, al
je 0x598a40
mov eax, dword [ebp - 4]
cmp word [eax + 0x2a], 0
je 0x598a40
push 0
mov ebx, dword [ebp - 4]
mov ecx, 0xc8
mov dl, 1
mov eax, dword [ebx + 0x2c]
call dword [ebx + 0x28]
xor ebx, ebx
test bl, bl
je 0x598b2a
mov eax, dword [ebp - 4]
add eax, 0x10
mov edx, 0x598c04
call fcn.00404f7c
xor ebx, ebx
xor eax, eax
push ebp
push 0x598ad3
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x20]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10]
call fcn.0040c11c
mov eax, dword [ebp - 0x20]
call fcn.0040ca40
test al, al
je 0x598a9e
lea edx, [ebp - 0x24]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10]
call fcn.0040c11c
mov eax, dword [ebp - 0x24]
call fcn.00405174
push eax
call sub.kernel32.dll_DeleteFileA
push 0xffff
lea edx, [ebp - 0x28]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10]
call fcn.0040c11c
mov ecx, dword [ebp - 0x28]
mov dl, 1
mov eax, dword [0x41be84]
call fcn.00421698
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x4c]
mov dword [edx + 0x18], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x598ae7
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x4c]
mov edx, dword [ebp - 4]
mov dword [eax + 0x74], edx
mov dword [eax + 0x70], 0x59868c
mov edx, dword [ebp - 4]
mov dword [eax + 0x7c], edx
mov dword [eax + 0x78], 0x5987d8
mov eax, dword [ebp - 4]
mov byte [eax + 0x1d], 1
test bl, bl
je 0x598b1f
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x4c]
call fcn.004b1160
jmp 0x598b2a
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x4c]
call fcn.004b1278
mov eax, dword [ebp - 4]
mov byte [eax + 4], 0
jmp 0x598bc1
dec eax
jne 0x598b7a
xor eax, eax
push ebp
push 0x598b70
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10]
call fcn.00405174
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
call fcn.00405174
push eax
call sub.kernel32.dll_CopyFileA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x598b7a
mov eax, dword [ebp - 4]
cmp word [eax + 0x2a], 0
je 0x598bc1
lea edx, [ebp - 0x2c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10]
call fcn.0040c11c
mov eax, dword [ebp - 0x2c]
call fcn.0040ca40
test al, al
je 0x598bb2
push 0
mov ebx, dword [ebp - 4]
mov ecx, 0xc8
mov dl, 1
mov eax, dword [ebx + 0x2c]
call dword [ebx + 0x28]
jmp 0x598bc1
push 0
mov ebx, dword [ebp - 4]
xor ecx, ecx
xor edx, edx
mov eax, dword [ebx + 0x2c]
call dword [ebx + 0x28]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x598be3
lea eax, [ebp - 0x2c]
mov edx, 0xa
call fcn.00404cd8
ret