Function at 0x10001e50
Capabilities:
Read file on windows

Disassembly:
mov eax, 0x10074
call fcn.1000a650
mov eax, dword [0x10011020]
xor eax, esp
mov dword [esp + 0x1006c], eax
mov eax, dword [esp + 0x1007c]
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x18], esi
mov dword [esp + 0x14], eax
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10001e80
sub eax, edx
mov ebp, eax
cmp ebp, 0x400
jg 0x100020d1
mov eax, dword [esp + 0x10094]
push eax
push 0x1000cbb0
lea ecx, [esp + 0x10040]
push 0x40
push ecx
call dword [sym.imp.MSVCR90.dll__snprintf]
lea eax, [esp + 0x10048]
add esp, 0x10
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10001ec1
sub eax, edx
push 0x1000cbb4
lea edx, [esp + 0x14]
push esi
push edx
mov ebx, eax
mov dword [esp + 0x1c], 0
call dword [sym.imp.MSVCR90.dll_fopen_s]
add esp, 0xc
test eax, eax
jne 0x1000204e
mov edi, dword [sym.imp.MSVCR90.dll_fseek]
push eax
push eax
mov eax, dword [esp + 0x18]
push eax
call edi
mov ecx, dword [esp + 0x1c]
push ecx
call dword [sym.imp.MSVCR90.dll_ferror]
add esp, 0x10
test eax, eax
jne 0x1000204e
mov edx, dword [esp + 0x10]
push 2
push eax
push edx
call edi
mov eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.MSVCR90.dll_ftell]
mov ecx, dword [esp + 0x20]
push 0
push 0
push ecx
mov esi, eax
call edi
add esp, 0x1c
test esi, esi
je 0x1000204e
push esi
call fcn.100097b8
mov edi, eax
add esp, 4
test edi, edi
jne 0x10001f92
push str.NULL__buffer_n
call fcn.100013b0
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.MSVCR90.dll_fclose]
mov eax, dword [esp + 0x10090]
add esp, 8
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
xor eax, eax
mov ecx, dword [esp + 0x1007c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.10009c3c
add esp, 0x10074
ret
push esi
push 0
push edi
call sub.MSVCR90.dll_memset
mov ecx, dword [esp + 0x1c]
push ecx
push esi
push 1
push edi
call dword [sym.imp.MSVCR90.dll_fread]
add esp, 0x1c
cmp eax, esi
je 0x10001fb8
push str.read___size_n
jmp 0x10001f56
mov eax, dword [esp + 0x10]
test eax, eax
je 0x10001fca
push eax
call dword [sym.imp.MSVCR90.dll_fclose]
add esp, 4
mov edx, dword [esp + 0x10088]
lea ecx, [ebx + ebp]
push 8
push edx
lea eax, [esp + 0x24]
mov dword [esp + 0x24], 0x444e4553
mov dword [esp + 0x28], ecx
call fcn.100014e0
add esp, 8
test eax, eax
jne 0x10002038
mov eax, dword [esp + 0x14]
push ebp
mov ebp, dword [esp + 0x1008c]
push ebp
call fcn.100014e0
add esp, 8
test eax, eax
jne 0x1000203f
push ebx
push ebp
lea eax, [esp + 0x10040]
call fcn.100014e0
add esp, 8
test eax, eax
jne 0x1000203f
push esi
push edi
push ebp
lea ebx, [esp + 0x3c]
call fcn.100017f0
push edi
call sub.MSVCR90.dll_void___cdecl_operator_delete___void__
add esp, 0x10
jmp 0x10002055
mov ebp, dword [esp + 0x10088]
push edi
call dword [sym.imp.MSVCR90.dll_free]
add esp, 4
jmp 0x100020d8
mov ebp, dword [esp + 0x10088]
mov eax, dword [esp + 0x10090]
mov dword [esp + 0x20], eax
push 8
push ebp
lea eax, [esp + 0x24]
mov dword [esp + 0x24], 0x454e4f44
call fcn.100014e0
add esp, 8
test eax, eax
jne 0x100020d8
push 8
push ebp
lea eax, [esp + 0x24]
call fcn.10001410
add esp, 8
test eax, eax
jne 0x10002128
mov eax, dword [esp + 0x1c]
cmp eax, 0x59414b4f
je 0x10001f77
cmp eax, 0x4c494146
jne 0x100020f4
mov esi, dword [esp + 0x20]
cmp esi, 0x100
jle 0x100020b9
mov esi, pe_nt_image_headers32
push esi
push ebp
lea eax, [esp + 0x40]
call fcn.10001410
add esp, 8
test eax, eax
jne 0x10002128
mov byte [esp + esi + 0x38], al
jmp 0x1000210c
mov ebp, dword [esp + 0x10088]
push str.protocol_failure_n
call fcn.100013b0
add esp, 4
push ebp
call dword [sym.imp.WS2_32.dll_closesocket]
or eax, 0xffffffff
jmp 0x10001f79
push str.unknown_reason
lea ecx, [esp + 0x3c]
push ?find@?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QBEIABV12@I@Z
push ecx
call dword [sym.imp.MSVCR90.dll_strcpy_s]
add esp, 0xc
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x38]
push edx
push eax
push ecx
push str.failed_to_copy__s_to__s:__s_n
call fcn.10001350
add esp, 0x10
or eax, 0xffffffff
jmp 0x10001f79