Function at 0x10078f50
Capabilities:
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x1009d74f
mov eax, dword fs:[0]
push eax
sub esp, 0xe0
mov eax, dword [0x100cd8ec]
xor eax, esp
mov dword [esp + 0xdc], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x100cd8ec]
xor eax, esp
push eax
lea eax, [esp + 0xf4]
mov dword fs:[0], eax
mov eax, dword [esp + 0x108]
xor ebp, ebp
mov edi, 0x10
or ebx, 0xffffffff
cmp dword [esp + 0x11c], edi
mov dword [esp + 0xfc], 2
mov dword [esp + 0x18], ebp
mov dword [esp + 0x14], ebp
jae 0x10078fbf
lea eax, [esp + 0x108]
mov ecx, dword [esp + 0x118]
push ecx
push eax
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x20]
push eax
push 0xfde9
call fcn.1007e450
add esp, 0x14
test eax, eax
jne 0x100791d3
cmp dword [esp + 0x120], 1
jne 0x10079044
mov ecx, dword [esp + 0x14]
push ebp
push 0xa
push ecx
call dword [sym.imp.MSVCR80.dll_int___cdecl__wopen_wchar_t_const___int__int_]
mov esi, eax
add esp, 0xc
cmp esi, ebp
jl 0x100791d3
cmp dword [esp + 0x158], edi
mov eax, dword [esp + 0x144]
jae 0x10079023
lea eax, [esp + 0x144]
mov edx, dword [esp + 0x154]
push edx
push eax
push esi
call dword [sym.imp.MSVCR80.dll__write]
push esi
call dword [sym.imp.MSVCR80.dll__close]
add esp, 0x10
xor ebx, ebx
jmp 0x100791d3
push 0x1009fc09
lea ecx, [esp + 0x3c]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
lea ecx, [esp + 0x54]
mov byte [esp + 0xfc], 3
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 eax, dword [esp + 0x14]
push 0x100ad89c
push eax
mov byte [esp + 0x104], 4
call dword [sym.imp.MSVCR80.dll__wfopen]
mov edi, eax
add esp, 8
cmp edi, ebp
je 0x100791af
mov ebp, dword [sym.imp.MSVCR80.dll_fgets]
push edi
lea ecx, [esp + 0x74]
push 0x80
push ecx
call ebp
add esp, 0xc
test eax, eax
je 0x10079167
mov esi, dword [sym.imp.MSVCP80.dll_bool___cdecl_std::operator_char__struct_std::char_traits_char___class_std::allocator_char___class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const___class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
mov edi, edi
lea edx, [esp + 0x70]
push edx
lea ecx, [esp + 0x58]
call dword [0x1009f138]
push 1
push 0
push 0x100ad8c8
lea ecx, [esp + 0x60]
call dword [sym.imp.MSVCP80.dll_public:_unsigned_int___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::find_char_const___unsigned_int__unsigned_int_const]
mov ecx, dword [sym.imp.MSVCP80.dll_unsigned_int_const_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::npos]
cmp eax, dword [ecx]
je 0x100790e3
lea edx, [esp + 0x54]
push edx
jmp 0x10079145
push 1
push 0
push 0x100a603c
lea ecx, [esp + 0x60]
call dword [sym.imp.MSVCP80.dll_public:_unsigned_int___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::find_char_const___unsigned_int__unsigned_int_const]
push eax
push 0
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x60]
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char_____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::substr_unsigned_int__unsigned_int_]
push eax
lea ecx, [esp + 0x128]
push ecx
mov byte [esp + 0x104], 5
call esi
add esp, 8
lea ecx, [esp + 0x1c]
mov bl, al
mov byte [esp + 0xfc], 4
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
test bl, bl
je 0x10079140
lea edx, [esp + 0x140]
push edx
jmp 0x10079145
lea eax, [esp + 0x54]
push eax
lea ecx, [esp + 0x3c]
call dword [0x1009f134]
push edi
lea ecx, [esp + 0x74]
push 0x80
push ecx
call ebp
add esp, 0xc
test eax, eax
jne 0x100790b0
push edi
mov edi, dword [sym.imp.MSVCR80.dll_fclose]
call edi
mov edx, dword [esp + 0x18]
push 0x100ad8c4
push edx
call dword [sym.imp.MSVCR80.dll__wfopen]
mov esi, eax
add esp, 0xc
test esi, esi
je 0x100791ad
cmp dword [esp + 0x50], 0x10
mov eax, dword [esp + 0x3c]
jae 0x10079198
lea eax, [esp + 0x3c]
mov ecx, dword [esp + 0x4c]
push esi
push 1
push ecx
push eax
call dword [sym.imp.MSVCR80.dll_fwrite]
push esi
call edi
add esp, 0x14
xor ebx, ebx
lea ecx, [esp + 0x54]
mov byte [esp + 0xfc], 3
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0x38]
mov byte [esp + 0xfc], 2
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 eax, dword [esp + 0x14]
test eax, eax
je 0x100791e5
push eax
call dword [sym.imp.MSVCR80.dll_free]
add esp, 4
lea ecx, [esp + 0x104]
mov byte [esp + 0xfc], 1
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0x124]
mov byte [esp + 0xfc], 0
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
lea ecx, [esp + 0x140]
mov dword [esp + 0xfc], 0xffffffff
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 eax, ebx
mov ecx, dword [esp + 0xf4]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xdc]
xor ecx, esp
call fcn.10090e24
add esp, 0xec
ret 0x58