Function at 0x414490
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
mov eax, dword [0x455134]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov dword [ebp - 0x38], ecx
call fcn.00402a80
mov dword [ebp - 0x50], eax
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x50]
push ecx
call fcn.00404090
add esp, 8
movzx edx, al
test edx, edx
je 0x4144d4
lea eax, [ebp + 8]
push eax
call fcn.004040c0
add esp, 4
jmp 0x41466f
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 0x41451e
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 0x41451e
lea ecx, [ebp + 8]
push ecx
call fcn.00404070
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 dl, byte [ebp - 0x39]
mov byte [eax], dl
mov eax, dword [ebp + 8]
jmp 0x41466f
mov eax, dword [ebp - 0x38]
cmp dword [eax + 0x4c], 0
jne 0x414531
call fcn.00402a80
jmp 0x41466f
mov ecx, dword [ebp - 0x38]
call fcn.00415b10
mov ecx, dword [ebp - 0x38]
cmp dword [ecx + 0x38], 0
jne 0x41458a
mov edx, dword [ebp - 0x38]
mov eax, dword [edx + 0x4c]
mov dword [ebp - 0x54], eax
lea ecx, [ebp + 8]
push ecx
call fcn.00404070
add esp, 4
mov byte [ebp - 0x3a], al
mov edx, dword [ebp - 0x54]
push edx
movzx eax, byte [ebp - 0x3a]
push eax
call fcn.00411720
add esp, 8
movzx ecx, al
test ecx, ecx
je 0x41457a
mov edx, dword [ebp + 8]
mov dword [ebp - 0x48], edx
jmp 0x414582
call fcn.00402a80
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x48]
jmp 0x41466f
mov dword [ebp - 0x5c], 0x20
lea eax, [ebp + 8]
push eax
call fcn.00404070
add esp, 4
mov byte [ebp - 0x2a], al
mov ecx, dword [ebp - 0x38]
mov edx, dword [ecx + 0x38]
mov dword [ebp - 0x58], edx
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 8]
push ecx
lea edx, [ebp - 0x28]
push edx
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0x29]
push ecx
lea edx, [ebp - 0x2a]
push edx
mov eax, dword [ebp - 0x38]
add eax, 0x40
push eax
mov ecx, dword [ebp - 0x58]
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
jl 0x41466a
cmp dword [ebp - 0x40], 1
jle 0x4145ec
cmp dword [ebp - 0x40], 3
je 0x41463a
jmp 0x41466a
mov ecx, dword [ebp - 0x30]
lea edx, [ebp - 0x28]
sub ecx, edx
mov dword [ebp - 0x44], ecx
je 0x41461f
mov eax, dword [ebp - 0x38]
mov ecx, dword [eax + 0x4c]
push ecx
mov edx, dword [ebp - 0x44]
push edx
push 1
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp dword [ebp - 0x44], eax
je 0x41461f
call fcn.00402a80
jmp 0x41466f
mov ecx, dword [ebp - 0x38]
mov byte [ecx + 0x3d], 1
lea edx, [ebp - 0x2a]
cmp dword [ebp - 0x34], edx
je 0x414633
mov eax, dword [ebp + 8]
jmp 0x41466f
call fcn.00402a80
jmp 0x41466f
mov eax, dword [ebp - 0x38]
mov ecx, dword [eax + 0x4c]
push ecx
movzx edx, byte [ebp - 0x2a]
push edx
call fcn.00411720
add esp, 8
movzx eax, al
test eax, eax
je 0x41465d
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x4c], ecx
jmp 0x414665
call fcn.00402a80
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x4c]
jmp 0x41466f
call fcn.00402a80
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004397b1
mov esp, ebp
pop ebp
ret 4