Function at 0x4a8900
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d4771
mov eax, dword fs:[0]
push eax
sub esp, 0xd4
mov eax, dword [0x512008]
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.004a9d90
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.00488570
mov edi, eax
add esp, 0x14
cmp edi, 0xffffffff
je 0x4a8b6c
test edi, edi
je 0x4a8b6c
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.004a90e0
test al, al
je 0x4a8a91
mov ebx, dword [ebp - 0xd0]
mov ecx, ebx
mov eax, dword [ebp - 0xcc]
add ecx, 0xffffffff
adc eax, 0xffffffff
test eax, eax
ja 0x4a8a8b
jb 0x4a8a2f
cmp ecx, 0x4ffffe
ja 0x4a8a8b
lea eax, [ebp - 0xc1]
mov byte [ebp - 0xc1], 0
push eax
lea ecx, [ebp - 0x20]
push ecx
push ebx
call fcn.00436050
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 0x4a8a8b
jb 0x4a8a72
cmp eax, ebx
jae 0x4a8a8b
mov byte [ebp - 0xc1], cl
lea edx, [ebp - 0x20]
lea ecx, [ebp - 0xc1]
push ecx
push edx
push eax
mov ecx, edx
call fcn.00436050
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 0x4a8b32
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.004b62e0
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.00443970
test al, al
jne 0x4a8b8c
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 0x4a8b32
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 0x4a8b6c
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.004b6413
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 0x4a8af8
test edi, edi
jne 0x4a8c27
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call fcn.00411e60
mov ecx, dword [ebp - 0x2c]
test ecx, ecx
je 0x4a8be6
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 0x4a8c20
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 0x4a8b6e
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.004a9910
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 0x4a8ce6
xor edi, edi
cmp dword [edi + ebx], 0x23ab45db
jne 0x4a8d33
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 0x4a8c92
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 0x4a8d9b
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 0x4a8f44
jmp 0x4a8d93
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 0x4a8afb
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 0x4a8afb
push edi
mov ecx, esi
call fcn.004a96f0
lea ecx, [ebp - 0xa0]
call fcn.004a6d90
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 0x4a8eba
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 0x4a8e7f
push eax
push 0x68
call fcn.00411e40
add esp, 8
lea ecx, [ebp - 0xa0]
push ecx
mov ecx, eax
call fcn.004a77b0
add dword [esi + 4], 0x68
jmp 0x4a8e8e
lea ecx, [ebp - 0xa0]
push ecx
push eax
mov ecx, esi
call fcn.004a9bd0
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 0x4a8dd0
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 0x4a8baf
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 0x4a8baf
call fcn.0041dda0
int3