Function at 0x45ebc7
Capabilities:
Read file on windows

Disassembly:
push 0x9c
mov eax, 0x499b0f
call fcn.0049202e
mov edi, ecx
call dword [0x4d4030]
mov eax, edi
neg eax
lea ecx, [edi + 0x38]
sbb eax, eax
and eax, ecx
mov dword [ebp - 0x14], eax
je 0x45ebf5
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
xor ebx, ebx
mov dword [ebp - 4], ebx
mov ecx, dword [edi + 0x4fc]
mov esi, edi
lea eax, [ebp - 0x20]
call fcn.00461d11
mov byte [ebp - 4], 1
cmp dword [edi + 0xb8], ebx
je 0x45edd0
cmp byte [edi + 0xac], bl
je 0x45edd0
push 1
lea eax, [ebp - 0x24]
call fcn.0046a855
mov byte [ebp - 4], 2
push dword [eax]
lea eax, [ebp - 0x18]
push eax
call fcn.0045b6b7
add esp, 0xc
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 4
call dword [0x4a2ee8]
mov eax, edi
call fcn.00461d3c
push dword [ebp - 0x18]
lea esi, [ebp - 0xa8]
call fcn.00416ab0
mov eax, dword [eax]
push ebx
push 1
push ebx
push 3
push eax
push dword [ebp + 8]
lea ecx, [edi + 0x4c4]
push dword [ebp + 8]
lea edx, [edi + 0xc0]
push ecx
push edx
mov ebx, 0x400
lea esi, [edi + 0xc4]
push ebx
push esi
push dword [edi + 0xb8]
mov esi, dword [0x4a32b8]
call esi
mov dword [edi + 0xbc], eax
lea eax, [ebp - 0xa4]
add esp, 0x30
cmp dword [ebp - 0xa8], eax
je 0x45ecc0
push dword [ebp - 0xa8]
call dword [0x4a308c]
pop ecx
xor eax, eax
cmp dword [edi + 0xbc], eax
jne 0x45ed64
push eax
push 0x4000000
push 3
push eax
push 1
push SysReAllocString
push dword [ebp - 0x18]
mov dword [ebp + 8], eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x45ed32
xor edi, edi
push edi
lea eax, [ebp + 8]
push eax
push 0x930
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x18]
call dword [0x4a2ee8]
mov eax, dword [ebp - 0x20]
cmp eax, edi
je 0x45ed2a
cmp byte [ebp - 0x1c], 0
je 0x45ed2a
mov dword [eax + 4], edi
mov dword [eax + 8], edi
cmp dword [ebp - 0x14], edi
jmp 0x45edf0
lea ecx, [ebp - 0x18]
call dword [0x4a2ee8]
mov eax, dword [ebp - 0x20]
xor ecx, ecx
cmp eax, ecx
je 0x45ed4f
cmp byte [ebp - 0x1c], cl
je 0x45ed4f
mov dword [eax + 4], ecx
mov dword [eax + 8], ecx
cmp dword [ebp - 0x14], ecx
je 0x45ed5d
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov al, 1
jmp 0x45edfd
push 1
push 1
push eax
push 0xfffffffffffffffd
push dword [ebp + 0xc]
lea eax, [edi + 0x4c4]
push dword [ebp + 8]
push dword [ebp + 8]
push eax
lea eax, [edi + 0xc0]
push eax
push ebx
lea eax, [edi + 0xc4]
push eax
push dword [edi + 0xb8]
call esi
add esp, 0x30
xor esi, esi
cmp eax, esi
lea ecx, [ebp - 0x18]
mov dword [edi + 0xbc], eax
sete bl
call dword [0x4a2ee8]
mov eax, dword [ebp - 0x20]
cmp eax, esi
je 0x45edbe
cmp byte [ebp - 0x1c], 0
je 0x45edbe
mov dword [eax + 4], esi
mov dword [eax + 8], esi
cmp dword [ebp - 0x14], esi
je 0x45edcc
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov al, bl
jmp 0x45edfd
mov eax, dword [ebp - 0x20]
cmp eax, ebx
mov dword [edi + 0xbc], 2
je 0x45eded
cmp byte [ebp - 0x1c], 0
je 0x45eded
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
cmp dword [ebp - 0x14], ebx
je 0x45edfb
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor al, al
call fcn.00492106
ret 8