Function at 0x565a30
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov esi, edx
mov edi, eax
xor eax, eax
push ebp
push 0x565c8c
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
lea eax, [ebp - 8]
mov edx, dword [esi]
call fcn.004044cc
mov eax, dword [edi + 0x2f8]
add eax, 0x60
mov edx, dword [ebp - 4]
call fcn.00404488
cmp dword [ebp - 8], 0
je 0x565abc
mov eax, dword [ebp - 8]
cmp byte [eax], 0x5c
je 0x565a96
lea eax, [ebp - 8]
mov ecx, dword [ebp - 8]
mov edx, 0x565ca4
call fcn.00404740
lea edx, [ebp - 0x14]
mov eax, dword [ebp - 8]
call fcn.00408b50
mov ecx, dword [ebp - 0x14]
mov edx, dword [0x5a3304]
mov edx, dword [edx]
mov eax, dword [edi + 0x2f8]
add eax, 0x78
call fcn.00404740
jmp 0x565add
mov edx, dword [0x5a3304]
mov edx, dword [edx]
mov eax, dword [edi + 0x2f8]
call fcn.00438218
mov eax, dword [edi + 0x2f8]
add eax, 0x78
call fcn.00404434
mov eax, dword [edi + 0x2f8]
mov edx, dword [eax]
call dword [edx + 0x3c]
test al, al
je 0x565c71
lea edx, [ebp - 0xc]
mov eax, dword [edi + 0x2f8]
call fcn.004381b0
lea ecx, [ebp - 8]
mov eax, dword [0x5a3304]
mov eax, dword [eax]
mov edx, dword [ebp - 0xc]
call fcn.0051de44
cmp dword [ebp - 8], 0
jne 0x565c65
push 0x24
mov ecx, 0x565ca8
mov edx, 0x565cb4
mov eax, dword [0x5a311c]
mov eax, dword [eax]
call fcn.004a2dfc
cmp eax, 6
jne 0x565c71
lea edx, [ebp - 8]
mov ecx, 0x565d1c
mov eax, edi
call fcn.0056600c
test al, al
je 0x565c71
cmp dword [ebp - 8], 0
je 0x565b81
mov eax, dword [ebp - 8]
call fcn.004046f4
mov edx, dword [ebp - 8]
cmp byte [edx + eax - 1], 0x5c
jne 0x565b81
mov eax, dword [ebp - 8]
call fcn.004046f4
mov edx, eax
lea eax, [ebp - 8]
mov ecx, 1
call fcn.00404994
mov eax, dword [ebp - 8]
mov edx, 0x565ca4
call fcn.00404840
jne 0x565b98
lea eax, [ebp - 8]
call fcn.00404434
lea edx, [ebp - 0x10]
mov eax, dword [ebp - 0xc]
call fcn.00409810
cmp dword [ebp - 0x10], 0
je 0x565bc1
mov eax, dword [ebp - 0x10]
cmp byte [eax], 0x5c
je 0x565bc1
lea eax, [ebp - 0x10]
mov ecx, dword [ebp - 0x10]
mov edx, 0x565ca4
call fcn.00404740
lea eax, [ebp - 8]
mov edx, dword [ebp - 0x10]
call fcn.004046fc
mov edx, dword [0x5a3304]
mov edx, dword [edx]
lea eax, [ebp - 0x18]
mov ecx, dword [ebp - 8]
call fcn.00404740
mov eax, dword [ebp - 0x18]
call fcn.004093a4
test al, al
je 0x565c27
push 0x24
push 0x565d60
push dword [ebp - 0x10]
push 0x565d6c
lea eax, [ebp - 0x1c]
mov edx, 3
call fcn.004047b4
mov eax, dword [ebp - 0x1c]
call fcn.004048f4
mov edx, eax
mov ecx, 0x565d8c
mov eax, dword [0x5a311c]
mov eax, dword [eax]
call fcn.004a2dfc
cmp eax, 6
jne 0x565c71
push 0
mov edx, dword [0x5a3304]
mov edx, dword [edx]
lea eax, [ebp - 0x20]
mov ecx, dword [ebp - 8]
call fcn.00404740
mov eax, dword [ebp - 0x20]
call fcn.004048f4
push eax
mov eax, dword [ebp - 0xc]
call fcn.004048f4
push eax
call sub.kernel32.dll_CopyFileA
test eax, eax
je 0x565c71
mov eax, esi
mov edx, dword [ebp - 8]
call fcn.00404488
mov bl, 1
jmp 0x565c71
mov eax, esi
mov edx, dword [ebp - 8]
call fcn.00404488
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x565c93
lea eax, [ebp - 0x20]
mov edx, 7
call fcn.00404458
ret