Function at 0x49045c
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0xa
push 0
push 0
dec ecx
jne 0x490464
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov esi, eax
mov eax, dword [ebp - 4]
call fcn.004043e0
xor eax, eax
push ebp
push 0x49078b
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
lea edx, [ebp - 0x14]
mov eax, dword [esi + 0x300]
call fcn.0043bcec
lea eax, [ebp - 0x14]
mov edx, dword [ebp - 4]
call fcn.004041f8
mov eax, dword [ebp - 0x14]
call fcn.004089d0
test al, al
jne 0x4904e3
push 0x4907a4
push dword [ebp - 4]
push 0x4907b8
lea eax, [ebp - 0x18]
mov edx, 3
call fcn.004042b0
mov edx, dword [ebp - 0x18]
mov eax, dword [esi + 0x310]
mov eax, dword [eax + 0x220]
mov ecx, dword [eax]
call dword [ecx + 0x38]
jmp 0x490721
push 0x4907d0
push dword [ebp - 4]
push 0x4907e8
lea eax, [ebp - 0x1c]
mov edx, 3
call fcn.004042b0
mov edx, dword [ebp - 0x1c]
mov eax, dword [esi + 0x310]
mov eax, dword [eax + 0x220]
mov ecx, dword [eax]
call dword [ecx + 0x38]
lea eax, [ebp - 0xc]
push eax
lea edx, [ebp - 0x20]
mov eax, dword [ebp - 4]
call fcn.00408bf0
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 4]
call fcn.00404534
dec eax
push eax
lea edx, [ebp - 0x24]
mov eax, dword [ebp - 4]
call fcn.00408bb8
mov eax, dword [ebp - 0x24]
mov edx, 1
pop ecx
call fcn.00404450
lea edx, [ebp - 0x28]
mov eax, dword [esi + 0x300]
call fcn.0043bcec
push dword [ebp - 0x28]
push 0x4907f4
push dword [ebp - 0xc]
lea edx, [ebp - 0x2c]
mov eax, dword [ebp - 4]
call fcn.00408bf0
push dword [ebp - 0x2c]
lea eax, [ebp - 0x10]
mov edx, 4
call fcn.004042b0
lea edx, [ebp - 0x30]
mov eax, dword [esi + 0x300]
call fcn.0043bcec
mov edx, dword [ebp - 0x30]
lea eax, [ebp - 8]
mov ecx, 0x490804
call fcn.0040423c
mov eax, dword [ebp - 8]
call fcn.00408a04
push 0
push dword [ebp - 8]
push 0x490818
call fcn.0040a014
add esp, 0xfffffff8
fstp qword [esp]
wait
lea edx, [ebp - 0x38]
mov eax, 0x490824
call fcn.0040ac60
push dword [ebp - 0x38]
push 0x49083c
lea edx, [ebp - 0x3c]
mov eax, dword [ebp - 0x10]
call fcn.00408bb8
push dword [ebp - 0x3c]
lea eax, [ebp - 0x34]
mov edx, 5
call fcn.004042b0
mov eax, dword [ebp - 0x34]
call fcn.004043f0
push eax
mov eax, dword [ebp - 0x10]
call fcn.004043f0
mov edi, eax
push edi
call sub.kernel32.dll_CopyFileA
test eax, eax
je 0x490633
push 0x490848
push dword [ebp - 0x10]
push 0x49085c
lea eax, [ebp - 0x40]
mov edx, 3
call fcn.004042b0
mov edx, dword [ebp - 0x40]
mov eax, dword [esi + 0x310]
mov eax, dword [eax + 0x220]
mov ecx, dword [eax]
call dword [ecx + 0x38]
jmp 0x490666
push 0x490848
push dword [ebp - 0x10]
push 0x49086c
lea eax, [ebp - 0x44]
mov edx, 3
call fcn.004042b0
mov edx, dword [ebp - 0x44]
mov eax, dword [esi + 0x310]
mov eax, dword [eax + 0x220]
mov ecx, dword [eax]
call dword [ecx + 0x38]
jmp 0x490721
mov eax, dword [ebp - 0x10]
call fcn.004089d0
test al, al
je 0x49067a
mov eax, dword [ebp - 0x10]
call fcn.00408aec
push 0
push edi
lea edx, [ebp - 0x48]
mov eax, dword [esi + 0x300]
call fcn.0043bcec
lea eax, [ebp - 0x48]
mov edx, dword [ebp - 4]
call fcn.004041f8
mov eax, dword [ebp - 0x48]
call fcn.004043f0
push eax
call sub.kernel32.dll_CopyFileA
cmp eax, 1
sbb ebx, ebx
inc ebx
test bl, bl
je 0x4906de
push 0x49087c
push dword [ebp - 4]
push 0x49085c
lea eax, [ebp - 0x4c]
mov edx, 3
call fcn.004042b0
mov edx, dword [ebp - 0x4c]
mov eax, dword [esi + 0x310]
mov eax, dword [eax + 0x220]
mov ecx, dword [eax]
call dword [ecx + 0x38]
jmp 0x49070e
push 0x49087c
push dword [ebp - 4]
push 0x49086c
lea eax, [ebp - 0x50]
mov edx, 3
call fcn.004042b0
mov edx, dword [ebp - 0x50]
mov eax, dword [esi + 0x310]
mov eax, dword [eax + 0x220]
mov ecx, dword [eax]
call dword [ecx + 0x38]
jmp 0x490721
mov eax, dword [esi + 0x310]
mov eax, dword [eax + 0x220]
xor edx, edx
mov ecx, dword [eax]
call dword [ecx + 0x38]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x490792
lea eax, [ebp - 0x50]
mov edx, 2
call fcn.00403f54
lea eax, [ebp - 0x48]
call fcn.00403f30
lea eax, [ebp - 0x44]
mov edx, 5
call fcn.00403f54
lea eax, [ebp - 0x30]
call fcn.00403f30
lea eax, [ebp - 0x2c]
call fcn.00403f30
lea eax, [ebp - 0x28]
call fcn.00403f30
lea eax, [ebp - 0x24]
mov edx, 4
call fcn.00403f54
lea eax, [ebp - 0x14]
call fcn.00403f30
lea eax, [ebp - 0x10]
mov edx, 4
call fcn.00403f54
ret