Function at 0x10019ef0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
mov eax, dword [0x100d8b80]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov dword [ebp - 0x38], ecx
mov eax, dword [ebp + 8]
push eax
call fcn.10019d00
push eax
call fcn.10019d10
add esp, 8
movzx ecx, al
test ecx, ecx
je 0x10019f2e
mov edx, dword [ebp + 8]
push edx
call fcn.10019eb0
add esp, 4
jmp 0x1001a0c5
mov ecx, dword [ebp - 0x38]
call dword [sym.imp.MSVCP140.dll_protected:_char____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::pptr_void_const]
test eax, eax
je 0x10019f78
mov ecx, dword [ebp - 0x38]
call dword [sym.imp.MSVCP140.dll_protected:_char____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::pptr_void_const]
mov esi, eax
mov ecx, dword [ebp - 0x38]
call dword [sym.imp.MSVCP140.dll_protected:_char____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::epptr_void_const]
cmp esi, eax
jae 0x10019f78
mov eax, dword [ebp + 8]
push eax
call fcn.1001a5b0
add esp, 4
mov byte [ebp - 0x39], al
mov ecx, dword [ebp - 0x38]
call dword [sym.imp.MSVCP140.dll_protected:_char____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::_Pninc_void_]
mov cl, byte [ebp - 0x39]
mov byte [eax], cl
mov eax, dword [ebp + 8]
jmp 0x1001a0c5
mov edx, dword [ebp - 0x38]
cmp dword [edx + 0x4c], 0
jne 0x10019f8b
call fcn.10019d00
jmp 0x1001a0c5
mov ecx, dword [ebp - 0x38]
call fcn.10019a30
mov eax, dword [ebp - 0x38]
cmp dword [eax + 0x38], 0
jne 0x10019fe4
mov ecx, dword [ebp - 0x38]
mov edx, dword [ecx + 0x4c]
mov dword [ebp - 0x50], edx
mov eax, dword [ebp + 8]
push eax
call fcn.1001a5b0
add esp, 4
mov byte [ebp - 0x3a], al
mov ecx, dword [ebp - 0x50]
push ecx
movzx edx, byte [ebp - 0x3a]
push edx
call fcn.10017a10
add esp, 8
movzx eax, al
test eax, eax
je 0x10019fd4
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x48], ecx
jmp 0x10019fdc
call fcn.10019d00
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x48]
jmp 0x1001a0c5
mov dword [ebp - 0x58], 0x20
mov edx, dword [ebp + 8]
push edx
call fcn.1001a5b0
add esp, 4
mov byte [ebp - 0x2a], al
mov eax, dword [ebp - 0x38]
mov ecx, dword [eax + 0x38]
mov dword [ebp - 0x54], ecx
lea edx, [ebp - 0x30]
push edx
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 0x28]
push ecx
lea edx, [ebp - 0x34]
push edx
lea eax, [ebp - 0x29]
push eax
lea ecx, [ebp - 0x2a]
push ecx
mov edx, dword [ebp - 0x38]
add edx, 0x40
push edx
mov ecx, dword [ebp - 0x54]
call dword [sym.imp.MSVCP140.dll_public:_int___thiscall_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet___char_const___char_const___char_const____char___char___char___const]
mov dword [ebp - 0x40], eax
cmp dword [ebp - 0x40], 0
je 0x1001a042
cmp dword [ebp - 0x40], 1
je 0x1001a042
cmp dword [ebp - 0x40], 3
je 0x1001a090
jmp 0x1001a0c0
mov eax, dword [ebp - 0x30]
lea ecx, [ebp - 0x28]
sub eax, ecx
mov dword [ebp - 0x44], eax
je 0x1001a075
mov edx, dword [ebp - 0x38]
mov eax, dword [edx + 0x4c]
push eax
mov ecx, dword [ebp - 0x44]
push ecx
push 1
lea edx, [ebp - 0x28]
push edx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp dword [ebp - 0x44], eax
je 0x1001a075
call fcn.10019d00
jmp 0x1001a0c5
mov eax, dword [ebp - 0x38]
mov byte [eax + 0x3d], 1
lea ecx, [ebp - 0x2a]
cmp dword [ebp - 0x34], ecx
je 0x1001a089
mov eax, dword [ebp + 8]
jmp 0x1001a0c5
call fcn.10019d00
jmp 0x1001a0c5
mov edx, dword [ebp - 0x38]
mov eax, dword [edx + 0x4c]
push eax
movzx ecx, byte [ebp - 0x2a]
push ecx
call fcn.10017a10
add esp, 8
movzx edx, al
test edx, edx
je 0x1001a0b3
mov eax, dword [ebp + 8]
mov dword [ebp - 0x4c], eax
jmp 0x1001a0bb
call fcn.10019d00
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x4c]
jmp 0x1001a0c5
call fcn.10019d00
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1007a885
mov esp, ebp
pop ebp
ret 4