Function at 0x4130c0
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x19
push 0
push 0
dec ecx
jne 0x4130c8
push ecx
push ebx
mov byte [ebp - 5], dl
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x413640
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
lea edx, [ebp - 0x38]
xor eax, eax
call fcn.00402cd0
mov eax, dword [ebp - 0x38]
lea edx, [ebp - 0x34]
call fcn.004076ac
mov eax, dword [ebp - 0x34]
lea edx, [ebp - 0xc]
call fcn.004136f8
lea eax, [ebp - 0x10]
call fcn.00412fa0
lea edx, [ebp - 0x3c]
mov eax, 0x413658
call fcn.00413748
push dword [ebp - 0x3c]
lea edx, [ebp - 0x40]
mov eax, 0x413664
call fcn.00413748
push dword [ebp - 0x40]
lea edx, [ebp - 0x44]
mov eax, 0x413670
call fcn.00413748
push dword [ebp - 0x44]
lea eax, [ebp - 0x20]
mov edx, 3
call fcn.00404200
lea edx, [ebp - 0x48]
mov eax, 0x413680
call fcn.00413748
mov eax, dword [ebp - 0x48]
push eax
lea edx, [ebp - 0x4c]
mov eax, 0x413690
call fcn.00413748
mov edx, dword [ebp - 0x4c]
lea eax, [ebp - 0x24]
pop ecx
call fcn.0040418c
lea edx, [ebp - 0x50]
mov eax, 0x4136a4
call fcn.00413748
mov eax, dword [ebp - 0x50]
push eax
lea edx, [ebp - 0x54]
mov eax, 0x413658
call fcn.00413748
mov edx, dword [ebp - 0x54]
lea eax, [ebp - 0x28]
pop ecx
call fcn.0040418c
lea edx, [ebp - 0x58]
mov eax, 0x413680
call fcn.00413748
mov eax, dword [ebp - 0x58]
push eax
lea edx, [ebp - 0x5c]
mov eax, 0x4136b4
call fcn.00413748
mov edx, dword [ebp - 0x5c]
lea eax, [ebp - 0x2c]
pop ecx
call fcn.0040418c
lea edx, [ebp - 0x60]
mov eax, 0x4136c8
call fcn.00413748
mov eax, dword [ebp - 0x60]
push eax
lea edx, [ebp - 0x64]
mov eax, 0x4136d8
call fcn.00413748
mov edx, dword [ebp - 0x64]
lea eax, [ebp - 0x30]
pop ecx
call fcn.0040418c
lea eax, [ebp - 0x68]
mov ecx, dword [ebp - 0x30]
mov edx, dword [ebp - 0x10]
call fcn.0040418c
mov eax, dword [ebp - 0x68]
call fcn.00407514
test al, al
je 0x41331a
push 0
lea eax, [ebp - 0x6c]
mov ecx, dword [ebp - 0x30]
mov edx, dword [ebp - 0x10]
call fcn.0040418c
mov ecx, dword [ebp - 0x6c]
mov dl, 1
mov eax, dword [0x40fdac]
call fcn.00411de0
mov dword [ebp - 0x14], eax
xor eax, eax
push ebp
push 0x41327b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
call fcn.00402994
mov dword [ebp - 0x18], eax
mov edx, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x14]
call fcn.00411cac
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x413282
mov eax, dword [ebp - 0x14]
call fcn.004033bc
ret
lea eax, [ebp - 0x78]
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x10]
call fcn.0040418c
mov eax, dword [ebp - 0x78]
call fcn.00407514
test al, al
je 0x413363
lea eax, [ebp - 0x7c]
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ebp - 0xc]
call fcn.0040418c
mov eax, dword [ebp - 0x7c]
push eax
lea eax, [ebp - 0x80]
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x10]
call fcn.0040418c
mov eax, dword [ebp - 0x80]
pop edx
call fcn.00412a70
test al, al
je 0x413363
mov bl, 1
lea eax, [ebp - 0x84]
mov ecx, dword [ebp - 0x28]
mov edx, dword [ebp - 0x10]
call fcn.0040418c
mov eax, dword [ebp - 0x84]
call fcn.00407514
test al, al
je 0x4134b2
mov eax, dword [ebp - 4]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_FreeLibrary_1
mov eax, dword [ebp - 4]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_FreeLibrary_1
lea eax, [ebp - 0x88]
mov ecx, dword [ebp - 0x28]
mov edx, dword [ebp - 0xc]
call fcn.0040418c
mov eax, dword [ebp - 0x88]
push eax
lea eax, [ebp - 0x8c]
mov ecx, dword [ebp - 0x28]
mov edx, dword [ebp - 0x10]
call fcn.0040418c
mov eax, dword [ebp - 0x8c]
pop edx
call fcn.00412a70
test al, al
je 0x4134b2
mov bl, 1
mov eax, dword [0x414428]
cmp dword [eax], 5
jle 0x413447
lea eax, [ebp - 0x90]
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 0x10]
call fcn.0040418c
mov eax, dword [ebp - 0x90]
call fcn.00407514
test al, al
jne 0x413447
push 0
lea eax, [ebp - 0x94]
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 0x10]
call fcn.0040418c
mov eax, dword [ebp - 0x94]
call fcn.00404340
push eax
lea eax, [ebp - 0x98]
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 0xc]
call fcn.0040418c
mov eax, dword [ebp - 0x98]
call fcn.00404340
push eax
call sub.kernel32.dll_CopyFileA
mov eax, dword [0x414428]
cmp dword [eax], 6
jge 0x4134b2
lea eax, [ebp - 0x9c]
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x10]
call fcn.0040418c
mov eax, dword [ebp - 0x9c]
call fcn.00407514
test al, al
jne 0x4134b2
push 0
lea eax, [ebp - 0xa0]
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x10]
call fcn.0040418c
mov eax, dword [ebp - 0xa0]
call fcn.00404340
push eax
lea eax, [ebp - 0xa4]
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0xc]
call fcn.0040418c
mov eax, dword [ebp - 0xa4]
call fcn.00404340
push eax
call sub.kernel32.dll_CopyFileA
lea eax, [ebp - 0xa8]
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x10]
call fcn.0040418c
mov eax, dword [ebp - 0xa8]
call fcn.00407514
test al, al
je 0x4135af
push 0x1e
call sub.kernel32.dll_Sleep
mov eax, dword [0x414428]
cmp dword [eax], 5
jle 0x413573
lea eax, [ebp - 0xac]
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0xc]
call fcn.0040418c
mov eax, dword [ebp - 0xac]
push eax
lea eax, [ebp - 0xb0]
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x10]
call fcn.0040418c
mov eax, dword [ebp - 0xb0]
pop edx
call fcn.00412a70
test al, al
je 0x4135af
mov bl, 1
push 1
push 0x4136e8
push dword [ebp - 0xc]
push dword [ebp - 0x20]
push 0x4136f4
lea edx, [ebp - 0xb8]
mov al, byte [ebp - 5]
call fcn.00412e8c
push dword [ebp - 0xb8]
lea eax, [ebp - 0xb4]
mov edx, 5
call fcn.00404200
mov eax, dword [ebp - 0xb4]
call fcn.00404340
push eax
call sub.kernel32.dll_WinExec
jmp 0x4135af
mov al, byte [ebp - 5]
push eax
lea eax, [ebp - 0xbc]
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0xc]
call fcn.0040418c
mov eax, dword [ebp - 0xbc]
push eax
lea eax, [ebp - 0xc0]
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x10]
call fcn.0040418c
mov edx, dword [ebp - 0xc0]
mov eax, dword [ebp - 4]
pop ecx
call fcn.00412b14
lea eax, [ebp - 0xc4]
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 0x10]
call fcn.0040418c
mov eax, dword [ebp - 0xc4]
call fcn.00407514
test al, al
je 0x413615
mov eax, dword [0x414428]
cmp dword [eax], 5
jle 0x413615
mov al, byte [ebp - 5]
push eax
lea eax, [ebp - 0xc8]
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 0xc]
call fcn.0040418c
mov eax, dword [ebp - 0xc8]
push eax
lea eax, [ebp - 0xcc]
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 0x10]
call fcn.0040418c
mov edx, dword [ebp - 0xcc]
mov eax, dword [ebp - 4]
pop ecx
call fcn.00412b14
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x413647
lea eax, [ebp - 0xcc]
mov edx, 0x2c
call fcn.00403ec8
lea eax, [ebp - 0x10]
mov edx, 2
call fcn.00403ec8
ret