Function at 0x4d2a50
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x17c
mov eax, dword [0x641a90]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, ecx
push edi
push dword [ebp + 0x14]
mov edi, dword [ebp + 8]
push dword [ebp + 0x10]
mov dword [ebp - 0x17c], edi
push str.__RAW_:__d__d__n
mov dword [ebp - 0x178], esi
call fcn.005927a9
add esp, 0xc
cmp dword [esi + 0xa0], 0xffffffff
jne 0x4d2b35
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x4d2b35
push 0
push eax
push dword [edi]
call fcn.00595cb4
movzx eax, word [ebx + 0x44aa]
mov dword [ebp - 0x174], eax
movzx eax, word [ebx + 0x44a8]
mov dword [ebp - 0x170], eax
lea eax, [ebp - 0x170]
push eax
lea eax, [ebp - 0x174]
push eax
movzx eax, word [ebx + 0x44b0]
push eax
push dword [ebx + 0x245d4]
movzx eax, word [ebx + 0x44b6]
push eax
push 1
call fcn.004c8a90
push 0
push 0
push 1
push 0x10
push dword [ebp - 0x170]
lea eax, [ebx + 0x251]
push dword [ebp - 0x174]
push 0
push eax
push esi
push edi
call fcn.0047a900
add esp, 0x4c
test ax, ax
jne 0x4d2b35
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005920c1
mov esp, ebp
pop ebp
ret 0x10
mov eax, dword [ebp + 0x10]
test eax, eax
cmove eax, dword [ebp + 0x14]
cmp dword [ebx + 0x446cc], 0
mov dword [ebp + 0x10], eax
jne 0x4d2c40
cmp dword [ebx + 0x446c8], 0x4e8130
jne 0x4d2c40
push str.__RAW_:_1__n
call fcn.005927a9
lea eax, [ebp - 0x16c]
push eax
call fcn.00457d90
movzx ecx, word [ebx + 0x44b8]
movzx eax, word [ebx + 0x44ba]
push 0
push dword [ebp + 0x10]
mov dword [ebp - 0x158], eax
lea eax, [ecx + ecx*2]
push dword [edi]
mov dword [ebp - 0x154], 0x180001
mov dword [ebp - 0x15c], ecx
mov dword [ebp - 0x14c], eax
call fcn.00595cb4
lea eax, [ebp - 0x16c]
push eax
push esi
call fcn.00456000
movsx edi, ax
add esp, 0x1c
test edi, edi
jne 0x4d2c2b
mov ebx, dword [ebp - 0x178]
xor esi, esi
cmp dword [ebp - 0x158], esi
jle 0x4d2c1c
mov eax, dword [ebp - 0x17c]
push dword [eax]
push 1
push dword [ebp - 0x14c]
push dword [ebp - 0x160]
call fcn.00595b79
add esp, 0x10
test eax, eax
je 0x4d2c17
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push ebx
call fcn.004585b0
movsx edi, ax
add esp, 0x10
test edi, edi
jne 0x4d2c1c
inc esi
cmp esi, dword [ebp - 0x158]
jl 0x4d2bd4
jmp 0x4d2c1c
mov edi, 4
push 0
push 0
push 0
push ebx
call fcn.00453f80
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005920c1
mov esp, ebp
pop ebp
ret 0x10
test eax, eax
je 0x4d2cf8
movsx eax, byte [esi + 0x10a]
push eax
push str.__RAW_:_2____d__n
call fcn.005927a9
movzx eax, word [ebx + 0x44aa]
push 0
push dword [ebp + 0x10]
mov dword [ebp - 0x170], eax
movzx eax, word [ebx + 0x44a8]
push dword [edi]
mov dword [ebp - 0x174], eax
call fcn.00595cb4
lea eax, [ebp - 0x174]
push eax
lea eax, [ebp - 0x170]
push eax
movzx eax, word [ebx + 0x44b0]
push eax
push dword [ebx + 0x245d4]
movzx eax, word [ebx + 0x44b6]
push eax
push 1
call fcn.004c8a90
push dword [ebx + 0x4410]
lea eax, [ebx + 0x251]
push 0
push 1
push 0x10
push dword [ebp - 0x174]
push dword [ebp - 0x170]
push 0
push eax
push esi
push edi
call fcn.0047a900
add esp, 0x54
movsx edi, ax
push edi
push str.__ERROR_:__d__n
call fcn.005927a9
add esp, 8
test edi, edi
je 0x4d2c2b
cmp edi, 0xf
je 0x4d2c2b
push dword [ebx + 0x4fa58]
call fcn.005960c7
push 0
push 0
push dword [ebx + 0x4fa58]
mov edi, eax
call fcn.00595cb4
add esp, 0x10
mov ecx, ebx
push esi
push dword [ebp - 0x17c]
call fcn.004eaed0
push 0
push edi
push dword [ebx + 0x4fa58]
mov esi, eax
call fcn.00595cb4
push esi
push str.__RAW_:_3___d___n
call fcn.005927a9
add esp, 0x14
test esi, esi
je 0x4d2dd6
movzx eax, word [ebx + 0x44aa]
mov dword [ebp - 0x170], eax
movzx eax, word [ebx + 0x44a8]
mov dword [ebp - 0x174], eax
lea eax, [ebp - 0x174]
push eax
lea eax, [ebp - 0x170]
push eax
movzx eax, word [ebx + 0x44b0]
push eax
push dword [ebx + 0x245d4]
movzx eax, word [ebx + 0x44b6]
push eax
push 1
call fcn.004c8a90
push 0
push 0
push 1
push 0x10
push dword [ebp - 0x174]
lea eax, [ebx + 0x251]
mov ebx, dword [ebp - 0x178]
push dword [ebp - 0x170]
push 0
push eax
push ebx
push dword [ebp - 0x17c]
call fcn.0047a900
add esp, 0x40
cwde
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005920c1
mov esp, ebp
pop ebp
ret 0x10
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005920c1
mov esp, ebp
pop ebp
ret 0x10