Function at 0x4142d0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x234
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x230], eax
push ebx
push esi
mov esi, ecx
mov ebx, edx
push edi
push ebx
mov dword [esp + 0x14], ebx
mov eax, dword [esi + 0x14]
mov edi, dword [esi + 0xc]
sub edi, dword [eax]
sub edi, 0x10
sar edi, 4
dec edi
mov dword [esp + 0x1c], edi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_clearerr]
add esp, 4
mov ecx, esi
test edi, edi
jne 0x414370
push 1
mov edx, ebx
call fcn.00414080
mov edi, dword [ebp + 8]
add esp, 4
mov ebx, eax
inc edi
push dword [esp + 0x10]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ferror]
add esp, 4
test eax, eax
je 0x41463f
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov edi, dword [eax]
mov eax, dword [esi + 0xc]
push edi
mov byte [eax + 8], 0
add dword [esi + 0xc], 0x10
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_strerror]
add esp, 4
test eax, eax
jne 0x4145e8
mov eax, dword [esi + 0xc]
mov byte [eax + 8], 0
jmp 0x4145fe
lea edx, [edi + 0x14]
call fcn.004013d0
test eax, eax
je 0x414682
mov edi, dword [ebp + 8]
mov ebx, 1
mov eax, dword [esp + 0x18]
mov dword [esp + 0x14], edi
dec eax
mov dword [esp + 0x18], eax
test ebx, ebx
je 0x41432a
mov edx, edi
mov ecx, esi
call fcn.00401360
mov dl, byte [eax + 8]
test dl, 0xf
jne 0x4143b8
mov ecx, dword [esi + 0x10]
add ecx, 0x38
cmp eax, ecx
je 0x4144a9
and dl, 0xf
cmp dl, 3
jne 0x4144a9
lea eax, [esp + 0x1c]
mov edx, edi
push eax
mov ecx, esi
call fcn.00401740
add esp, 4
mov ebx, eax
cmp dword [esp + 0x1c], 0
je 0x414692
test ebx, ebx
jne 0x41443f
mov ebx, dword [esp + 0x10]
push ebx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_getc]
add esp, 4
mov dword [esp + 0x14], eax
push ebx
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ungetc]
add esp, 8
mov edx, 0x436da0
mov ecx, esi
call fcn.00424040
mov ecx, dword [esi + 0xc]
mov dword [ecx], eax
mov al, byte [eax + 4]
or al, 0x40
mov byte [ecx + 8], al
mov eax, dword [esi + 0x10]
add dword [esi + 0xc], 0x10
cmp dword [eax + 0xc], 0
jle 0x414430
mov ecx, esi
call fcn.00412a50
xor ebx, ebx
cmp dword [esp + 0x14], 0xffffffff
setne bl
jmp 0x4145d2
lea eax, [esp + 0x38]
mov dword [esp + 0x34], esi
mov dword [esp + 0x28], eax
lea ecx, [esp + 0x28]
mov eax, dword [esi + 0xc]
mov edx, ebx
mov dword [esp + 0x30], 0
mov dword [esp + 0x2c], 0x200
push 0xffffffffffffffff
mov dword [eax], ecx
mov byte [eax + 8], 2
add dword [esi + 0xc], 0x10
call fcn.004036d0
add esp, 4
push dword [esp + 0x10]
push ebx
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add esp, 0x10
lea ecx, [esp + 0x28]
mov edi, eax
add dword [esp + 0x30], edi
call fcn.00403900
xor eax, eax
cmp eax, edi
mov edi, dword [esp + 0x14]
sbb ebx, ebx
neg ebx
jmp 0x4145d2
mov edx, edi
mov ecx, esi
call fcn.00401360
mov cl, byte [eax + 8]
and cl, 0xf
cmp cl, 4
je 0x4144e8
cmp cl, 3
jne 0x4146a9
mov edx, eax
mov ecx, esi
call fcn.0041b8a0
mov eax, dword [esi + 0x10]
cmp dword [eax + 0xc], 0
jle 0x4144df
mov ecx, esi
call fcn.00412a50
mov edx, edi
mov ecx, esi
call fcn.00401360
mov eax, dword [eax]
add eax, 0x10
je 0x4146a9
mov cl, byte [eax]
cmp cl, 0x2a
jne 0x4144fd
mov cl, byte [eax + 1]
movsx eax, cl
add eax, 0xffffffb4
cmp eax, 0x22
ja case.0x414513.77
movzx eax, byte [eax + 0x4146c8]
jmp dword [eax*4 + 0x4146b4]
mov edx, dword [esp + 0x10]
mov ecx, esi
call fcn.00413c60
mov ebx, eax
jmp 0x4145d2
mov edx, dword [esp + 0x10]
mov ecx, esi
push 1
call fcn.00414080
add esp, 4
mov ebx, eax
jmp 0x4145d2
mov edx, dword [esp + 0x10]
mov ecx, esi
push 0
call fcn.00414080
add esp, 4
mov ebx, eax
jmp 0x4145d2
mov edi, dword [esp + 0x10]
lea eax, [esp + 0x38]
mov dword [esp + 0x28], eax
lea ecx, [esp + 0x28]
mov eax, dword [esi + 0xc]
mov dword [esp + 0x34], esi
mov dword [esp + 0x30], 0
mov dword [esp + 0x2c], 0x200
mov dword [eax], ecx
mov byte [eax + 8], 2
add dword [esi + 0xc], 0x10
nop dword [eax + eax]
push 0xffffffffffffffff
mov edx, 0x200
lea ecx, [esp + 0x2c]
call fcn.004036d0
add esp, 4
push edi
push 0x200
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add dword [esp + 0x40], eax
add esp, 0x10
cmp eax, 0x200
je 0x414590
mov edi, dword [esp + 0x14]
lea ecx, [esp + 0x28]
call fcn.00403900
mov ebx, 1
mov eax, dword [esp + 0x18]
inc edi
mov dword [esp + 0x14], edi
test eax, eax
jne 0x414390
jmp 0x41432a
mov edx, eax
mov ecx, esi
call fcn.00424040
mov ecx, dword [esi + 0xc]
mov dword [ecx], eax
mov al, byte [eax + 4]
or al, 0x40
mov byte [ecx + 8], al
mov ecx, dword [esi + 0x10]
add dword [esi + 0xc], 0x10
cmp dword [ecx + 0xc], 0
jle 0x414612
mov ecx, esi
call fcn.00412a50
mov ecx, dword [esi + 0xc]
mov eax, edi
cdq
mov dword [ecx], eax
mov eax, 3
mov dword [ecx + 4], edx
mov byte [ecx + 8], 3
add dword [esi + 0xc], 0x10
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x230]
xor ecx, esp
call fcn.00434cb0
mov esp, ebp
pop ebp
ret
test ebx, ebx
jne 0x414668
mov eax, dword [esi + 0xc]
sub eax, 0x10
cmp dword [esi + 0x24], eax
jb 0x41465d
push ebx
push 0xffffffffffffffff
mov edx, eax
mov ecx, esi
call fcn.00410640
add esp, 8
mov dword [esi + 0xc], eax
mov byte [eax + 8], 0
add dword [esi + 0xc], 0x10
sub edi, dword [ebp + 8]
mov ecx, dword [esp + 0x23c]
mov eax, edi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00434cb0
mov esp, ebp
pop ebp
ret
push str.too_many_arguments
push str.stack_overflow___s_
push esi
call fcn.00403010
mov edx, edi
mov ecx, esi
call fcn.00403510
push str.invalid_format
mov edx, edi
mov ecx, esi
call fcn.00402e10
push 4
mov edx, edi
mov ecx, esi
call fcn.00402f50
inc ebx
inc ebp
inc ecx
add byte [edi + 0x45], dl
inc ecx
add byte [eax*2 + 0x451a0041], ch
inc ecx
add byte [ebx + 0x4146], bl
add al, 4
add al, 4
add al, 4
add al, 4
add al, 4
add al, 4
add al, 4
add al, 4
add al, 4
add al, 4
add dword [esp + eax], eax
add al, 4
add al, 4
add al, 4
add al, 4
add al, byte [ebx + eax]
int3