Function at 0x486114
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0xb
push 0
push 0
dec ecx
jne 0x48611c
push ebx
push esi
push edi
mov ebx, eax
xor eax, eax
push ebp
push 0x486405
push dword fs:[eax]
mov dword fs:[eax], esp
mov dl, 1
mov eax, dword [0x40e79c]
call fcn.00402edc
mov dword [ebp - 0x14], eax
xor eax, eax
push ebp
push 0x4863ce
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebx + 0xba8]
mov edx, dword [eax]
call dword [edx + 0x14]
dec eax
cmp eax, 0
jl 0x4863b8
mov dword [ebp - 4], eax
lea ecx, [ebp - 0xc]
mov eax, dword [ebx + 0xba8]
mov edx, dword [ebp - 4]
mov esi, dword [eax]
call dword [esi + 0xc]
lea eax, [ebp - 0x20]
push eax
mov eax, dword [ebp - 0xc]
call fcn.00403e30
mov edx, eax
mov ecx, 1
mov eax, dword [ebp - 0xc]
call fcn.00404038
mov eax, dword [ebp - 0x20]
mov edx, 0x48641c
call fcn.00403f40
jne 0x4863ab
lea eax, [ebp - 0x24]
mov ecx, 0x486428
mov edx, dword [ebp - 0xc]
call fcn.00403e7c
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
call dword [ecx + 0x58]
lea eax, [ebp - 0x18]
mov edx, dword [ebp - 0xc]
call fcn.00403c48
lea ecx, [ebp - 0x28]
xor edx, edx
mov eax, dword [ebp - 0x14]
mov esi, dword [eax]
call dword [esi + 0xc]
mov eax, dword [ebp - 0x28]
call fcn.00403e30
cmp eax, 2
jle 0x4863ab
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x30]
xor edx, edx
mov eax, dword [ebp - 0x14]
mov esi, dword [eax]
call dword [esi + 0xc]
mov eax, dword [ebp - 0x30]
mov ecx, 1
mov edx, 1
call fcn.00404038
mov eax, dword [ebp - 0x2c]
mov edx, 0x48643c
call fcn.00403f40
jne 0x4863ab
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0x38]
xor edx, edx
mov eax, dword [ebp - 0x14]
mov esi, dword [eax]
call dword [esi + 0xc]
mov eax, dword [ebp - 0x38]
call fcn.00403e30
push eax
lea ecx, [ebp - 0x3c]
xor edx, edx
mov eax, dword [ebp - 0x14]
mov esi, dword [eax]
call dword [esi + 0xc]
mov eax, dword [ebp - 0x3c]
mov ecx, 1
pop edx
call fcn.00404038
mov eax, dword [ebp - 0x34]
mov edx, 0x486448
call fcn.00403f40
jne 0x4863ab
push 0x486454
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x44]
xor edx, edx
mov eax, dword [ebp - 0x14]
mov esi, dword [eax]
call dword [esi + 0xc]
mov eax, dword [ebp - 0x44]
call fcn.00403e30
sub eax, 2
push eax
lea ecx, [ebp - 0x48]
xor edx, edx
mov eax, dword [ebp - 0x14]
mov esi, dword [eax]
call dword [esi + 0xc]
mov eax, dword [ebp - 0x48]
mov edx, 2
pop ecx
call fcn.00404038
push dword [ebp - 0x40]
push 0x486460
lea eax, [ebp - 8]
mov edx, 3
call fcn.00403ef0
lea eax, [ebp - 0x18]
mov edx, dword [ebp - 8]
call fcn.00403e38
push 0
mov eax, dword [ebp - 0x18]
call fcn.00403ff4
push eax
mov edx, dword [ebx + 0xd45c]
lea eax, [ebp - 0x4c]
mov ecx, dword [ebp - 8]
call fcn.00403e7c
mov eax, dword [ebp - 0x4c]
call fcn.00403ff4
push eax
call sub.KERNEL32.DLL_CopyFileA
mov eax, dword [ebx + 0xba8]
mov edx, dword [ebp - 0x18]
mov ecx, dword [eax]
call dword [ecx + 0x34]
mov eax, dword [ebx + 0xba4]
mov edx, dword [eax]
call dword [edx + 0x14]
dec eax
test eax, eax
jl 0x4863ab
inc eax
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebx + 0xba4]
mov edx, esi
mov ecx, dword [eax]
call dword [ecx + 0x18]
mov eax, dword [eax]
push eax
lea edx, [ebp - 0x54]
mov eax, dword [ebp - 8]
call fcn.00408714
mov ecx, dword [ebp - 0x54]
lea eax, [ebp - 0x50]
mov edx, 0x486470
call fcn.00403e7c
mov edx, dword [ebp - 0x50]
pop eax
call fcn.00403f40
jne 0x4863a1
lea ecx, [ebp - 0x10]
mov eax, dword [ebx + 0xba4]
mov edx, esi
mov edi, dword [eax]
call dword [edi + 0xc]
lea edx, [ebp - 0x58]
mov eax, dword [ebp - 0x10]
call fcn.00408d74
mov ecx, dword [ebp - 0x58]
lea eax, [ebp - 0x18]
mov edx, dword [ebp - 0xc]
call fcn.00403e7c
push 0
mov eax, dword [ebp - 0x18]
call fcn.00403ff4
push eax
mov eax, dword [ebp - 0x10]
call fcn.00403ff4
push eax
call sub.KERNEL32.DLL_CopyFileA
mov eax, dword [ebx + 0xba8]
mov edx, dword [ebp - 0x18]
mov ecx, dword [eax]
call dword [ecx + 0x34]
inc esi
dec dword [ebp - 0x1c]
jne 0x48631b
dec dword [ebp - 4]
cmp dword [ebp - 4], 0xffffffff
jne 0x48616b
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4863d5
mov eax, dword [ebp - 0x14]
call fcn.00402f0c
ret