Function at 0x493c20
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a521d
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x62700c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp byte [ebp + 0x20], 0
lea eax, [ebp + 8]
mov dword [ebp - 4], 0
mov edi, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
mov dword [ebp - 0x14], 0
je 0x493cce
cmp dword [ebp + 0x1c], 0x10
push 0x5ce2bc
cmovae eax, dword [ebp + 8]
push eax
call edi
add esp, 8
mov dword [esi + 8], eax
test eax, eax
jne 0x493c90
push 3
push 0x5ce20c
lea ecx, [ebp + 8]
call fcn.00406140
cmp dword [ebp + 0x1c], 0x10
lea eax, [ebp + 8]
push 0x5ce15c
cmovae eax, dword [ebp + 8]
push eax
call edi
add esp, 8
mov dword [esi + 8], eax
test eax, eax
je 0x493cc2
sub esp, 8
lea eax, [ebp - 0x14]
mov ecx, esi
push eax
call fcn.004333d0
mov bl, 1
jmp 0x493eb0
mov dword [esi + 4], 3
jmp 0x493eae
cmp dword [ebp + 0x1c], 0x10
push 0x5ce05c
cmovae eax, dword [ebp + 8]
push eax
call edi
add esp, 8
mov dword [esi + 8], eax
test eax, eax
jne 0x493cf7
push 3
push 0x5cdfac
lea ecx, [ebp + 8]
call fcn.00406140
cmp dword [ebp + 0x1c], 0x10
lea eax, [ebp + 8]
push 0x5ce314
cmovae eax, dword [ebp + 8]
push eax
call edi
add esp, 8
mov dword [esi + 8], eax
test eax, eax
je 0x493ea7
push eax
push 1
lea eax, [ebp - 0x14]
push 4
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add esp, 0x10
test eax, eax
je 0x493e9e
cmp dword [ebp - 0x14], 0
jbe 0x493d57
push dword [esi + 8]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
mov dword [esi + 8], 0
mov dword [esi + 4], 1
jmp 0x493eae
cmp byte [ebp + 0x24], 0
mov ebx, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
je 0x493dc8
push 2
push 0
push dword [esi + 8]
mov byte [esi + 0x18], 1
call ebx
push dword [esi + 8]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
mov ecx, eax
mov dword [ebp - 0x18], 0x2000
mov eax, 0x66666667
mov dword [ebp - 0x10], 0x8000
imul ecx
add esp, 0x10
mov byte [esi + 0x18], 1
sar edx, 3
lea ecx, [ebp - 0x18]
mov eax, edx
shr eax, 0x1f
add eax, edx
lea edx, [ebp - 0x1c]
cmp eax, 0x2000
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x10]
cmovge ecx, edx
cmp dword [ecx], 0x8000
cmovl eax, ecx
mov eax, dword [eax]
and eax, 0xffffe000
mov dword [esi + 0x1c], eax
cmp byte [esi + 0x18], 0
mov edi, 4
je 0x493e65
push edi
mov ecx, esi
call fcn.004337b0
mov ecx, eax
cmp ecx, 0xffffffff
je 0x493e7c
mov dword [esi + 0x50], ecx
mov eax, edi
add ecx, ecx
sub eax, dword [esi + ecx*8 + 0x24]
mov dword [esi + 0x54], eax
mov ecx, dword [esi + 0xc]
test ecx, ecx
je 0x493e05
mov eax, dword [ecx]
push 1
call dword [eax]
push 0x18
call fcn.0045afb5
add esp, 4
mov dword [ebp - 0x10], eax
mov ecx, eax
call fcn.00433320
mov dword [esi + 0xc], eax
mov dword [eax + 4], edi
cmp byte [esi + 0x18], 0
je 0x493e85
push 4
mov ecx, esi
call fcn.004337b0
cmp eax, 0xffffffff
je 0x493eae
mov dword [esi + 0x50], eax
add eax, eax
sub edi, dword [esi + eax*8 + 0x24]
mov dword [esi + 0x54], edi
lea eax, [ebp - 0x10]
mov ecx, esi
push eax
call fcn.00433450
test al, al
je 0x493eae
cmp dword [ebp - 0x10], 0xfe
jne 0x493eae
push dword [esi + 0xc]
mov ecx, esi
call fcn.004937a0
mov bl, al
jmp 0x493eb0
push 0
push 4
push dword [esi + 8]
call ebx
add esp, 0xc
test eax, eax
je 0x493df8
mov dword [esi + 4], 5
mov dword [esi + 4], 8
jmp 0x493eae
push 0
push 4
push dword [esi + 8]
call ebx
add esp, 0xc
test eax, eax
je 0x493e3f
mov dword [esi + 4], 5
jmp 0x493eae
mov dword [esi + 4], 4
jmp 0x493eae
mov dword [esi + 4], 2
xor bl, bl
mov ecx, dword [ebp + 0x1c]
cmp ecx, 0x10
jb 0x493ee6
mov edx, dword [ebp + 8]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x493edc
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x493edc
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.0045b34b
add esp, 8
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x20