Function at 0x4aaff0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d7241
mov eax, dword fs:[0]
push eax
sub esp, 0xd4
mov eax, dword [0x516008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 0xc]
mov ecx, esi
mov edi, dword [ebp + 8]
mov ebx, dword [ebp + 0x10]
mov dword [ebp - 0x14], edi
mov dword [ebp - 0xc8], ebx
call fcn.00411e60
mov edx, dword [esi + 4]
push ecx
mov ecx, dword [esi]
call fcn.004ac480
mov eax, dword [esi]
add esp, 4
mov dword [esi + 4], eax
mov ecx, edi
mov byte [ebx], 0
call fcn.004131e0
mov ecx, eax
call fcn.004131a0
push ecx
push 0x80
push 3
push ecx
push 0
mov edx, 0x80000000
mov ecx, eax
call fcn.0048ac50
mov edi, eax
add esp, 0x14
cmp edi, 0xffffffff
je 0x4ab25c
test edi, edi
je 0x4ab25c
push 0
push 0
push 0
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
xorps xmm0, xmm0
mov dword [ebp - 0x18], 0
movq qword [ebp - 0x20], xmm0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 4], 0
lea eax, [ebp - 0xd8]
push eax
lea eax, [ebp - 0xe0]
movlpd qword [ebp - 0xd0], xmm0
push eax
lea eax, [ebp - 0xd0]
movlpd qword [ebp - 0xe0], xmm0
push eax
push dword [ebp - 0x14]
movlpd qword [ebp - 0xd8], xmm0
call fcn.004ab7d0
test al, al
je 0x4ab181
mov ebx, dword [ebp - 0xd0]
mov ecx, ebx
mov eax, dword [ebp - 0xcc]
add ecx, 0xffffffff
adc eax, 0xffffffff
test eax, eax
ja 0x4ab17b
jb 0x4ab11f
cmp ecx, 0x4ffffe
ja 0x4ab17b
lea eax, [ebp - 0xc1]
mov byte [ebp - 0xc1], 0
push eax
lea ecx, [ebp - 0x20]
push ecx
push ebx
call fcn.00436270
push 0
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0
push eax
push ebx
push dword [ebp - 0x20]
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebp - 0x14]
xor ecx, ecx
cmp ecx, dword [ebp - 0xcc]
ja 0x4ab17b
jb 0x4ab162
cmp eax, ebx
jae 0x4ab17b
mov byte [ebp - 0xc1], cl
lea edx, [ebp - 0x20]
lea ecx, [ebp - 0xc1]
push ecx
push edx
push eax
mov ecx, edx
call fcn.00436270
mov ebx, dword [ebp - 0xc8]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x20]
cmp eax, dword [ebp - 0x1c]
je 0x4ab222
xorps xmm0, xmm0
mov dword [ebp - 0x24], 0
movq qword [ebp - 0x2c], xmm0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xc0]
call fcn.004b89a0
mov ecx, dword [ebp - 0x1c]
lea edx, [ebp - 0x2c]
mov eax, dword [ebp - 0x20]
sub ecx, eax
push edx
push ecx
push eax
lea ecx, [ebp - 0xc0]
call fcn.00443b90
test al, al
jne 0x4ab27c
mov byte [ebx], 1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call fcn.00411e60
mov ecx, dword [ebp - 0x2c]
test ecx, ecx
je 0x4ab222
mov eax, dword [ebp - 0x24]
sub eax, ecx
push eax
push ecx
call fcn.00413950
add esp, 8
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.00411e60
mov ecx, dword [ebp - 0x20]
test ecx, ecx
je 0x4ab25c
mov eax, dword [ebp - 0x18]
sub eax, ecx
push eax
push ecx
call fcn.00413950
add esp, 8
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004b8ad3
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebp - 0x28]
xor edx, edx
sub eax, dword [ebp - 0x2c]
mov ecx, 0x3e8
div ecx
mov edi, eax
mov dword [ebp - 0xcc], edi
test edx, edx
jne 0x4ab1e8
test edi, edi
jne 0x4ab317
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call fcn.00411e60
mov ecx, dword [ebp - 0x2c]
test ecx, ecx
je 0x4ab2d6
mov eax, dword [ebp - 0x24]
sub eax, ecx
push eax
push ecx
call fcn.00413950
add esp, 8
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.00411e60
mov ecx, dword [ebp - 0x20]
test ecx, ecx
je 0x4ab310
mov eax, dword [ebp - 0x18]
sub eax, ecx
push eax
push ecx
call fcn.00413950
add esp, 8
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov al, 1
jmp 0x4ab25e
xorps xmm0, xmm0
mov dword [ebp - 0x30], 0
movq qword [ebp - 0x38], xmm0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
mov byte [ebp - 4], 2
lea eax, [ebp - 0x38]
push eax
push edi
mov ecx, eax
call fcn.004ac000
imul eax, edi, 0x3e8
push eax
push dword [ebp - 0x2c]
push dword [ebp - 0x38]
call sub.VCRUNTIME140.dll_memcpy
mov ebx, dword [ebp - 0x38]
xor ecx, ecx
mov dword [ebp - 0x14], ecx
mov eax, 0x10624dd3
mov ecx, dword [ebp - 0x34]
add esp, 0xc
sub ecx, ebx
imul ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x4ab3d6
xor edi, edi
cmp dword [edi + ebx], 0x23ab45db
jne 0x4ab423
inc dword [ebp - 0x14]
xor eax, eax
mov word [edi + ebx + 0x282], ax
mov word [edi + ebx + 0x382], ax
mov word [edi + ebx + 0x3ca], ax
mov eax, 0x10624dd3
mov ecx, dword [ebp - 0x34]
add edi, 0x3e8
mov ebx, dword [ebp - 0x38]
sub ecx, ebx
imul ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp dword [ebp - 0x14], eax
jb 0x4ab382
mov edi, dword [ebp - 0xcc]
mov ecx, dword [esi + 8]
mov eax, 0x4ec4ec4f
sub ecx, dword [esi]
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
jbe 0x4ab48b
mov dword [ebp - 0xcc], 0x2762762
call fcn.00411e50
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0xcc]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.00413720
add esp, 8
cmp edi, dword [eax]
ja 0x4ab634
jmp 0x4ab483
mov eax, dword [ebp - 0xc8]
mov byte [eax], 1
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x38]
call fcn.00411e60
mov esi, dword [ebp - 0x38]
test esi, esi
je 0x4ab1eb
mov ecx, dword [ebp - 0x30]
mov eax, 0x10624dd3
sub ecx, esi
imul ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
imul eax, eax, 0x3e8
push eax
push esi
call fcn.00413950
add esp, 8
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
jmp 0x4ab1eb
push edi
mov ecx, esi
call fcn.004abde0
lea ecx, [ebp - 0xa0]
call fcn.004a9480
mov byte [ebp - 4], 3
mov eax, 0x10624dd3
mov ecx, dword [ebp - 0x34]
xor edi, edi
mov ebx, dword [ebp - 0x38]
sub ecx, ebx
imul ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
je 0x4ab5aa
xor eax, eax
mov dword [ebp - 0x14], eax
add eax, 4
lea ecx, [ebp - 0xa0]
add eax, ebx
push eax
call fcn.00412df0
mov eax, dword [ebp - 0x14]
lea ecx, [ebp - 0x88]
add eax, 0x284
add eax, ebx
push eax
call fcn.00412df0
mov ecx, dword [ebp - 0x14]
mov eax, dword [ecx + ebx + 0x3cc]
mov dword [ebp - 0x58], eax
mov eax, dword [ecx + ebx + 0x3d0]
mov dword [ebp - 0x54], eax
mov eax, dword [ecx + ebx + 0x3d4]
mov dword [ebp - 0x50], eax
mov eax, dword [ecx + ebx + 0x3d8]
mov dword [ebp - 0x4c], eax
mov eax, dword [ecx + ebx + 0x3dc]
mov dword [ebp - 0x48], eax
mov eax, dword [ecx + ebx + 0x3e0]
mov dword [ebp - 0x44], eax
lea eax, [ecx + 0x384]
add eax, ebx
lea ecx, [ebp - 0x70]
push eax
call fcn.00412df0
mov ecx, dword [ebp - 0x14]
mov eax, dword [ecx + ebx + 0x3e4]
mov dword [ebp - 0x40], eax
mov eax, dword [esi + 4]
mov byte [ebp - 0x3c], 0
cmp dword [esi + 8], eax
je 0x4ab56f
push eax
push 0x68
call fcn.00411e40
add esp, 8
lea ecx, [ebp - 0xa0]
push ecx
mov ecx, eax
call fcn.004a9ea0
add dword [esi + 4], 0x68
jmp 0x4ab57e
lea ecx, [ebp - 0xa0]
push ecx
push eax
mov ecx, esi
call fcn.004ac2c0
mov ecx, dword [ebp - 0x34]
mov eax, 0x10624dd3
mov ebx, dword [ebp - 0x38]
inc edi
add dword [ebp - 0x14], 0x3e8
sub ecx, ebx
imul ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp edi, eax
mov eax, dword [ebp - 0x14]
jb 0x4ab4c0
mov eax, dword [ebp - 0xc8]
mov byte [eax], 0
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x70]
call fcn.00412e40
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x88]
call fcn.00412e40
mov byte [ebp - 4], 2
lea ecx, [ebp - 0xa0]
call fcn.00412e40
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x38]
call fcn.00411e60
mov esi, dword [ebp - 0x38]
test esi, esi
je 0x4ab29f
mov ecx, dword [ebp - 0x30]
mov eax, 0x10624dd3
sub ecx, esi
imul ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add eax, edx
imul eax, eax, 0x3e8
push eax
push esi
call fcn.00413950
add esp, 8
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
jmp 0x4ab29f
call fcn.0041dda0
int3