Function at 0x433f5c
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov dword [ebp - 0x10], ecx
cmp dword [ebp + 8], 0
jne 0x433f82
push 0
push 0
push 0
push 2
mov ecx, dword [ebp - 0x10]
call fcn.0043704a
xor al, al
jmp 0x434133
mov ecx, dword [ebp - 0x10]
call fcn.004346c1
mov ecx, dword [ebp - 0x10]
add ecx, 4
call fcn.0042f1ce
and dword [ebp - 0x18], 0
push 2
push 0
push dword [ebp + 8]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
add esp, 0xc
push dword [ebp + 8]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
pop ecx
mov dword [ebp - 0x18], eax
push 0
push 0
push dword [ebp + 8]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
add esp, 0xc
cmp dword [ebp - 0x18], 0
jg 0x433fe3
push 0
push 0
push 0
push 0xc
mov ecx, dword [ebp - 0x10]
call fcn.0043704a
xor al, al
jmp 0x434133
mov eax, dword [ebp - 0x18]
inc eax
push eax
call dword [sym.imp.mfc140u.dll_operator]
pop ecx
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
mov dword [ebp - 8], eax
xor eax, eax
inc eax
imul eax, eax, 0
mov ecx, dword [ebp - 8]
mov byte [ecx + eax], 0
push dword [ebp + 8]
push 1
push dword [ebp - 0x18]
push dword [ebp - 8]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add esp, 0x10
cmp eax, 1
je 0x43405e
mov eax, dword [ebp - 8]
mov dword [ebp - 0x1c], eax
push dword [ebp - 0x1c]
call dword [sym.imp.mfc140u.dll_operator_1]
pop ecx
cmp dword [ebp - 0x1c], 0
jne 0x43403a
and dword [ebp - 0x2c], 0
jmp 0x434047
mov dword [ebp - 8], 0x8123
mov eax, dword [ebp - 8]
mov dword [ebp - 0x2c], eax
push 0
push 0
push 0
push 2
mov ecx, dword [ebp - 0x10]
call fcn.0043704a
xor al, al
jmp 0x434133
mov eax, dword [ebp - 8]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x14], eax
mov byte [ebp - 1], 0xd
mov byte [ebp - 2], 0xa
mov eax, dword [ebp - 8]
add eax, dword [ebp - 0x18]
mov byte [eax], 0
mov eax, dword [ebp - 0xc]
movsx eax, byte [eax]
test eax, eax
je 0x4340d2
mov eax, dword [ebp - 0xc]
movsx eax, byte [eax]
cmp eax, 0xd
jne 0x4340b8
mov eax, dword [ebp - 0x14]
mov byte [eax], 0xa
mov eax, dword [ebp - 0x14]
inc eax
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0xc]
inc eax
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
movsx eax, byte [eax]
cmp eax, 0xa
jne 0x4340b6
mov eax, dword [ebp - 0xc]
inc eax
mov dword [ebp - 0xc], eax
jmp 0x4340d0
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov cl, byte [ecx]
mov byte [eax], cl
mov eax, dword [ebp - 0x14]
inc eax
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0xc]
inc eax
mov dword [ebp - 0xc], eax
jmp 0x43407b
mov eax, dword [ebp - 0x14]
mov byte [eax], 0
push dword [ebp + 0xc]
push 0
push dword [ebp - 8]
mov eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov ecx, dword [ebp - 0x10]
call dword [eax + 8]
mov eax, dword [ebp - 8]
mov dword [ebp - 0x20], eax
push dword [ebp - 0x20]
call dword [sym.imp.mfc140u.dll_operator_1]
pop ecx
cmp dword [ebp - 0x20], 0
jne 0x434107
and dword [ebp - 0x30], 0
jmp 0x434114
mov dword [ebp - 8], 0x8123
mov eax, dword [ebp - 8]
mov dword [ebp - 0x30], eax
mov ecx, dword [ebp - 0x10]
call fcn.0042f77a
movzx eax, al
test eax, eax
jne 0x43412c
mov dword [ebp - 0x24], 1
jmp 0x434130
and dword [ebp - 0x24], 0
mov al, byte [ebp - 0x24]
leave
ret 8