Function at 0x45e100
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0xc
push 0
push 0
dec ecx
jne 0x45e108
push ebx
push esi
push edi
mov ebx, eax
xor eax, eax
push ebp
push 0x45e4ca
push dword fs:[eax]
mov dword fs:[eax], esp
xor edx, edx
push ebp
push 0x45e4a5
push dword fs:[edx]
mov dword fs:[edx], esp
lea eax, [ebp - 0x18]
call fcn.0045d4d8
mov ecx, dword [ebp - 0x18]
lea eax, [ebp - 0x14]
mov edx, 0x45e4e0
call fcn.00404e34
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 0x10]
call fcn.004089d8
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 0xc]
call fcn.0045bdf4
mov eax, dword [ebp - 0xc]
call fcn.00404fac
push eax
push 0
push 0
call fcn.00407138
call sub.kernel32.dll_GetLastError
cmp eax, 0xb7
jne 0x45e181
call fcn.0045df28
lea edx, [ebp - 0x20]
mov eax, dword [0x465b0c]
mov eax, dword [eax]
call fcn.00459810
mov eax, dword [ebp - 0x20]
lea edx, [ebp - 0x1c]
call fcn.004095cc
mov eax, dword [ebp - 0x1c]
mov edx, 0x45e4f0
call fcn.00408bf8
test al, al
jne 0x45e1e9
push 0
lea eax, [ebp - 0x24]
call fcn.0045d84c
lea eax, [ebp - 0x24]
mov edx, 0x45e4f0
call fcn.00404de8
mov eax, dword [ebp - 0x24]
call fcn.00404fac
push eax
lea edx, [ebp - 0x28]
mov eax, dword [0x465b0c]
mov eax, dword [eax]
call fcn.00459810
mov eax, dword [ebp - 0x28]
call fcn.00404fac
push eax
call sub.kernel32.dll_CopyFileA
lea edx, [ebp - 0x30]
mov eax, dword [0x465b0c]
mov eax, dword [eax]
call fcn.00459810
mov eax, dword [ebp - 0x30]
lea edx, [ebp - 0x2c]
call fcn.004095cc
mov eax, dword [ebp - 0x2c]
mov edx, 0x45e510
call fcn.00408bf8
test al, al
jne 0x45e251
push 0
lea eax, [ebp - 0x34]
call fcn.0045d84c
lea eax, [ebp - 0x34]
mov edx, 0x45e510
call fcn.00404de8
mov eax, dword [ebp - 0x34]
call fcn.00404fac
push eax
lea edx, [ebp - 0x38]
mov eax, dword [0x465b0c]
mov eax, dword [eax]
call fcn.00459810
mov eax, dword [ebp - 0x38]
call fcn.00404fac
push eax
call sub.kernel32.dll_CopyFileA
push 0
lea eax, [ebp - 0x40]
call fcn.0045d84c
push dword [ebp - 0x40]
lea eax, [ebp - 0x44]
push eax
mov eax, dword [ebx + 0x388]
mov ecx, 0x10
mov edx, 0x11
call fcn.00405014
push dword [ebp - 0x44]
push 0x45e52c
lea eax, [ebp - 0x3c]
mov edx, 3
call fcn.00404eb0
mov eax, dword [ebp - 0x3c]
call fcn.00404fac
push eax
lea edx, [ebp - 0x48]
mov eax, dword [0x465b0c]
mov eax, dword [eax]
call fcn.00459810
mov eax, dword [ebp - 0x48]
call fcn.00404fac
push eax
call sub.kernel32.dll_CopyFileA
lea eax, [ebp - 8]
push eax
mov eax, dword [ebx + 0x388]
mov ecx, 1
mov edx, 1
call fcn.00405014
xor esi, esi
or edx, 0xffffffff
mov eax, dword [ebp - 8]
call fcn.00408fcc
test eax, eax
jl 0x45e2e1
mov esi, 1
mov eax, esi
sub eax, 1
jb 0x45e2f3
je 0x45e3a7
jmp 0x45e444
lea eax, [ebp - 4]
mov edx, 0x45e53c
call fcn.00404bb4
mov eax, dword [ebp - 8]
mov edx, 0x45e550
call fcn.00404f44
je 0x45e31e
mov eax, dword [ebp - 8]
mov edx, 0x45e55c
call fcn.00404f44
jne 0x45e32d
lea eax, [ebp - 4]
mov edx, 0x45e568
call fcn.00404bb4
jmp 0x45e358
mov eax, dword [ebp - 8]
mov edx, 0x45e57c
call fcn.00404f44
je 0x45e34b
mov eax, dword [ebp - 8]
mov edx, 0x45e588
call fcn.00404f44
jne 0x45e358
lea eax, [ebp - 4]
mov edx, 0x45e594
call fcn.00404bb4
lea eax, [ebp - 0x4c]
call fcn.0045d84c
lea eax, [ebp - 0x4c]
mov edx, 0x45e4f0
call fcn.00404de8
mov edx, dword [ebp - 0x4c]
mov eax, dword [ebp - 4]
call fcn.0045de44
test al, al
jne 0x45e444
lea eax, [ebp - 0x50]
call fcn.0045d84c
lea eax, [ebp - 0x50]
mov edx, 0x45e4f0
call fcn.00404de8
mov edx, dword [ebp - 0x50]
mov cl, 1
mov eax, dword [ebp - 4]
call fcn.0045d8d4
jmp 0x45e444
lea eax, [ebp - 4]
mov edx, 0x45e5a8
call fcn.00404bb4
or edx, 0xffffffff
mov eax, dword [ebp - 8]
call fcn.00408fcc
mov ecx, 3
cdq
idiv ecx
dec edx
jne 0x45e3d9
lea eax, [ebp - 4]
mov edx, 0x45e5c0
call fcn.00404bb4
jmp 0x45e3fe
or edx, 0xffffffff
mov eax, dword [ebp - 8]
call fcn.00408fcc
mov ecx, 3
cdq
idiv ecx
cmp edx, 2
jne 0x45e3fe
lea eax, [ebp - 4]
mov edx, 0x45e5d8
call fcn.00404bb4
lea eax, [ebp - 0x54]
call fcn.0045d84c
lea eax, [ebp - 0x54]
mov edx, 0x45e510
call fcn.00404de8
mov edx, dword [ebp - 0x54]
mov cl, 1
mov eax, dword [ebp - 4]
call fcn.0045d8d4
test al, al
jne 0x45e444
lea eax, [ebp - 0x58]
call fcn.0045d84c
lea eax, [ebp - 0x58]
mov edx, 0x45e510
call fcn.00404de8
mov edx, dword [ebp - 0x58]
mov eax, dword [ebp - 4]
call fcn.0045de44
dec esi
jne 0x45e472
push 0x45e5ec
lea eax, [ebp - 0x5c]
call fcn.0045d84c
lea eax, [ebp - 0x5c]
mov edx, 0x45e510
call fcn.00404de8
mov ecx, dword [ebp - 0x5c]
mov edx, 0x45e660
mov eax, ebx
call fcn.0045e6d4
jmp 0x45e49b
push 0x45e680
lea eax, [ebp - 0x60]
call fcn.0045d84c
lea eax, [ebp - 0x60]
mov edx, 0x45e4f0
call fcn.00404de8
mov ecx, dword [ebp - 0x60]
mov edx, 0x45e6bc
mov eax, ebx
call fcn.0045e6d4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x45e4af
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45e4d1
lea eax, [ebp - 0x60]
mov edx, 0x18
call fcn.00404b40
ret