Function at 0x4861b8
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0xb
push 0
push 0
dec ecx
jne 0x4861c0
push ebx
push esi
push edi
mov ebx, eax
xor eax, eax
push ebp
push 0x4864a9
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 0x486472
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 0x48645c
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, 0x4864c0
call fcn.00403f40
jne 0x48644f
lea eax, [ebp - 0x24]
mov ecx, 0x4864cc
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 0x48644f
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, 0x4864e0
call fcn.00403f40
jne 0x48644f
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, 0x4864ec
call fcn.00403f40
jne 0x48644f
push 0x4864f8
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 0x486504
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 0x48644f
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, 0x486514
call fcn.00403e7c
mov edx, dword [ebp - 0x50]
pop eax
call fcn.00403f40
jne 0x486445
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 0x4863bf
dec dword [ebp - 4]
cmp dword [ebp - 4], 0xffffffff
jne 0x48620f
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x486479
mov eax, dword [ebp - 0x14]
call fcn.00402f0c
ret