Function at 0x49e87c
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0xb
push 0
push 0
dec ecx
jne 0x49e884
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x49ec27
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x4a6e58]
mov eax, dword [eax]
mov dx, 0xfff5
call fcn.004696d8
mov dl, 1
mov eax, dword [0x415dd0]
call fcn.00403254
mov edx, dword [ebp - 4]
mov dword [edx + 0x3e4], eax
xor eax, eax
push ebp
push 0x49ebe8
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x3a8]
lea eax, [ebp - 0x18]
mov ecx, 0x49ec40
call fcn.004042e0
mov eax, dword [ebp - 0x18]
call fcn.004812e0
test al, al
jne 0x49e907
mov eax, 0x49ec58
call fcn.0042cfb0
mov eax, dword [ebp - 4]
call fcn.00467fb0
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x3a8]
lea eax, [ebp - 0x1c]
mov ecx, 0x49ec40
call fcn.004042e0
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3e4]
mov ecx, dword [eax]
call dword [ecx + 0x68]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3e4]
mov edx, dword [eax]
call dword [edx + 0x14]
mov edx, dword [ebp - 4]
mov dword [edx + 0x3dc], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3e4]
mov edx, dword [eax]
call dword [edx + 0x14]
mov esi, eax
dec esi
test esi, esi
jl 0x49eb95
inc esi
xor ebx, ebx
lea ecx, [ebp - 0x20]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3e4]
mov edx, ebx
mov edi, dword [eax]
call dword [edi + 0xc]
mov edx, dword [ebp - 0x20]
mov eax, 0x49ec84
call fcn.004045d8
test eax, eax
jle 0x49e9cd
lea ecx, [ebp - 0x24]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3e4]
mov edx, ebx
mov edi, dword [eax]
call dword [edi + 0xc]
mov eax, dword [ebp - 0x24]
lea edx, [ebp - 0x10]
call fcn.00408d8c
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x3a8]
lea eax, [ebp - 8]
mov ecx, dword [ebp - 0x10]
call fcn.004042e0
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x3b4]
lea eax, [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
call fcn.004042e0
jmp 0x49e9ef
lea eax, [ebp - 8]
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x3a8]
call fcn.0040406c
lea eax, [ebp - 0xc]
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x3b4]
call fcn.0040406c
lea ecx, [ebp - 0x28]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3e4]
mov edx, ebx
mov edi, dword [eax]
call dword [edi + 0xc]
mov eax, dword [ebp - 0x28]
lea edx, [ebp - 0x14]
call fcn.00408e54
mov eax, dword [ebp - 0xc]
call fcn.00483ad4
test al, al
jne 0x49ea84
mov eax, dword [ebp - 0xc]
call fcn.00483adc
test al, al
je 0x49ea51
lea eax, [ebp - 0x2c]
push eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x34], eax
mov byte [ebp - 0x30], 0xb
lea edx, [ebp - 0x34]
xor ecx, ecx
mov eax, 0x49ec90
call fcn.00409994
mov edx, dword [ebp - 0x2c]
xor ecx, ecx
mov eax, dword [ebp - 4]
call fcn.0049e648
jmp 0x49ea84
mov eax, dword [ebp - 4]
inc dword [eax + 0x3c8]
lea eax, [ebp - 0x38]
push eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x34], eax
mov byte [ebp - 0x30], 0xb
lea edx, [ebp - 0x34]
xor ecx, ecx
mov eax, 0x49eca4
call fcn.00409994
mov edx, dword [ebp - 0x38]
mov cl, 1
mov eax, dword [ebp - 4]
call fcn.0049e648
mov eax, dword [ebp - 4]
inc dword [eax + 0x3e0]
mov eax, dword [ebp - 4]
mov edi, dword [eax + 0x3dc]
test edi, edi
je 0x49eac8
mov eax, dword [ebp - 4]
fild dword [eax + 0x3e0]
mov dword [ebp - 0x3c], edi
fild dword [ebp - 0x3c]
fdivp st(1)
fmul dword [0x49ecb8]
call fcn.00402a80
mov edx, eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x398]
call fcn.00481174
jmp 0x49ead8
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x398]
xor edx, edx
call fcn.00481174
mov eax, dword [0x4a6cbc]
mov eax, dword [eax]
call fcn.0046b544
push 0
lea eax, [ebp - 0x40]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0xc]
call fcn.004042e0
mov eax, dword [ebp - 0x40]
call fcn.00404494
push eax
lea eax, [ebp - 0x44]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 8]
call fcn.004042e0
mov eax, dword [ebp - 0x44]
call fcn.00404494
push eax
call sub.kernel32.dll_CopyFileA
test eax, eax
je 0x49eb56
lea eax, [ebp - 0x48]
push eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x58], eax
mov byte [ebp - 0x54], 0xb
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x50], eax
mov byte [ebp - 0x4c], 0xb
lea edx, [ebp - 0x58]
mov ecx, 1
mov eax, 0x49ecc4
call fcn.00409994
mov edx, dword [ebp - 0x48]
xor ecx, ecx
mov eax, dword [ebp - 4]
call fcn.0049e648
jmp 0x49eb8d
lea eax, [ebp - 0x5c]
push eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x58], eax
mov byte [ebp - 0x54], 0xb
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x50], eax
mov byte [ebp - 0x4c], 0xb
lea edx, [ebp - 0x58]
mov ecx, 1
mov eax, 0x49ece0
call fcn.00409994
mov edx, dword [ebp - 0x5c]
mov cl, 1
mov eax, dword [ebp - 4]
call fcn.0049e648
inc ebx
dec esi
jne 0x49e961
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49ebef
mov eax, dword [ebp - 4]
add eax, 0x3e4
call fcn.0040df84
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x38c]
mov dl, 1
mov ecx, dword [eax]
call dword [ecx + 0x64]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x390]
xor edx, edx
mov ecx, dword [eax]
call dword [ecx + 0x64]
mov eax, dword [ebp - 4]
mov dword [eax + 0xc], 0x1f90
mov eax, dword [0x4a6e58]
mov eax, dword [eax]
xor edx, edx
call fcn.004696d8
ret