Function at 0x45a840
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60c
mov eax, dword [0x628d00]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push 0xb
mov ecx, 0x65c3b8
call fcn.00402392
cmp dword [ebx + 0x40], 0
jne 0x45a8cd
mov eax, dword [ebx + 0x50]
push eax
call fcn.00404a02
mov ecx, dword [ebx + 0x50]
dec ecx
push ecx
call fcn.004038aa
fldz
add esp, 4
fstp dword [esp]
push 0xf
mov ecx, 0x65c3b8
call fcn.00401eb0
fld dword [0x5bd4e4]
push 0
push ecx
fstp dword [esp]
push 0xff
push 0xff
push 0xff
push 0
push 0x80
call fcn.004025e5
add esp, 0x1c
mov byte [ebx + 2], 0xb
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00531be5
mov esp, ebp
pop ebp
ret
push edi
push 0x400
lea edx, [ebp - 0x60c]
push edx
mov ecx, 0x6e1700
call fcn.004041b0
lea edi, [ebp - 0x60c]
dec edi
jmp 0x45a8f0
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x45a8f0
mov ax, word [0x5bbf38]
mov ecx, dword [0x62d110]
mov word [edi], ax
mov eax, dword [ecx + 0x4e24]
mov edx, eax
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x45a910
lea edi, [ebp - 0x60c]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x45a920
mov ecx, eax
shr ecx, 2
push esi
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [ebx + 0x48]
and ecx, 3
sub eax, 0
rep movsb byte es:[edi], byte [esi]
je 0x45aa84
dec eax
je 0x45a9f1
dec eax
jne 0x45aacd
mov edx, dword [ebx + 0x50]
push edx
lea eax, [ebp - 0x60c]
push eax
lea ecx, [ebp - 0x108]
push ecx
call fcn.00535605
lea edx, [ebp - 0x108]
push edx
call fcn.00535f9c
mov eax, dword [ebx + 0x50]
push eax
lea ecx, [ebp - 0x108]
push str.replay_rndtrace__03d.log
push ecx
call fcn.00535605
lea edx, [ebp - 0x108]
push edx
call fcn.00535f9c
mov eax, dword [ebx + 0x50]
push eax
lea ecx, [ebp - 0x108]
push str.replay_postrace__03d.log
push ecx
call fcn.00535605
lea edx, [ebp - 0x108]
push edx
call fcn.00535f9c
fldz
add esp, 0x2c
fstp dword [esp]
push 6
mov ecx, 0x65c3b8
call fcn.00401eb0
mov eax, dword [ebx + 0x50]
lea eax, [eax + eax*2]
pop esi
shl eax, 5
mov byte [eax + 0x69d430], 0
pop edi
mov byte [ebx + 2], 0xb
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00531be5
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebx + 0x4c]
push ecx
lea edx, [ebp - 0x60c]
push edx
lea eax, [ebp - 0x20c]
push eax
call fcn.00535605
mov ecx, dword [ebx + 0x50]
push ecx
lea edx, [ebp - 0x60c]
push edx
lea eax, [ebp - 0x108]
push eax
call fcn.00535605
add esp, 0x18
push 0
lea ecx, [ebp - 0x108]
push ecx
lea edx, [ebp - 0x20c]
push edx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
fldz
push ecx
fstp dword [esp]
push 0xf
mov ecx, 0x65c3b8
call fcn.00401eb0
mov eax, dword [ebx + 0x4c]
lea esi, [eax + eax*2]
mov eax, dword [ebx + 0x50]
shl esi, 5
lea edi, [eax + eax*2]
shl edi, 5
lea esi, [esi + 0x69d428]
lea edi, [edi + 0x69d428]
mov ecx, 0x18
rep movsd dword es:[edi], dword [esi]
pop esi
pop edi
mov byte [ebx + 2], 0xb
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00531be5
mov esp, ebp
pop ebp
ret
mov eax, dword [ebx + 0x50]
lea eax, [eax + eax*2]
shl eax, 5
mov ecx, dword [eax + 0x69d484]
mov edx, dword [eax + 0x69d480]
push ecx
mov ecx, dword [eax + 0x69d47c]
push edx
mov edx, dword [eax + 0x69d478]
push ecx
push edx
call fcn.004049cb
add esp, 0x10
test eax, eax
je 0x45aac1
push 0
push 0x15
call fcn.00401131
add esp, 8
mov eax, dword [ebx + 0x50]
mov dword [0x69d420], eax
mov byte [ebx + 2], 0xff
mov ecx, dword [ebp - 4]
pop esi
pop edi
xor ecx, ebp
pop ebx
call fcn.00531be5
mov esp, ebp
pop ebp
ret