Function at 0x4a9c90
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x4ed9ea
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push ebp
push esi
push edi
mov eax, dword [0x670f1c]
xor eax, esp
push eax
lea eax, [esp + 0x34]
mov dword fs:[0], eax
mov eax, dword [esp + 0x6c]
mov esi, ecx
mov dword [esp + 0x14], eax
mov ecx, dword [esi + 0x40]
mov edx, dword [esi + 0x3c]
xor ebp, ebp
push ebp
push 0xa00000
push ecx
push edx
mov dword [esp + 0x4c], ebp
call fcn.004c15f0
mov ebx, dword [esp + 0x60]
mov ecx, dword [esp + 0x68]
mov edx, dword [esi + 0xda]
push eax
mov eax, dword [esp + 0x68]
push eax
push ebx
push ecx
push 0x50f690
push edx
call fcn.00418e20
add esp, 0x18
lea edi, [esi + 0xa8]
push edi
mov dword [esp + 0x24], ebp
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push edi
mov dword [esi + 0xde], ebp
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [esp + 0x5c], 8
mov eax, dword [esp + 0x48]
jae 0x4a9d2b
lea eax, [esp + 0x48]
push ebp
push 0x10000000
push 3
push ebp
push 3
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebp, eax
cmp ebp, 0xffffffff
jne 0x4a9d81
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
mov dword [esi + 0xde], eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [esp + 0x5c], 8
jb 0x4a9d77
mov eax, dword [esp + 0x48]
push eax
call fcn.004aef39
add esp, 4
mov eax, 0xffffcd35
jmp 0x4a9fc9
mov ecx, dword [esp + 0x64]
push 0
lea edx, [esp + 0x2c]
push edx
push ebx
push ebp
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x4a9de1
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebx
test eax, eax
je 0x4a9de1
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call ebx
push edi
mov dword [esi + 0xde], eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp dword [esp + 0x5c], 8
jb 0x4a9dd7
mov eax, dword [esp + 0x48]
push eax
call fcn.004aef39
add esp, 4
mov eax, 0xffffcd33
jmp 0x4a9fc9
lea ecx, [esp + 0x2c]
lea ebx, [esi + 0xd0]
push ecx
mov ecx, ebx
call fcn.004113f0
mov eax, dword [esp + 0x68]
mov ecx, dword [esp + 0x14]
push 0
lea edx, [esp + 0x24]
push edx
push eax
push ecx
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
lea edx, [esp + 0x2c]
push edx
mov ecx, ebx
mov dword [esp + 0x18], eax
call fcn.00411460
fst qword [esp + 0x18]
fld qword [0x4ffcf0]
fcomp st(1)
fnstsw ax
test ah, 0x41
jne 0x4a9e3a
fstp st(0)
fld qword [0x4ffcf8]
fst qword [esp + 0x18]
cmp dword [esp + 0x14], 0
jne 0x4a9eb1
push edi
fstp st(0)
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
push edi
mov dword [esi + 0xde], ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
cmp ebx, 0x5aa
je 0x4a9e89
cmp ebx, 0x6f8
je 0x4a9e89
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x44]
call fcn.00401470
mov eax, 0xffffcd32
jmp 0x4a9fc9
mov eax, dword [esp + 0x20]
cmp eax, dword [esp + 0x68]
je 0x4a9ead
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x44]
call fcn.00401470
mov eax, 0xffffcd2f
jmp 0x4a9fc9
fld qword [esp + 0x18]
mov ecx, dword [esp + 0x20]
fild dword [esp + 0x20]
test ecx, ecx
jge 0x4a9ec3
fadd qword [0x4f9540]
fdivrp st(1)
fnstcw word [esp + 0x14]
movzx eax, word [esp + 0x14]
or eax, 0xc00
mov dword [esp + 0x18], eax
fldcw word [esp + 0x18]
fistp qword [esp + 0x18]
mov edi, dword [esp + 0x18]
test edi, edi
fldcw word [esp + 0x14]
jbe 0x4a9f70
push 0x78c828
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x78c820]
test eax, eax
jne 0x4a9f0b
mov dword [0x78c820], edi
jmp 0x4a9f65
test edi, edi
mov dword [esp + 0x18], edi
fild dword [esp + 0x18]
jge 0x4a9f1d
fadd qword [0x4f9540]
test eax, eax
fmul qword [0x4f67a8]
mov dword [esp + 0x18], eax
fild dword [esp + 0x18]
jge 0x4a9f35
fadd qword [0x4f9540]
fmul qword [0x50f998]
fnstcw word [esp + 0x14]
movzx eax, word [esp + 0x14]
faddp st(1)
or eax, 0xc00
mov dword [esp + 0x18], eax
fldcw word [esp + 0x18]
fistp qword [esp + 0x18]
mov edx, dword [esp + 0x18]
mov dword [0x78c820], edx
fldcw word [esp + 0x14]
push 0x78c828
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [esi + 0x40]
mov ecx, dword [esi + 0x3c]
push 0
push 0xa00000
push eax
push ecx
call fcn.004c15f0
mov edx, dword [esp + 0x64]
mov ecx, dword [esp + 0x20]
push eax
mov eax, dword [esp + 0x64]
push edx
mov edx, dword [esi + 0xda]
push eax
push ecx
push 0x50f710
push edx
call fcn.00418e20
add esp, 0x18
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x5c], 8
mov esi, dword [esp + 0x20]
jb 0x4a9fc7
mov eax, dword [esp + 0x48]
push eax
call fcn.004aef39
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x34]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret 0x2c