Function at 0x4a8440
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d45a1
mov eax, dword fs:[0]
push eax
sub esp, 0xd4
mov eax, dword [0x513008]
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.00411a60
mov edx, dword [esi + 4]
push ecx
mov ecx, dword [esi]
call fcn.004a98d0
mov eax, dword [esi]
add esp, 4
mov dword [esi + 4], eax
mov ecx, edi
mov byte [ebx], 0
call fcn.00412de0
mov ecx, eax
call fcn.00412da0
push ecx
push 0x80
push 3
push ecx
push 0
mov edx, 0x80000000
mov ecx, eax
call fcn.004880a0
mov edi, eax
add esp, 0x14
cmp edi, 0xffffffff
je 0x4a86ac
test edi, edi
je 0x4a86ac
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.004a8c20
test al, al
je 0x4a85d1
mov ebx, dword [ebp - 0xd0]
mov ecx, ebx
mov eax, dword [ebp - 0xcc]
add ecx, 0xffffffff
adc eax, 0xffffffff
test eax, eax
ja 0x4a85cb
jb 0x4a856f
cmp ecx, 0x4ffffe
ja 0x4a85cb
lea eax, [ebp - 0xc1]
mov byte [ebp - 0xc1], 0
push eax
lea ecx, [ebp - 0x20]
push ecx
push ebx
call fcn.00435bb0
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 0x4a85cb
jb 0x4a85b2
cmp eax, ebx
jae 0x4a85cb
mov byte [ebp - 0xc1], cl
lea edx, [ebp - 0x20]
lea ecx, [ebp - 0xc1]
push ecx
push edx
push eax
mov ecx, edx
call fcn.00435bb0
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 0x4a8672
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.004b6120
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.004434c0
test al, al
jne 0x4a86cc
mov byte [ebx], 1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call fcn.00411a60
mov ecx, dword [ebp - 0x2c]
test ecx, ecx
je 0x4a8672
mov eax, dword [ebp - 0x24]
sub eax, ecx
push eax
push ecx
call fcn.00413550
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.00411a60
mov ecx, dword [ebp - 0x20]
test ecx, ecx
je 0x4a86ac
mov eax, dword [ebp - 0x18]
sub eax, ecx
push eax
push ecx
call fcn.00413550
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.004b6253
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 0x4a8638
test edi, edi
jne 0x4a8767
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call fcn.00411a60
mov ecx, dword [ebp - 0x2c]
test ecx, ecx
je 0x4a8726
mov eax, dword [ebp - 0x24]
sub eax, ecx
push eax
push ecx
call fcn.00413550
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.00411a60
mov ecx, dword [ebp - 0x20]
test ecx, ecx
je 0x4a8760
mov eax, dword [ebp - 0x18]
sub eax, ecx
push eax
push ecx
call fcn.00413550
add esp, 8
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov al, 1
jmp 0x4a86ae
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.004a9450
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 0x4a8826
xor edi, edi
cmp dword [edi + ebx], 0x23ab45db
jne 0x4a8873
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 0x4a87d2
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 0x4a88db
mov dword [ebp - 0xcc], 0x2762762
call fcn.00411a50
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0xcc]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.00413320
add esp, 8
cmp edi, dword [eax]
ja 0x4a8a84
jmp 0x4a88d3
mov eax, dword [ebp - 0xc8]
mov byte [eax], 1
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x38]
call fcn.00411a60
mov esi, dword [ebp - 0x38]
test esi, esi
je 0x4a863b
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.00413550
add esp, 8
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
jmp 0x4a863b
push edi
mov ecx, esi
call fcn.004a9230
lea ecx, [ebp - 0xa0]
call fcn.004a68d0
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 0x4a89fa
xor eax, eax
mov dword [ebp - 0x14], eax
add eax, 4
lea ecx, [ebp - 0xa0]
add eax, ebx
push eax
call fcn.004129f0
mov eax, dword [ebp - 0x14]
lea ecx, [ebp - 0x88]
add eax, 0x284
add eax, ebx
push eax
call fcn.004129f0
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.004129f0
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 0x4a89bf
push eax
push 0x68
call fcn.00411a40
add esp, 8
lea ecx, [ebp - 0xa0]
push ecx
mov ecx, eax
call fcn.004a72f0
add dword [esi + 4], 0x68
jmp 0x4a89ce
lea ecx, [ebp - 0xa0]
push ecx
push eax
mov ecx, esi
call fcn.004a9710
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 0x4a8910
mov eax, dword [ebp - 0xc8]
mov byte [eax], 0
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x70]
call fcn.00412a40
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x88]
call fcn.00412a40
mov byte [ebp - 4], 2
lea ecx, [ebp - 0xa0]
call fcn.00412a40
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x38]
call fcn.00411a60
mov esi, dword [ebp - 0x38]
test esi, esi
je 0x4a86ef
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.00413550
add esp, 8
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
jmp 0x4a86ef
call fcn.0041d9a0
int3