Function at 0x45f160
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 8
push 0
push 0
dec ecx
jne 0x45f169
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 4], edx
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.00403e48
xor eax, eax
push ebp
push 0x45f3e0
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 5], 0
mov byte [esi], 0
lea eax, [ebp - 0xc]
mov edx, dword [ebx*4 + 0x463928]
call fcn.00403aac
lea eax, [ebp - 0x10]
mov edx, dword [ebx*4 + 0x463958]
call fcn.00403aac
lea eax, [ebp - 0x14]
mov edx, dword [ebx*4 + 0x463940]
call fcn.00403aac
lea eax, [ebp - 0x18]
mov edx, dword [ebp - 0xc]
call fcn.00403aac
cmp byte [ebp + 8], 0
je 0x45f1ed
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x18]
call fcn.0045f098
test al, al
je 0x45f3b0
jmp 0x45f21e
push 0
mov eax, dword [ebp - 0x10]
call fcn.00403e58
push eax
lea eax, [ebp - 0x34]
mov ecx, dword [ebp - 0x18]
mov edx, 0x45f3fc
call fcn.00403ce0
mov eax, dword [ebp - 0x34]
call fcn.00403e58
push eax
call sub.kernel32.dll_CopyFileA
test eax, eax
je 0x45f3b0
xor eax, eax
push ebp
push 0x45f378
push dword fs:[eax]
mov dword fs:[eax], esp
lea ecx, [ebp - 4]
mov edx, ebx
mov eax, dword [ebp - 0x10]
call fcn.00455740
test al, al
jne 0x45f261
lea eax, [ebp - 0x38]
mov ecx, dword [ebp - 4]
mov edx, 0x45f408
call fcn.00403ce0
mov ecx, dword [ebp - 0x38]
mov dl, 1
mov eax, dword [0x4072bc]
call fcn.0040b090
call fcn.004034c8
lea eax, [ebp - 0x30]
mov edx, dword [ebp - 4]
call fcn.00453e2c
test eax, eax
je 0x45f294
lea eax, [ebp - 0x3c]
mov ecx, dword [ebp - 4]
mov edx, 0x45f428
call fcn.00403ce0
mov ecx, dword [ebp - 0x3c]
mov dl, 1
mov eax, dword [0x4072bc]
call fcn.0040b090
call fcn.004034c8
push 0
mov eax, dword [ebp - 0x14]
call fcn.00403e58
push eax
mov eax, dword [ebp - 0x10]
call fcn.00403e58
push eax
call sub.kernel32.dll_CopyFileA
mov eax, ebx
sub eax, 1
je 0x45f2b9
sub eax, 2
jne 0x45f2cb
call fcn.00409314
fcomp qword [ebp - 0x28]
fnstsw ax
sahf
jae 0x45f2cb
mov byte [esi], 1
jmp 0x45f315
push 0
mov eax, dword [ebp - 0xc]
call fcn.00403e58
push eax
mov eax, dword [ebp - 0x14]
call fcn.00403e58
push eax
call sub.kernel32.dll_CopyFileA
mov ecx, 0x45f444
mov dl, 1
mov eax, dword [0x452b10]
call fcn.00452bb8
mov esi, eax
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebx*4 + 0x463970]
mov edx, 0x45f458
mov eax, esi
mov edi, dword [eax]
call dword [edi + 4]
mov eax, esi
call fcn.00402d70
mov ecx, 0x45f444
mov dl, 1
mov eax, dword [0x452b10]
call fcn.00452bb8
mov esi, eax
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebx*4 + 0x463970]
mov edx, 0x45f470
mov eax, esi
mov edi, dword [eax]
call dword [edi + 4]
mov eax, esi
call fcn.00402d70
mov eax, dword [ebp - 0x10]
call fcn.0040835c
mov ecx, dword [ebx*4 + 0x463928]
lea eax, [ebp - 0x40]
mov edx, 0x45f484
call fcn.00403ce0
mov eax, dword [ebp - 0x40]
call fcn.004539dc
mov byte [ebp - 5], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x45f3b0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45f3e7
lea eax, [ebp - 0x44]
mov edx, 5
call fcn.00403a38
lea eax, [ebp - 0x18]
mov edx, 4
call fcn.00403a38
lea eax, [ebp - 4]
call fcn.00403a14
ret