Function at 0x458528
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
mov ecx, 9
push 0
push 0
dec ecx
jne 0x458530
push ebx
push esi
push edi
mov ebx, eax
xor eax, eax
push ebp
push 0x458744
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x10]
xor eax, eax
call fcn.00402e64
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 8]
call fcn.00408e24
xor eax, eax
mov dword [ebx + 0x18], eax
mov eax, dword [ebx + 0x20]
mov edx, dword [eax]
call dword [edx]
mov esi, eax
dec esi
test esi, esi
jl 0x4585a3
inc esi
mov dword [ebp - 4], 0
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 0x20]
mov ecx, dword [eax]
call dword [ecx + 4]
mov eax, dword [eax + 0x18]
mov edx, 0x45875c
call fcn.004048f4
jne 0x45859d
mov dword [ebx + 0x18], 1
jmp 0x4585a3
inc dword [ebp - 4]
dec esi
jne 0x45857a
mov eax, dword [ebx + 0x14]
mov edx, dword [eax]
call dword [edx + 0x14]
mov esi, eax
dec esi
test esi, esi
jl 0x45871c
inc esi
mov dword [ebp - 4], 0
push dword [ebx + 0xc]
push 0x458778
lea ecx, [ebp - 0x18]
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 0x14]
mov edi, dword [eax]
call dword [edi + 0xc]
mov eax, dword [ebp - 0x18]
lea edx, [ebp - 0x14]
call fcn.00408e58
push dword [ebp - 0x14]
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00404868
mov eax, dword [ebp - 0xc]
call fcn.00408c08
test al, al
je 0x458612
mov eax, dword [ebp - 0xc]
call fcn.00408d24
test al, 1
je 0x458612
mov edx, eax
dec edx
mov eax, dword [ebp - 0xc]
call fcn.00408d38
cmp dword [ebx + 0x18], 0
jle 0x458650
push 0
lea edx, [ebp - 0x20]
mov eax, dword [ebp - 0xc]
call fcn.00408e58
mov eax, dword [ebp - 0x20]
lea edx, [ebp - 0x1c]
call fcn.004083a8
mov ecx, dword [ebp - 0x1c]
mov edx, 0x45875c
mov eax, dword [ebx + 0x20]
call fcn.0045777c
mov eax, dword [eax + 8]
mov edx, dword [ebp - 0xc]
call fcn.00416ca0
jmp 0x4586fb
lea eax, [ebp - 0x24]
push eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x34], eax
mov byte [ebp - 0x30], 0xb
lea ecx, [ebp - 0x3c]
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 0x14]
mov edi, dword [eax]
call dword [edi + 0xc]
mov eax, dword [ebp - 0x3c]
lea edx, [ebp - 0x38]
call fcn.00408e58
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x2c], eax
mov byte [ebp - 0x28], 0xb
lea edx, [ebp - 0x34]
mov ecx, 1
mov eax, 0x458784
call fcn.00409700
mov eax, dword [ebp - 0x24]
call fcn.00408c08
test al, al
je 0x4586fb
push 0
mov eax, dword [ebp - 0xc]
call fcn.004049a8
push eax
lea eax, [ebp - 0x40]
push eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x34], eax
mov byte [ebp - 0x30], 0xb
lea ecx, [ebp - 0x48]
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 0x14]
mov edi, dword [eax]
call dword [edi + 0xc]
mov eax, dword [ebp - 0x48]
lea edx, [ebp - 0x44]
call fcn.00408e58
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x2c], eax
mov byte [ebp - 0x28], 0xb
lea edx, [ebp - 0x34]
mov ecx, 1
mov eax, 0x458784
call fcn.00409700
mov eax, dword [ebp - 0x40]
call fcn.004049a8
push eax
call sub.kernel32.dll_CopyFileA
mov eax, dword [ebp - 0xc]
call fcn.00408d24
test al, 1
je 0x458712
mov edx, eax
dec edx
mov eax, dword [ebp - 0xc]
call fcn.00408d38
inc dword [ebp - 4]
dec esi
jne 0x4585be
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45874b
lea eax, [ebp - 0x48]
mov edx, 5
call fcn.0040450c
lea eax, [ebp - 0x24]
mov edx, 8
call fcn.0040450c
ret