Function at 0x4a8a80
Capabilities:
Copy file
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x74
push ebx
push esi
push edi
mov dword [ebp - 0x14], edx
mov edi, ecx
mov eax, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [ebp - 0x34], eax
mov eax, dword [sym.imp.KERNEL32.dll_Sleep]
mov dword [ebp - 0x18], eax
mov eax, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [ebp - 4], eax
mov eax, dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x2c], eax
mov eax, dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dword [ebp - 0x28], eax
mov eax, dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 0x30], eax
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x10], eax
mov eax, dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
mov dword [ebp - 0x50], eax
mov eax, dword [sym.imp.KERNEL32.dll_MoveFileW]
mov dword [ebp - 0x4c], eax
xor ebx, ebx
mov eax, dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
mov dword [ebp - 0x38], eax
mov eax, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x24], eax
nop dword [eax + eax]
mov ecx, dword [edi + 4]
mov esi, dword [ecx + 0x30]
mov dword [ebp - 0x1c], esi
test edx, edx
jne 0x4a8b05
mov dword [ebp - 0x40], edx
mov dword [ebp - 0x48], esi
jmp 0x4a8b32
push 4
lea eax, [ebp - 0x48]
mov dword [ebp - 0x40], 1
push eax
lea eax, [ebp - 0x64]
push eax
push dword [ebp - 0x14]
push esi
call fcn.004a6960
mov esi, dword [ebp - 0x48]
mov dword [ebp - 0x1c], esi
test esi, esi
je 0x4a985d
mov edx, 1
mov ecx, dword [esi + 0x14]
test cl, 0x20
je 0x4a8b5b
mov eax, dword [edi + 4]
add eax, 0x14
push eax
call dword [ebp - 0x34]
push 0xc8
call dword [ebp - 0x18]
mov eax, dword [edi + 4]
add eax, 0x14
push eax
call dword [ebp - 4]
mov edx, dword [ebp - 0x14]
jmp 0x4a8af0
mov eax, ecx
and al, 3
cmp al, 2
jne 0x4a985d
test cl, 8
jne 0x4a983d
or ecx, 0x20
lea eax, [esi + 0x18]
mov dword [esi + 0x14], ecx
mov ecx, edi
push eax
call fcn.004a8540
mov eax, dword [edi + 8]
add esp, 4
cmp dword [esi + 0x10], 0
mov eax, dword [eax + 0x14]
mov dword [ebp - 0xc], eax
je 0x4a9625
mov eax, dword [esi + 0x48]
mov ecx, eax
mov edx, dword [esi + 0x4c]
mov dword [ebp - 0x44], eax
call fcn.004f3ba0
cmp dword [esi + 0x4c], 0
jg 0x4a8c66
jl 0x4a8bc0
cmp dword [ebp - 0x44], 0x800000
jae 0x4a8c66
mulsd xmm0, qword [0x513b00]
call fcn.004f3af0
mov dword [ebp - 0x40], eax
mov ecx, edx
mov eax, dword [ebp - 0x44]
or eax, dword [esi + 0x4c]
jne 0x4a8c84
mov eax, dword [edi + 4]
add eax, 0x14
push eax
call dword [ebp - 0x34]
push 0
push 0x80
mov eax, ebx
neg eax
push 2
sbb eax, eax
push 0
and eax, 7
push eax
push 0x40000000
push dword [edi + 0x1c]
mov dword [ebp - 0x54], eax
call dword [ebp - 0x2c]
mov dword [ebp - 0x40], eax
cmp eax, 0xffffffff
jne 0x4a8f0c
mov eax, dword [edi + 8]
mov dword [ebp - 0x54], eax
push dword [eax + 0x1c]
call dword [ebp - 0x24]
cmp eax, 0xffffffff
mov eax, dword [ebp - 0x54]
je 0x4a8f95
mov dword [eax + 0x20], 0
test ebx, ebx
je 0x4a8c4e
push ebx
push 0x1cc15274
push ecx
mov ecx, dword [edi]
mov ecx, dword [ecx + 0x478]
call fcn.0045be00
inc ebx
mov dword [ebp - 0x20], ebx
cmp ebx, 3
jg 0x4a9378
push dword [edi + 0x1c]
call dword [ebp - 0x28]
jmp 0x4a8f77
mulsd xmm0, qword [0x513cc0]
call fcn.004f3af0
mov ecx, 0x200000
sub ecx, eax
mov dword [ebp - 0x40], ecx
mov ecx, 0
sbb ecx, edx
mov eax, dword [esi + 0x44]
xor edx, edx
cmp edx, ecx
jl 0x4a8bde
jg 0x4a8c9c
cmp eax, dword [ebp - 0x40]
jbe 0x4a8bde
push 0
push 0
lea eax, [ebp - 0x70]
push eax
push dword [edi + 0x18]
call dword [ebp - 0x50]
test eax, eax
jne 0x4a8cb6
xorps xmm0, xmm0
movlpd qword [ebp - 0x70], xmm0
mov ecx, dword [esi + 0x48]
mov eax, dword [esi + 0x4c]
add ecx, 0x6000000
adc eax, 0
cmp dword [ebp - 0x6c], eax
jb 0x4a8bde
ja 0x4a8cd9
cmp dword [ebp - 0x70], ecx
jb 0x4a8bde
mov eax, dword [edi + 4]
add eax, 0x14
push eax
call dword [ebp - 0x34]
push dword [edi + 0x24]
push dword [edi + 0x20]
call dword [ebp - 0x4c]
test eax, eax
jne 0x4a8d27
mov eax, dword [edi + 8]
mov dword [ebp - 0x44], eax
push dword [eax + 0x1c]
call dword [ebp - 0x24]
cmp eax, 0xffffffff
mov eax, dword [ebp - 0x44]
je 0x4a8f95
inc ebx
mov dword [eax + 0x20], 0
mov dword [ebp - 0x20], ebx
cmp ebx, 3
jg 0x4a9378
push dword [edi + 0x24]
call dword [ebp - 0x28]
jmp 0x4a8f77
push 0
push 0x80
mov eax, ebx
xorps xmm0, xmm0
neg eax
movlpd qword [ebp - 0x60], xmm0
push 2
sbb eax, eax
push 0
and eax, 7
push eax
push 0x40000000
push dword [edi + 0x1c]
mov dword [ebp - 0x44], eax
call dword [ebp - 0x2c]
mov dword [ebp - 0x40], eax
cmp eax, 0xffffffff
jne 0x4a8da9
mov eax, dword [edi + 8]
mov dword [ebp - 0x44], eax
push dword [eax + 0x1c]
call dword [ebp - 0x24]
cmp eax, 0xffffffff
mov eax, dword [ebp - 0x44]
je 0x4a8f95
mov dword [eax + 0x20], 0
test ebx, ebx
je 0x4a8d91
push ebx
push 0x1cc15274
push ecx
mov ecx, dword [edi]
mov ecx, dword [ecx + 0x478]
call fcn.0045be00
inc ebx
mov dword [ebp - 0x20], ebx
cmp ebx, 3
jg 0x4a9378
push dword [edi + 0x1c]
call dword [ebp - 0x28]
jmp 0x4a8f77
push 0
push 0x80
push 2
push 0
push dword [ebp - 0x44]
push 0x40000000
push dword [edi + 0x20]
call dword [ebp - 0x2c]
mov ecx, eax
mov dword [ebp - 0x54], ecx
cmp ecx, 0xffffffff
jne 0x4a8e21
mov eax, dword [edi + 8]
mov dword [ebp - 0x44], eax
push dword [eax + 0x1c]
call dword [ebp - 0x24]
cmp eax, 0xffffffff
mov eax, dword [ebp - 0x44]
je 0x4a8f95
mov dword [eax + 0x20], 0
test ebx, ebx
je 0x4a8e03
push ebx
push 0x1cc15274
push ecx
mov ecx, dword [edi]
mov ecx, dword [ecx + 0x478]
call fcn.0045be00
push dword [ebp - 0x40]
call dword [ebp - 0x10]
inc ebx
mov dword [ebp - 0x20], ebx
cmp ebx, 3
jg 0x4a9378
push dword [edi + 0x20]
call dword [ebp - 0x28]
jmp 0x4a8f77
mov eax, dword [ebp - 0xc]
push 0
push 0x80
push 3
push 0
push dword [ebp - 0x44]
mov dword [eax + 0x18], ecx
push accept
mov dword [eax + 0x14], 0
mov dword [eax + 0x20], 0
mov dword [eax + 0x24], 0
mov dword [eax + 0x28], 0
mov dword [eax + 0x2c], 0
push dword [edi + 0x24]
call dword [ebp - 0x2c]
mov dword [ebp - 0x44], eax
cmp eax, 0xffffffff
jne 0x4a8fb3
mov eax, dword [edi + 8]
mov dword [ebp - 0x44], eax
push dword [eax + 0x1c]
call dword [ebp - 0x24]
cmp eax, 0xffffffff
mov eax, dword [ebp - 0x44]
je 0x4a8f95
mov dword [eax + 0x20], 0
test ebx, ebx
je 0x4a8ea6
push ebx
push 0x1cc15274
push ecx
mov ecx, dword [edi]
mov ecx, dword [ecx + 0x478]
call fcn.0045be00
push dword [ebp - 0x40]
call dword [ebp - 0x10]
mov eax, dword [ebp - 0xc]
cmp dword [eax + 0x14], 0
je 0x4a8ee4
push 0
push 0
push dword [eax + 0x24]
push dword [eax + 0x20]
push dword [eax + 0x18]
call dword [ebp - 0x38]
push 0
lea eax, [ebp - 0x58]
push eax
mov eax, dword [ebp - 0xc]
push dword [eax + 0x14]
push dword [eax + 0xc]
push dword [eax + 0x18]
call dword [ebp - 0x30]
mov eax, dword [ebp - 0xc]
mov dword [eax + 0x14], 0
push dword [ebp - 0x54]
mov dword [eax + 0x18], 0
mov dword [eax + 0x20], 0
mov dword [eax + 0x24], 0
mov dword [eax + 0x28], 0
mov dword [eax + 0x2c], 0
jmp 0x4a8f67
push 0
push 0x80
push 4
push 0
push dword [ebp - 0x54]
push 0x40000000
push dword [edi + 0x20]
call dword [ebp - 0x2c]
mov dword [ebp - 0x5c], eax
cmp eax, 0xffffffff
jne 0x4a93ad
mov eax, dword [edi + 8]
mov dword [ebp - 0x54], eax
push dword [eax + 0x1c]
call dword [ebp - 0x24]
cmp eax, 0xffffffff
mov eax, dword [ebp - 0x54]
je 0x4a8f95
mov dword [eax + 0x20], 0
test ebx, ebx
je 0x4a8f64
push ebx
push 0x1cc15274
push ecx
mov ecx, dword [edi]
mov ecx, dword [ecx + 0x478]
call fcn.0045be00
push dword [ebp - 0x40]
call dword [ebp - 0x10]
inc ebx
mov dword [ebp - 0x20], ebx
cmp ebx, 3
jg 0x4a9378
push 0x3e8
call dword [ebp - 0x18]
mov eax, dword [edi + 4]
add eax, 0x14
push eax
call dword [ebp - 4]
and dword [esi + 0x14], 0xffffffdf
mov edx, dword [ebp - 0x14]
jmp 0x4a8af0
mov dword [eax + 0x20], 1
mov eax, dword [edi + 4]
add eax, 0x14
push eax
call dword [ebp - 4]
and dword [esi + 0x14], 0xffffffdf
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0x3c]
mov dword [ebp - 0x50], eax
mov eax, dword [esi + 0x40]
mov dword [ebp - 0x20], 0
lea ebx, [eax + eax*2]
shl ebx, 4
add ebx, 0x40
cmp ebx, dword [edi + 0x3c]
jbe 0x4a8feb
push dword [edi + 0x38]
call fcn.004d9a63
add esp, 4
push ebx
call fcn.004d9a7e
add esp, 4
mov dword [edi + 0x38], eax
mov dword [edi + 0x3c], ebx
mov ecx, dword [edi + 0x38]
xor ebx, ebx
mov edx, dword [ebp - 0x60]
mov dword [ebp - 0x64], ecx
mov dword [ebp - 0x4c], ebx
lea eax, [ecx + 0x40]
mov dword [ecx], 0xd5132dc6
mov dword [ecx + 4], 0
movups xmm0, xmmword [esi + 0x18]
mov dword [ebp - 0x14], eax
movups xmmword [ecx + 8], xmm0
movups xmm0, xmmword [esi + 0x28]
movups xmmword [ecx + 0x18], xmm0
mov ecx, dword [ebp - 0x5c]
cmp dword [ebp - 0x50], ebx
jbe 0x4a92c9
lea eax, [esi + 0x18]
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x2c], edx
mov eax, dword [esi + 0x38]
mov ebx, dword [eax + ebx*4]
test ebx, ebx
je 0x4a92b9
mov eax, dword [ebx + 0x14]
and al, 3
mov dword [ebp - 0x58], edx
mov dword [ebp - 0x48], ecx
cmp al, 2
jne 0x4a9128
mov esi, dword [ebx + 0x3c]
lea eax, [ebx + 0x48]
mov dword [eax], edx
add edx, esi
mov dword [eax + 4], ecx
mov dword [ebp - 0x48], eax
adc ecx, 0
lea eax, [ebp - 8]
mov dword [ebp - 0x2c], edx
push eax
push 0x20
push dword [ebp - 0x18]
mov dword [ebp - 0x24], ecx
mov dword [ebp - 8], 1
call fcn.004b2070
lea eax, [ebp - 8]
push eax
push 0x20
lea eax, [ebx + 0x18]
push eax
call fcn.004b2070
lea eax, [ebp - 8]
push eax
push 8
lea eax, [ebx + 0x48]
push eax
call fcn.004b2070
lea eax, [ebp - 8]
push eax
push 4
lea eax, [ebx + 0x3c]
push eax
call fcn.004b2070
lea eax, [ebp - 8]
push eax
push esi
push dword [ebx + 0x38]
call fcn.004b2070
mov eax, dword [ebp - 8]
mov dword [ebx + 0x40], eax
cmp dword [edi + 0x4c], esi
jae 0x4a90ea
push dword [edi + 0x48]
call fcn.004d9a63
add esp, 4
lea esi, [ebx + 0x3c]
push dword [esi]
call fcn.004d9a7e
mov dword [edi + 0x48], eax
add esp, 4
mov eax, dword [esi]
mov dword [edi + 0x4c], eax
jmp 0x4a90ed
lea esi, [ebx + 0x3c]
mov eax, dword [ebp - 0x48]
mov edx, dword [ebx + 0x38]
mov ecx, dword [edi + 0x5c]
push dword [eax + 4]
push dword [eax]
push dword [ebx + 0x40]
push dword [esi]
push dword [edi + 0x48]
call fcn.004bd590
add esp, 0x14
push dword [esi]
mov esi, dword [ebp - 0xc]
mov ecx, esi
push dword [edi + 0x48]
push dword [esi + 0x2c]
push dword [esi + 0x28]
call fcn.004a8330
mov ecx, dword [ebp - 0x48]
jmp 0x4a923b
mov eax, dword [edi + 0x4c]
cmp eax, dword [ebx + 0x3c]
jae 0x4a914f
push dword [edi + 0x48]
call fcn.004d9a63
add esp, 4
push dword [ebx + 0x3c]
call fcn.004d9a7e
mov dword [edi + 0x48], eax
add esp, 4
mov eax, dword [ebx + 0x3c]
mov dword [edi + 0x4c], eax
push 0
lea eax, [ebx + 0x48]
push 0
push dword [eax + 4]
mov dword [ebp - 0x5c], eax
push dword [eax]
push dword [ebp - 0x44]
call dword [ebp - 0x38]
push 0
lea eax, [ebp - 0x3c]
push eax
push dword [ebx + 0x3c]
push dword [edi + 0x48]
push dword [ebp - 0x44]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [ebx + 0x3c]
cmp dword [ebp - 0x3c], ecx
jne 0x4a927c
push dword [ebx + 0x4c]
mov edx, dword [edi + 0x48]
push dword [ebx + 0x48]
push dword [ebx + 0x40]
push ecx
mov ecx, dword [edi + 0x5c]
call fcn.004bd830
mov ecx, dword [ebp - 0x2c]
add esp, 0x10
mov eax, dword [ebp - 0x24]
mov esi, dword [ebx + 0x3c]
mov dword [ebx + 0x48], ecx
add ecx, esi
mov dword [ebx + 0x4c], eax
adc eax, 0
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x24], eax
lea eax, [ebp - 8]
push eax
push 0x20
push dword [ebp - 0x18]
mov dword [ebp - 8], 1
call fcn.004b2070
lea eax, [ebp - 8]
push eax
push 0x20
lea eax, [ebx + 0x18]
push eax
call fcn.004b2070
lea eax, [ebp - 8]
push eax
push 8
lea eax, [ebx + 0x48]
push eax
call fcn.004b2070
lea eax, [ebp - 8]
push eax
push 4
lea eax, [ebx + 0x3c]
push eax
call fcn.004b2070
lea eax, [ebp - 8]
push eax
push esi
push dword [edi + 0x48]
call fcn.004b2070
push dword [ebp - 0x48]
mov eax, dword [ebp - 8]
push dword [ebp - 0x58]
mov dword [ebx + 0x40], eax
mov edx, dword [edi + 0x48]
mov ecx, dword [edi + 0x5c]
push eax
push esi
call fcn.004bd830
mov eax, dword [ebp - 0xc]
add esp, 0x10
mov ecx, eax
push dword [ebx + 0x3c]
push dword [edi + 0x48]
push dword [eax + 0x2c]
push dword [eax + 0x28]
call fcn.004a8330
mov ecx, dword [ebp - 0x5c]
mov edx, dword [ebp - 0x14]
movups xmm0, xmmword [ebx + 0x18]
or dword [ebx + 0x14], 8
mov esi, dword [ebx + 4]
movups xmmword [edx], xmm0
movups xmm0, xmmword [ebx + 0x28]
movups xmmword [edx + 0x10], xmm0
mov eax, dword [ecx]
mov ecx, dword [ecx + 4]
mov dword [edx + 0x24], ecx
mov ecx, dword [ebp - 0x24]
mov dword [edx + 0x20], eax
mov eax, dword [ebx + 0x3c]
mov dword [edx + 0x28], eax
mov eax, dword [ebx + 0x40]
mov dword [edx + 0x2c], eax
add edx, 0x30
inc dword [ebp - 0x20]
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0x2c]
jmp 0x4a92ac
or dword [ebx + 0x14], 8
mov eax, dword [edi + 4]
mov esi, dword [ebx + 4]
add eax, 0x14
push eax
call dword [ebp - 4]
mov ecx, dword [edi + 4]
push ebx
call fcn.004a7b60
mov eax, dword [edi + 4]
add eax, 0x14
push eax
call dword [ebp - 0x34]
mov edx, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 0x2c], edx
mov dword [ebp - 0x24], ecx
mov ebx, esi
test esi, esi
jne 0x4a9042
mov esi, dword [ebp - 0x1c]
mov ebx, dword [ebp - 0x4c]
inc ebx
mov dword [ebp - 0x4c], ebx
cmp ebx, dword [ebp - 0x50]
jb 0x4a9034
mov dword [esi + 0x48], edx
mov eax, edx
mov edx, dword [ebp - 0x64]
mov ebx, dword [ebp - 0x40]
mov dword [esi + 0x4c], ecx
mov dword [esi + 0x44], 0
mov dword [edx + 0x30], eax
mov dword [edx + 0x34], ecx
lea ecx, [ebp - 0x3c]
mov eax, dword [esi + 0x44]
mov dword [edx + 0x38], eax
mov eax, dword [ebp - 0x20]
mov dword [edx + 0x28], eax
push 0
push ecx
lea eax, [eax + eax*2]
shl eax, 4
add eax, 0x40
push eax
push dword [edi + 0x38]
push ebx
call dword [ebp - 0x30]
push ebx
call dword [ebp - 0x10]
mov ebx, dword [ebp - 0xc]
cmp dword [ebx + 0x14], 0
je 0x4a933d
push 0
push 0
push dword [ebx + 0x24]
push dword [ebx + 0x20]
push dword [ebx + 0x18]
call dword [ebp - 0x38]
push 0
lea eax, [ebp - 0x64]
push eax
push dword [ebx + 0x14]
push dword [ebx + 0xc]
push dword [ebx + 0x18]
call dword [ebp - 0x30]
mov dword [ebx + 0x14], 0
push dword [ebp - 0x54]
mov dword [ebx + 0x18], 0
mov dword [ebx + 0x20], 0
mov dword [ebx + 0x24], 0
mov dword [ebx + 0x28], 0
mov dword [ebx + 0x2c], 0
mov ebx, dword [ebp - 0x10]
call ebx
push dword [ebp - 0x44]
call ebx
push dword [edi + 0x24]
call dword [ebp - 0x28]
jmp 0x4a9833
mov eax, dword [edi + 4]
add eax, 0x14
push eax
call dword [ebp - 4]
and dword [esi + 0x14], 0xffffffdf
mov ecx, dword [edi + 4]
push esi
call fcn.004a7cb0
push dword [edi + 0x1c]
mov ebx, dword [ebp - 0x28]
call ebx
push dword [edi + 0x20]
call ebx
push dword [edi + 0x24]
call ebx
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ebx, dword [ebp - 0xc]
mov dword [ebx + 0x18], eax
mov dword [ebx + 0x14], 0
mov dword [ebx + 0x20], 0
mov dword [ebx + 0x24], 0
mov dword [ebx + 0x28], 0
mov dword [ebx + 0x2c], 0
mov eax, dword [esi + 0x40]
mov ecx, dword [esi + 0x3c]
mov dword [ebp - 0x4c], ecx
mov dword [ebp - 0x64], eax
lea ecx, [eax + eax*2]
shl ecx, 4
add ecx, 0x40
mov dword [ebp - 0x44], ecx
cmp ecx, dword [edi + 0x3c]
jbe 0x4a9415
push dword [edi + 0x38]
call fcn.004d9a63
add esp, 4
push dword [ebp - 0x44]
call fcn.004d9a7e
mov dword [edi + 0x38], eax
add esp, 4
mov eax, dword [ebp - 0x44]
mov dword [edi + 0x3c], eax
mov eax, dword [ebp - 0x64]
mov ecx, dword [edi + 0x38]
mov dword [ebp - 0x64], ecx
mov dword [ecx], 0xd5132dc6
lea edx, [ecx + 0x40]
mov dword [ecx + 4], 0
movups xmm0, xmmword [esi + 0x18]
mov dword [ebp - 0x54], edx
movups xmmword [ecx + 8], xmm0
movups xmm0, xmmword [esi + 0x28]
mov dword [ecx + 0x28], eax
movups xmmword [ecx + 0x18], xmm0
xor ecx, ecx
mov dword [ebp - 0x50], ecx
cmp dword [ebp - 0x4c], ecx
jbe 0x4a959b
nop
mov eax, dword [esi + 0x38]
mov ebx, dword [eax + ecx*4]
test ebx, ebx
je 0x4a958b
nop
mov ecx, dword [ebx + 0x14]
mov eax, ecx
and al, 3
cmp al, 2
jne 0x4a954c
test cl, 8
jne 0x4a954c
mov eax, dword [ebx + 0x48]
and eax, dword [ebx + 0x4c]
cmp eax, 0xffffffff
jne 0x4a9499
mov eax, dword [esi + 0x48]
mov ecx, dword [esi + 0x4c]
mov dword [ebx + 0x48], eax
mov eax, dword [ebx + 0x3c]
mov dword [ebx + 0x4c], ecx
add dword [esi + 0x48], eax
adc dword [esi + 0x4c], 0
lea eax, [ebp - 8]
mov dword [ebp - 8], 1
push eax
push 0x20
lea eax, [esi + 0x18]
push eax
call fcn.004b2070
lea eax, [ebp - 8]
push eax
push 0x20
lea eax, [ebx + 0x18]
push eax
call fcn.004b2070
lea eax, [ebp - 8]
push eax
push 8
lea eax, [ebx + 0x48]
push eax
call fcn.004b2070
lea eax, [ebp - 8]
push eax
push 4
lea esi, [ebx + 0x3c]
push esi
call fcn.004b2070
mov esi, dword [esi]
lea eax, [ebp - 8]
push eax
push esi
push dword [ebx + 0x38]
call fcn.004b2070
mov eax, dword [ebp - 8]
mov dword [ebx + 0x40], eax
cmp dword [edi + 0x4c], esi
jae 0x4a9515
push dword [edi + 0x48]
call fcn.004d9a63
add esp, 4
push dword [ebx + 0x3c]
call fcn.004d9a7e
mov dword [edi + 0x48], eax
add esp, 4
mov eax, dword [ebx + 0x3c]
mov dword [edi + 0x4c], eax
push dword [ebx + 0x4c]
mov edx, dword [ebx + 0x38]
push dword [ebx + 0x48]
mov ecx, dword [edi + 0x5c]
push dword [ebx + 0x40]
push dword [ebx + 0x3c]
push dword [edi + 0x48]
call fcn.004bd590
mov ecx, dword [ebp - 0xc]
add esp, 0x14
push dword [ebx + 0x3c]
push dword [edi + 0x48]
push dword [ebx + 0x4c]
push dword [ebx + 0x48]
call fcn.004a8330
mov esi, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x54]
movups xmm0, xmmword [ebx + 0x18]
movups xmmword [edx], xmm0
movups xmm0, xmmword [ebx + 0x28]
movups xmmword [edx + 0x10], xmm0
mov eax, dword [ebx + 0x48]
mov ecx, dword [ebx + 0x4c]
mov dword [edx + 0x20], eax
mov dword [edx + 0x24], ecx
mov eax, dword [ebx + 0x3c]
mov dword [edx + 0x28], eax
mov eax, dword [ebx + 0x40]
mov dword [edx + 0x2c], eax
add edx, 0x30
or dword [ebx + 0x14], 8
mov ebx, dword [ebx + 4]
mov dword [ebp - 0x54], edx
test ebx, ebx
jne 0x4a9460
mov ecx, dword [ebp - 0x50]
inc ecx
mov dword [ebp - 0x50], ecx
cmp ecx, dword [ebp - 0x4c]
jb 0x4a9450
mov ebx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x64]
mov eax, dword [esi + 0x48]
mov ecx, dword [esi + 0x4c]
push 0
mov dword [edx + 0x30], eax
mov dword [edx + 0x34], ecx
mov eax, dword [esi + 0x44]
mov dword [edx + 0x38], eax
lea eax, [ebp - 0x3c]
push eax
push dword [ebp - 0x44]
push dword [edi + 0x38]
push dword [ebp - 0x40]
call dword [ebp - 0x30]
push dword [ebp - 0x40]
call dword [ebp - 0x10]
cmp dword [ebx + 0x14], 0
je 0x4a95f7
push 0
push 0
push dword [ebx + 0x24]
push dword [ebx + 0x20]
push dword [ebx + 0x18]
call dword [ebp - 0x38]
push 0
lea eax, [ebp - 0x64]
push eax
push dword [ebx + 0x14]
push dword [ebx + 0xc]
push dword [ebx + 0x18]
call dword [ebp - 0x30]
mov dword [ebx + 0x14], 0
push dword [ebp - 0x5c]
mov dword [ebx + 0x18], 0
mov dword [ebx + 0x20], 0
mov dword [ebx + 0x24], 0
mov dword [ebx + 0x28], 0
mov dword [ebx + 0x2c], 0
call dword [ebp - 0x10]
jmp 0x4a9833
mov eax, dword [ebp - 0x1c]
mov esi, dword [esi + 0x40]
mov eax, dword [eax + 0x3c]
mov dword [ebp - 0x4c], eax
lea eax, [esi + esi*2]
shl eax, 4
add eax, 0x40
push eax
call fcn.004d9a7e
xorps xmm0, xmm0
mov dword [ebp - 0x38], eax
xor edx, edx
add esp, 4
mov dword [ebp - 0x50], edx
lea ecx, [eax + 0x40]
mov dword [eax], 0xd5132dc6
mov dword [eax + 4], 0
mov dword [ebp - 0x54], ecx
xor ecx, ecx
movups xmmword [eax + 8], xmm0
mov dword [ebp - 0x44], ecx
movups xmmword [eax + 0x18], xmm0
mov dword [eax + 0x28], esi
mov esi, dword [ebp - 0x1c]
cmp dword [ebp - 0x4c], ecx
jbe 0x4a96fc
nop dword [eax]
mov eax, dword [esi + 0x38]
mov ebx, dword [eax + edx*4]
test ebx, ebx
je 0x4a96ed
mov esi, dword [ebp - 0x54]
nop dword [eax]
mov eax, dword [ebx + 4]
lea edx, [ebx + 0x18]
mov ecx, edi
mov dword [ebp - 0x64], eax
call fcn.004a8a80
test eax, eax
jne 0x4a96d8
movups xmm0, xmmword [ebx + 0x18]
movups xmmword [esi], xmm0
movups xmm0, xmmword [ebx + 0x28]
movups xmmword [esi + 0x10], xmm0
mov eax, dword [ebx + 0x48]
mov ecx, dword [ebx + 0x4c]
mov dword [esi + 0x24], ecx
mov ecx, dword [ebp - 0x44]
mov dword [esi + 0x20], eax
mov eax, dword [ebx + 0x44]
mov dword [esi + 0x28], eax
mov dword [esi + 0x2c], 0
add esi, 0x30
inc ecx
mov dword [ebp - 0x44], ecx
jmp 0x4a96db
mov ecx, dword [ebp - 0x44]
mov eax, dword [ebp - 0x64]
mov ebx, eax
test eax, eax
jne 0x4a9690
mov edx, dword [ebp - 0x50]
mov dword [ebp - 0x54], esi
mov esi, dword [ebp - 0x1c]
inc edx
mov dword [ebp - 0x50], edx
cmp edx, dword [ebp - 0x4c]
jb 0x4a9680
mov ebx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x38]
mov dword [eax + 0x28], ecx
lea eax, [ecx + ecx*2]
shl eax, 4
add eax, 0x40
mov dword [ebp - 0x64], eax
mov eax, dword [edi + 4]
add eax, 0x14
push eax
call dword [ebp - 0x34]
mov edx, dword [ebp - 0x40]
lea eax, [esi + 0x18]
push eax
mov ecx, edi
call fcn.004a8540
add esp, 4
mov eax, ebx
neg eax
sbb eax, eax
push 0
push 0x80
push 2
push 0
and eax, 7
push eax
push 0x40000000
push dword [edi + 0x1c]
call dword [ebp - 0x2c]
mov dword [ebp - 0x54], eax
cmp eax, 0xffffffff
jne 0x4a97c7
nop
mov eax, dword [edi + 8]
mov dword [ebp - 0x54], eax
push dword [eax + 0x1c]
call dword [ebp - 0x24]
cmp eax, 0xffffffff
mov eax, dword [ebp - 0x54]
je 0x4a9866
mov dword [eax + 0x20], 0
test ebx, ebx
je 0x4a9787
push ebx
push 0x1cc15274
push ecx
mov ecx, dword [edi]
mov ecx, dword [ecx + 0x478]
call fcn.0045be00
inc ebx
cmp ebx, 3
jg 0x4a986d
push dword [edi + 0x1c]
call dword [ebp - 0x28]
push 0x3e8
call dword [ebp - 0x18]
push 0
push 0x80
mov eax, ebx
neg eax
push 2
push 0
sbb eax, eax
and eax, 7
push eax
push 0x40000000
push dword [edi + 0x1c]
call dword [ebp - 0x2c]
mov dword [ebp - 0x54], eax
cmp eax, 0xffffffff
je 0x4a9750
mov ebx, dword [ebp - 0x38]
lea ecx, [ebp - 0x3c]
push 0
push ecx
push dword [ebp - 0x64]
mov dword [ebx + 0x30], 0
push ebx
push eax
mov dword [ebx + 0x34], 0
mov dword [ebx + 0x38], 0
call dword [ebp - 0x30]
push dword [ebp - 0x54]
call dword [ebp - 0x10]
push ebx
call fcn.004d9a63
mov eax, dword [edi + 0x14]
add esp, 4
test byte [eax + 4], 2
jne 0x4a9833
mov ecx, dword [edi]
lea eax, [ebp - 0x64]
push eax
mov edx, 0x50eb28
call fcn.00495800
mov esi, dword [ebp - 0x64]
add esp, 4
push 0
push esi
push dword [edi + 0x1c]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
push esi
call fcn.004d9a63
mov esi, dword [ebp - 0x1c]
add esp, 4
mov eax, dword [edi + 4]
add eax, 0x14
push eax
call dword [ebp - 4]
mov eax, dword [edi + 0x14]
test byte [eax + 4], 2
je 0x4a9855
cmp dword [esi + 0x10], 0
je 0x4a9855
mov ecx, dword [edi + 4]
push esi
call fcn.004a7b60
or dword [esi + 0x14], 8
and dword [esi + 0x14], 0xffffffdf
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [eax + 0x20], 1
mov ebx, dword [ebp - 0x38]
push ebx
call fcn.004d9a63
mov eax, dword [edi + 4]
add esp, 4
add eax, 0x14
push eax
call dword [ebp - 4]
and dword [esi + 0x14], 0xffffffdf
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret