Function at 0x565574
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 0x5657d0
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 0x565600
mov eax, dword [ebp - 8]
cmp byte [eax], 0x5c
je 0x5655da
lea eax, [ebp - 8]
mov ecx, dword [ebp - 8]
mov edx, 0x5657e8
call fcn.00404740
lea edx, [ebp - 0x14]
mov eax, dword [ebp - 8]
call fcn.00408b50
mov ecx, dword [ebp - 0x14]
mov edx, dword [0x5a2304]
mov edx, dword [edx]
mov eax, dword [edi + 0x2f8]
add eax, 0x78
call fcn.00404740
jmp 0x565621
mov edx, dword [0x5a2304]
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 0x5657b5
lea edx, [ebp - 0xc]
mov eax, dword [edi + 0x2f8]
call fcn.004381b0
lea ecx, [ebp - 8]
mov eax, dword [0x5a2304]
mov eax, dword [eax]
mov edx, dword [ebp - 0xc]
call fcn.00535224
cmp dword [ebp - 8], 0
jne 0x5657a9
push 0x24
mov ecx, 0x5657ec
mov edx, 0x5657f8
mov eax, dword [0x5a211c]
mov eax, dword [eax]
call fcn.004a2dfc
cmp eax, 6
jne 0x5657b5
lea edx, [ebp - 8]
mov ecx, 0x565860
mov eax, edi
call fcn.00565b50
test al, al
je 0x5657b5
cmp dword [ebp - 8], 0
je 0x5656c5
mov eax, dword [ebp - 8]
call fcn.004046f4
mov edx, dword [ebp - 8]
cmp byte [edx + eax - 1], 0x5c
jne 0x5656c5
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, 0x5657e8
call fcn.00404840
jne 0x5656dc
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 0x565705
mov eax, dword [ebp - 0x10]
cmp byte [eax], 0x5c
je 0x565705
lea eax, [ebp - 0x10]
mov ecx, dword [ebp - 0x10]
mov edx, 0x5657e8
call fcn.00404740
lea eax, [ebp - 8]
mov edx, dword [ebp - 0x10]
call fcn.004046fc
mov edx, dword [0x5a2304]
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 0x56576b
push 0x24
push 0x5658a4
push dword [ebp - 0x10]
push 0x5658b0
lea eax, [ebp - 0x1c]
mov edx, 3
call fcn.004047b4
mov eax, dword [ebp - 0x1c]
call fcn.004048f4
mov edx, eax
mov ecx, 0x5658d0
mov eax, dword [0x5a211c]
mov eax, dword [eax]
call fcn.004a2dfc
cmp eax, 6
jne 0x5657b5
push 0
mov edx, dword [0x5a2304]
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 0x5657b5
mov eax, esi
mov edx, dword [ebp - 8]
call fcn.00404488
mov bl, 1
jmp 0x5657b5
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 0x5657d7
lea eax, [ebp - 0x20]
mov edx, 7
call fcn.00404458
ret