Function at 0x10056de0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101ecfdb
mov eax, dword fs:[0]
push eax
sub esp, 0x84
mov eax, dword [0x10275008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
xorps xmm0, xmm0
movq qword [ebp - 0x38], xmm0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x88], edi
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 4], 0
xor eax, eax
push 5
mov dword [ebp - 0x1c], 0
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], 0
push 0x10236210
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], ax
call fcn.10005390
mov byte [ebp - 4], 1
lea eax, [ebp - 0x38]
push eax
lea edx, [ebp - 0x2c]
mov ecx, edi
call fcn.100605f0
add esp, 4
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call fcn.10005300
mov esi, dword [ebp - 0x38]
cmp esi, dword [ebp - 0x34]
je 0x100570e4
mov ebx, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
xor eax, eax
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x6c], 0
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x54], 7
mov word [ebp - 0x68], ax
mov byte [ebp - 4], 2
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], 7
mov word [ebp - 0x50], ax
mov byte [ebp - 4], 4
mov edx, edi
push esi
lea ecx, [ebp - 0x84]
call fcn.100e17c0
add esp, 4
mov byte [ebp - 4], 5
cmp dword [ebp - 0x74], 0
je 0x10056f8f
push 0
lea edx, [ebp - 0x84]
lea ecx, [ebp - 0x2c]
call fcn.100e2cb0
add esp, 4
mov byte [ebp - 4], 6
lea eax, [ebp - 0x2c]
cmp dword [ebp - 0x18], 0x10
push 0x1023621c
cmovae eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
mov edi, eax
add esp, 8
test edi, edi
jne 0x10056fcd
mov byte [ebp - 4], 5
mov edx, dword [ebp - 0x18]
cmp edx, 0x10
jb 0x10056f7d
mov ecx, dword [ebp - 0x2c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x10056f73
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100570de
push edx
push ecx
call fcn.101c8702
add esp, 8
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0xf
mov byte [ebp - 0x2c], 0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x84]
call fcn.10005300
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x50]
call fcn.10005300
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x68]
call fcn.10005300
add esi, 0x18
cmp esi, dword [ebp - 0x34]
je 0x100570e4
mov edi, dword [ebp - 0x88]
jmp 0x10056ea0
push 0
push 0x14
push edi
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
add esp, 0xc
push edi
test eax, eax
je 0x10056fea
call ebx
add esp, 4
jmp 0x10056f45
push 1
lea eax, [ebp - 0x11]
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add esp, 0x10
push edi
cmp eax, 1
jne 0x10056fe0
mov bl, byte [ebp - 0x11]
sar bl, 1
and bl, al
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
add esp, 4
mov byte [ebp - 4], 5
mov edx, dword [ebp - 0x18]
cmp edx, 0x10
jb 0x10057049
mov ecx, dword [ebp - 0x2c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1005703f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100570de
push edx
push ecx
call fcn.101c8702
add esp, 8
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0xf
mov byte [ebp - 0x2c], 0
test bl, bl
je 0x10056f8f
lea eax, [ebp - 0x50]
push eax
lea edx, [ebp - 0x68]
lea ecx, [ebp - 0x84]
call fcn.10060830
add esp, 4
test al, al
jne 0x10057094
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x84]
call fcn.10005300
mov byte [ebp - 4], 9
jmp 0x10056fa2
cmp dword [ebp - 0x3c], 8
lea eax, [ebp - 0x50]
jb 0x100570a4
mov eax, dword [ebp - 0x50]
test eax, eax
je 0x100570c6
push 0x10224a10
push eax
call dword [sym.imp.VCRUNTIME140.dll_wcsstr]
add esp, 8
test eax, eax
je 0x100570c6
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x6c], eax
lea eax, [ebp - 0x6c]
push eax
call fcn.10057180
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x84]
call fcn.10005300
mov byte [ebp - 4], 0xb
jmp 0x10056fa2
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x38]
call fcn.10008a90
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.101c837b
mov esp, ebp
pop ebp
ret 8