Function at 0x4aedf4
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
mov ecx, 9
push 0
push 0
dec ecx
jne 0x4aedfc
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov esi, eax
xor eax, eax
push ebp
push 0x4af072
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
cmp dword [ebp - 4], 0
jne 0x4aee28
mov bl, 1
jmp 0x4af04a
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x14]
dec eax
test eax, eax
jl 0x4af048
inc eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 8], 0
cmp byte [0x4b91a8], 0
jne 0x4af04a
lea ecx, [ebp - 0xc]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
mov edi, dword [eax]
call dword [edi + 0xc]
lea edx, [ebp - 0x24]
mov eax, dword [ebp - 0xc]
call fcn.00408c08
mov edx, dword [ebp - 0x24]
lea eax, [ebp - 0xc]
call fcn.00404740
mov edx, dword [ebp - 0xc]
mov eax, 0x4af08c
call fcn.00404cac
mov edi, eax
test edi, edi
jg 0x4aeeb1
push dword [ebp - 0xc]
push 0x4af098
push 0x4af0a4
lea eax, [ebp - 0x28]
mov edx, 3
call fcn.00404a28
mov edx, dword [ebp - 0x28]
mov eax, esi
call fcn.004ae4dc
jmp 0x4af04a
lea eax, [ebp - 0x18]
push eax
mov ecx, edi
dec ecx
mov edx, 1
mov eax, dword [ebp - 0xc]
call fcn.00404bc8
lea eax, [ebp - 0xc]
mov ecx, edi
mov edx, 1
call fcn.00404c08
lea edx, [ebp - 0x1c]
mov eax, dword [ebp - 0xc]
call fcn.00408c08
mov eax, dword [ebp - 0x18]
call fcn.00409540
test al, al
je 0x4aef3f
lea eax, [ebp - 0x10]
mov edx, dword [ebp - 0x18]
call fcn.00404740
lea eax, [ebp - 0x14]
mov edx, dword [ebp - 0x1c]
call fcn.00404740
push 0x4af0e4
push dword [ebp - 0x10]
push 0x4af0fc
push dword [ebp - 0x14]
push 0x4af110
lea eax, [ebp - 0x2c]
mov edx, 5
call fcn.00404a28
mov edx, dword [ebp - 0x2c]
mov eax, esi
call fcn.004ae4dc
xor ecx, ecx
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x18]
call fcn.004aeafc
jmp 0x4af018
mov eax, dword [ebp - 0x18]
call fcn.00409530
test al, al
jne 0x4aef74
push 0x4af120
push dword [ebp - 0x18]
push 0x4af134
lea eax, [ebp - 0x30]
mov edx, 3
call fcn.00404a28
mov edx, dword [ebp - 0x30]
mov eax, esi
call fcn.004ae4dc
jmp 0x4af04a
lea edx, [ebp - 0x34]
mov eax, dword [ebp - 0x1c]
call fcn.0040980c
mov eax, dword [ebp - 0x34]
call fcn.00409540
test al, al
jne 0x4aefd3
lea edx, [ebp - 0x38]
mov eax, dword [ebp - 0x1c]
call fcn.0040980c
mov eax, dword [ebp - 0x38]
call fcn.00409564
test al, al
jne 0x4aefd3
push 0x4af148
lea edx, [ebp - 0x40]
mov eax, dword [ebp - 0x1c]
call fcn.0040980c
push dword [ebp - 0x40]
push 0x4af15c
lea eax, [ebp - 0x3c]
mov edx, 3
call fcn.00404a28
mov edx, dword [ebp - 0x3c]
mov eax, esi
call fcn.004ae4dc
jmp 0x4af04a
push 0x4af16c
push dword [ebp - 0x18]
push 0x4af184
push dword [ebp - 0x1c]
push 0x4af110
lea eax, [ebp - 0x44]
mov edx, 5
call fcn.00404a28
mov edx, dword [ebp - 0x44]
mov eax, esi
call fcn.004ae4dc
push 0
mov eax, dword [ebp - 0x1c]
call fcn.00404b68
push eax
mov eax, dword [ebp - 0x18]
call fcn.00404b68
push eax
call sub.kernel32.dll_CopyFileA
push 0x4af194
push dword [ebp - 0x18]
push 0x4af1a4
lea eax, [ebp - 0x48]
mov edx, 3
call fcn.00404a28
mov edx, dword [ebp - 0x48]
mov eax, esi
call fcn.004ae4dc
inc dword [ebp - 8]
dec dword [ebp - 0x20]
jne 0x4aee44
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4af079
lea eax, [ebp - 0x48]
mov edx, 0xa
call fcn.004046cc
lea eax, [ebp - 0x1c]
mov edx, 5
call fcn.004046cc
ret