Function at 0x101382e0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101405ee
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x4c
push esi
push edi
mov dword [ebp - 0x58], ecx
lea ecx, [ebp - 0x30]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_void_]
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 0
mov eax, dword [ebp - 0x58]
add eax, 0x10
call fcn.10026d50
test eax, eax
jne 0x1013833b
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
jmp 0x101384a1
lea eax, [ebp - 0x30]
push eax
mov ecx, dword [ebp - 0x58]
call fcn.101381f0
push 0x1014db94
lea ecx, [ebp - 0x30]
call dword [sym.imp.MSVCP80.dll_public:_char_const____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::c_str_void_const]
push eax
lea ecx, [ebp - 0x10]
push ecx
call dword [sym.imp.MSVCR80.dll_fopen_s]
add esp, 0xc
test eax, eax
je 0x1013837c
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
jmp 0x101384a1
mov dword [ebp - 0x14], 0
mov ecx, dword [ebp - 0x58]
add ecx, 0x10
lea eax, [ebp - 0x38]
call fcn.10026a40
jmp 0x1013839e
lea edi, [ebp - 0x44]
lea eax, [ebp - 0x38]
call fcn.10027460
mov ecx, dword [ebp - 0x58]
add ecx, 0x10
lea eax, [ebp - 0x4c]
call fcn.10026d40
mov esi, eax
lea edi, [ebp - 0x38]
call fcn.1002b830
movzx edx, al
test edx, edx
je 0x10138453
mov eax, dword [ebp - 0x14]
add eax, 0x101a6f30
mov dword [ebp - 0x3c], eax
lea ecx, [ebp - 0x38]
call fcn.10118c80
mov ecx, eax
call dword [sym.imp.MSVCP80.dll_public:_char_const____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::c_str_void_const]
push eax
push 0x80
mov ecx, dword [ebp - 0x3c]
push ecx
call dword [sym.imp.MSVCR80.dll_strcpy_s]
add esp, 0xc
lea ecx, [ebp - 0x38]
call fcn.10118c80
add eax, 0x1c
mov ecx, eax
call dword [sym.imp.MSVCP80.dll_public:_char_const____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::c_str_void_const]
push eax
push 0x80
mov edx, dword [ebp - 0x3c]
add edx, 0x80
push edx
call dword [sym.imp.MSVCR80.dll_strcpy_s]
add esp, 0xc
mov eax, dword [ebp - 0x14]
add eax, 0x100
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0x18c00
jl 0x1013844e
mov ecx, dword [ebp - 0x10]
push ecx
push 1
mov edx, dword [ebp - 0x14]
push edx
push 0x101a6f30
call dword [sym.imp.MSVCR80.dll_fwrite]
add esp, 0x10
mov dword [ebp - 0x14], 0
jmp 0x10138393
cmp dword [ebp - 0x14], 0
je 0x10138471
mov eax, dword [ebp - 0x10]
push eax
push 1
mov ecx, dword [ebp - 0x14]
push ecx
push 0x101a6f30
call dword [sym.imp.MSVCR80.dll_fwrite]
add esp, 0x10
cmp dword [ebp - 0x10], 0
je 0x10138491
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.MSVCR80.dll_fflush]
add esp, 4
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.MSVCR80.dll_fclose]
add esp, 4
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret