Function at 0x78498609
Capabilities:
Write file on windows

Disassembly:
push 0x54
mov eax, 0x784b9976
call fcn.784b8b66
mov edi, dword [ebp + 8]
mov eax, 0xffff
mov esi, ecx
cmp ax, di
jne 0x78498633
lea eax, [ebp + 8]
push eax
call sym.MSVCP90.dll_public:_static_unsigned_short_int___cdecl_std::char_traits_unsigned_short_int_::not_eof_unsigned_short_int_const__
pop ecx
jmp 0x784987af
mov eax, dword [esi + 0x24]
mov ecx, dword [eax]
xor ebx, ebx
cmp ecx, ebx
je 0x78498661
mov eax, dword [esi + 0x34]
mov edx, dword [eax]
lea edx, [ecx + edx*2]
cmp ecx, edx
jae 0x78498661
dec dword [eax]
mov esi, dword [esi + 0x24]
mov eax, dword [esi]
lea ecx, [eax + 2]
mov dword [esi], ecx
mov word [eax], di
mov ax, di
jmp 0x784987af
mov eax, dword [esi + 0x4c]
cmp eax, ebx
je 0x784987aa
cmp dword [esi + 0x3c], ebx
jne 0x7849868a
push eax
push edi
call fcn.7848cb7b
pop ecx
test al, al
pop ecx
movzx eax, di
jne 0x784987af
jmp 0x784987aa
movzx eax, di
push ebx
push 8
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x30], eax
call sym.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_unsigned_int__char_
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], ebx
call sym.MSVCP90.dll_public:_class_std::_String_iterator_char__struct_std::char_traits_char___class_std::allocator_char_____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::begin_void_
mov ecx, eax
call fcn.78486152
mov edi, dword [ebp - 0x18]
mov ebx, eax
lea eax, [ebp - 0x50]
push eax
lea ecx, [ebp - 0x2c]
call sym.MSVCP90.dll_public:_class_std::_String_iterator_char__struct_std::char_traits_char___class_std::allocator_char_____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::begin_void_
mov ecx, eax
call fcn.78486152
lea edx, [ebp - 0x38]
add edi, ebx
push edx
lea ebx, [esi + 0x44]
jmp 0x7849877c
cmp eax, 1
jg 0x784987b7
lea eax, [ebp - 0x58]
push eax
lea ecx, [ebp - 0x2c]
call sym.MSVCP90.dll_public:_class_std::_String_iterator_char__struct_std::char_traits_char___class_std::allocator_char_____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::begin_void_
mov ecx, eax
call fcn.78486152
mov edi, dword [ebp - 0x38]
sub edi, eax
je 0x78498721
lea eax, [ebp - 0x60]
push eax
lea ecx, [ebp - 0x2c]
call sym.MSVCP90.dll_public:_class_std::_String_iterator_char__struct_std::char_traits_char___class_std::allocator_char_____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::begin_void_
mov ecx, eax
call fcn.78486152
push dword [esi + 0x4c]
push edi
push 1
push eax
call dword [sym.imp.MSVCR90.dll_fwrite]
add esp, 0x10
cmp edi, eax
jne 0x7849879e
lea eax, [ebp - 0x30]
mov byte [esi + 0x42], 1
cmp dword [ebp - 0x3c], eax
jne 0x784987e7
test edi, edi
ja 0x78498747
cmp dword [ebp - 0x18], 0x20
push 0
lea ecx, [ebp - 0x2c]
jae 0x784987a3
push 8
call sym.MSVCP90.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__::append_unsigned_int__char_
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x2c]
call sym.MSVCP90.dll_public:_class_std::_String_iterator_char__struct_std::char_traits_char___class_std::allocator_char_____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::begin_void_
mov ecx, eax
call fcn.78486152
mov edi, dword [ebp - 0x18]
mov dword [ebp - 0x40], eax
lea eax, [ebp - 0x50]
push eax
lea ecx, [ebp - 0x2c]
call sym.MSVCP90.dll_public:_class_std::_String_iterator_char__struct_std::char_traits_char___class_std::allocator_char_____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::begin_void_
mov ecx, eax
call fcn.78486152
lea edx, [ebp - 0x38]
push edx
mov edx, dword [ebp - 0x40]
add edi, edx
mov ecx, dword [esi + 0x3c]
push edi
push eax
lea edx, [ebp - 0x3c]
push edx
lea edx, [ebp - 0x2e]
push edx
lea edx, [ebp - 0x30]
push edx
mov dword [ebp - 0x34], eax
mov eax, dword [ecx]
push ebx
call dword [eax + 0x14]
test eax, eax
jge 0x784986d7
push 0
lea ecx, [ebp - 0x2c]
push 1
call sym.MSVCP90.dll_protected:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool__unsigned_int_
mov eax, 0xffff
call fcn.784b8bf8
ret 4
cmp eax, 3
jne 0x7849879e
push dword [esi + 0x4c]
push dword [ebp - 0x30]
call fcn.7848cb7b
movzx esi, word [ebp + 8]
pop ecx
pop ecx
test al, al
jne 0x784987d6
mov esi, 0xffff
push 0
push 1
lea ecx, [ebp - 0x2c]
call sym.MSVCP90.dll_protected:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool__unsigned_int_
mov ax, si
jmp 0x784987af
push 0
push 1
lea ecx, [ebp - 0x2c]
call sym.MSVCP90.dll_protected:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::_Tidy_bool__unsigned_int_
mov ax, word [ebp + 8]
jmp 0x784987af