Function at 0x100013f0
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x1000294f
mov eax, dword fs:[0]
push eax
sub esp, 0x498
mov eax, dword [0x10004004]
xor eax, esp
mov dword [esp + 0x494], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x10004004]
xor eax, esp
push eax
lea eax, [esp + 0x4ac]
mov dword fs:[0], eax
mov esi, dword [esp + 0x4c0]
mov edi, dword [esp + 0x4bc]
xor eax, eax
xor ebp, ebp
mov dword [esp + 0x18], ebp
push 0x10003184
mov dword [esp + 0x9d], eax
mov dword [esp + 0xa1], eax
mov dword [esp + 0xa5], eax
mov word [esp + 0xa9], ax
mov byte [esp + 0xab], al
lea eax, [esp + 0x18]
push esi
push eax
mov dword [esp + 0x28], edi
mov byte [esp + 0xa4], 0
mov dword [esp + 0x20], ebp
call dword [sym.imp.MSVCR90.dll_fopen_s]
add esp, 0xc
cmp eax, ebp
je 0x100014b6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push str._s_cant_be_opened.__GetLastError__:__d___n
call fcn.10001000
add esp, 0xc
push 0x1000328c
mov ecx, edi
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
mov eax, edi
jmp 0x100015ed
push 0x3ff
lea ecx, [esp + 0xad]
push ebp
push ecx
mov byte [esp + 0xb4], 0
call sub.MSVCR90.dll_memset
lea edx, [esp + 0x2c]
push edx
call sub.LIBEAY32.dll_Ordinal_341
mov eax, dword [esp + 0x24]
mov esi, dword [sym.imp.MSVCR90.dll_fread]
push eax
push 0x400
lea ecx, [esp + 0xc0]
push 1
push ecx
call esi
add esp, 0x20
cmp eax, ebp
je 0x10001530
mov edi, edi
push eax
lea edx, [esp + 0xac]
push edx
lea eax, [esp + 0x28]
push eax
call sub.LIBEAY32.dll_Ordinal_342
mov ecx, dword [esp + 0x20]
push ecx
push 0x400
lea edx, [esp + 0xbc]
push 1
push edx
call esi
add esp, 0x1c
cmp eax, ebp
jne 0x10001500
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x9c]
push ecx
call sub.LIBEAY32.dll_Ordinal_340
mov eax, dword [esp + 0x1c]
add esp, 8
cmp eax, ebp
je 0x10001557
push eax
call dword [sym.imp.MSVCR90.dll_fclose]
add esp, 4
push 0x30
call fcn.10001f38
push 0x30
mov edi, eax
push ebp
push edi
call sub.MSVCR90.dll_memset
mov ebp, dword [sym.imp.MSVCR90.dll_sprintf]
add esp, 0x10
mov ebx, edi
xor esi, esi
jmp 0x10001580
movzx edx, byte [esp + esi + 0x98]
push edx
push str._02x
push edi
call ebp
inc esi
add esp, 0xc
add edi, 2
cmp esi, 0x10
jl 0x10001580
push ebx
lea ecx, [esp + 0x80]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
mov edi, 1
mov dword [esp + 0x4b4], edi
test ebx, ebx
je 0x100015c4
push ebx
call sub.MSVCR90.dll_void___cdecl_operator_delete___void__
add esp, 4
mov esi, dword [esp + 0x1c]
lea eax, [esp + 0x7c]
push eax
mov ecx, esi
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
lea ecx, [esp + 0x7c]
mov dword [esp + 0x18], edi
mov byte [esp + 0x4b4], 0
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov eax, esi
mov ecx, dword [esp + 0x4ac]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x494]
xor ecx, esp
call fcn.10001f43
add esp, 0x4a4
ret