Function at 0x4100c0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43a3dd
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x100
push ebx
push esi
mov esi, ecx
mov dword [ebp - 0x14], 0
cmp dword [esi + 0x14], 8
jb 0x4100f1
mov esi, dword [esi]
lea ecx, [ebp - 0x5c]
mov dword [ebp - 0xc4], 0x449050
call dword [sym.imp.MSVCP140.dll_protected:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::constructor_void_]
push 0
push 0
lea eax, [ebp - 0xc0]
mov dword [ebp - 4], 0
push eax
lea ecx, [ebp - 0xc4]
mov dword [ebp - 0x14], 1
call dword [sym.imp.MSVCP140.dll_public:_void___thiscall_std::basic_ostream_char__struct_std::char_traits_char__::constructor_class_std::basic_streambuf_char__struct_std::char_traits_char_____bool_]
mov dword [ebp - 4], 1
mov eax, dword [ebp - 0xc4]
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0xc4], vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov eax, dword [ebp - 0xc4]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [ebp + ecx - 0xc8], eax
lea eax, [ebp - 0xc0]
mov ecx, eax
mov dword [ebp - 0xc8], eax
call dword [sym.imp.MSVCP140.dll_protected:_void___thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::constructor_void_]
mov byte [ebp - 4], 2
lea ecx, [ebp - 0xc0]
mov dword [ebp - 0xc0], vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov byte [ebp - 0x78], 0
mov byte [ebp - 0x83], 0
call dword [sym.imp.MSVCP140.dll_protected:_void___thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::_Init_void_]
mov eax, dword [0x459e44]
mov ecx, dword [0x459e48]
mov dword [ebp - 0x74], 0
mov dword [ebp - 0x80], eax
mov dword [ebp - 0x7c], ecx
mov dword [ebp - 0x88], 0
push ecx
push 0x22
push esi
lea ecx, [ebp - 0xc0]
mov byte [ebp - 4], 3
call fcn.0040cec0
test eax, eax
jne 0x4101e2
mov eax, dword [ebp - 0xc4]
lea ecx, [ebp - 0xc4]
push 0
push 2
add ecx, dword [eax + 4]
call dword [sym.imp.MSVCP140.dll_public:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool_]
push 0
push 0x2f70
push 0x4454d0
lea ecx, [ebp - 0xc4]
mov dword [ebp - 4], 4
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______thiscall_std::basic_ostream_char__struct_std::char_traits_char__::write_char_const___long_long___int64__]
mov ecx, dword [eax]
mov ecx, dword [ecx + 4]
test byte [ecx + eax + 0xc], 6
je 0x4103b7
cmp dword [ebp - 0x74], 0
je 0x41035e
mov eax, dword [ebp - 0xb4]
lea ecx, [ebp - 0x84]
cmp dword [eax], ecx
jne 0x410245
mov edx, dword [ebp - 0x6c]
mov ecx, dword [ebp - 0x70]
sub edx, ecx
mov dword [eax], ecx
mov eax, dword [ebp - 0xa4]
mov dword [eax], ecx
mov eax, dword [ebp - 0x94]
mov dword [eax], edx
cmp dword [ebp - 0x88], 0
je 0x4102bd
cmp byte [ebp - 0x83], 0
je 0x4102bd
mov eax, dword [ebp - 0xc0]
lea ecx, [ebp - 0xc0]
push 0xffffffffffffffff
mov eax, dword [eax + 0xc]
cmp eax, fcn.0040c660
jne 0x410276
call fcn.0040c660
jmp 0x410278
call eax
cmp eax, 0xffffffff
jne 0x410281
xor al, al
jmp 0x4102bf
mov ecx, dword [ebp - 0x88]
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0xc8]
push eax
lea eax, [ebp - 0xe8]
push eax
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.MSVCP140.dll_public:_int___thiscall_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet___char___char___char___const]
sub eax, 0
je 0x410320
sub eax, 1
je 0x410327
sub eax, 2
je 0x4102b6
xor al, al
jmp 0x4102bf
mov byte [ebp - 0x83], 0
mov al, 1
push dword [ebp - 0x74]
xor ecx, ecx
lea esi, [ebp - 0xc0]
test al, al
cmove esi, ecx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
xor ecx, ecx
add esp, 4
test eax, eax
mov byte [ebp - 0x78], cl
mov byte [ebp - 0x83], cl
cmovne esi, ecx
lea ecx, [ebp - 0xc0]
call dword [sym.imp.MSVCP140.dll_protected:_void___thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::_Init_void_]
mov eax, dword [0x459e44]
mov ecx, dword [0x459e48]
mov dword [ebp - 0x74], 0
mov dword [ebp - 0x80], eax
mov dword [ebp - 0x7c], ecx
mov dword [ebp - 0x88], 0
test esi, esi
jne 0x4103b0
jmp 0x410397
mov byte [ebp - 0x83], 0
mov esi, dword [ebp - 0x14]
lea eax, [ebp - 0xe8]
sub esi, eax
je 0x41034f
push dword [ebp - 0x74]
push esi
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp esi, eax
je 0x41034f
xor al, al
jmp 0x4102bf
cmp byte [ebp - 0x83], 0
sete al
jmp 0x4102bf
lea ecx, [ebp - 0xc0]
mov byte [ebp - 0x78], 0
mov byte [ebp - 0x83], 0
call dword [sym.imp.MSVCP140.dll_protected:_void___thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::_Init_void_]
mov eax, dword [0x459e44]
mov ecx, dword [0x459e48]
mov dword [ebp - 0x74], 0
mov dword [ebp - 0x80], eax
mov dword [ebp - 0x7c], ecx
mov dword [ebp - 0x88], 0
mov eax, dword [ebp - 0xc4]
lea ecx, [ebp - 0xc4]
push 0
push 2
add ecx, dword [eax + 4]
call dword [sym.imp.MSVCP140.dll_public:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool_]
xor bl, bl
jmp 0x410558
cmp dword [ebp - 0x74], 0
je 0x410504
mov eax, dword [ebp - 0xb4]
lea ecx, [ebp - 0x84]
cmp dword [eax], ecx
jne 0x4103eb
mov edx, dword [ebp - 0x6c]
mov ecx, dword [ebp - 0x70]
sub edx, ecx
mov dword [eax], ecx
mov eax, dword [ebp - 0xa4]
mov dword [eax], ecx
mov eax, dword [ebp - 0x94]
mov dword [eax], edx
cmp dword [ebp - 0x88], 0
je 0x410463
cmp byte [ebp - 0x83], 0
je 0x410463
mov eax, dword [ebp - 0xc0]
lea ecx, [ebp - 0xc0]
push 0xffffffffffffffff
mov eax, dword [eax + 0xc]
cmp eax, fcn.0040c660
jne 0x41041c
call fcn.0040c660
jmp 0x41041e
call eax
cmp eax, 0xffffffff
jne 0x410427
xor al, al
jmp 0x410465
mov ecx, dword [ebp - 0x88]
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0xe8]
push eax
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.MSVCP140.dll_public:_int___thiscall_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet___char___char___char___const]
sub eax, 0
je 0x4104c6
sub eax, 1
je 0x4104cd
sub eax, 2
je 0x41045c
xor al, al
jmp 0x410465
mov byte [ebp - 0x83], 0
mov al, 1
push dword [ebp - 0x74]
xor ecx, ecx
lea esi, [ebp - 0xc0]
test al, al
cmove esi, ecx
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
xor ecx, ecx
add esp, 4
test eax, eax
mov byte [ebp - 0x78], cl
mov byte [ebp - 0x83], cl
cmovne esi, ecx
lea ecx, [ebp - 0xc0]
call dword [sym.imp.MSVCP140.dll_protected:_void___thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::_Init_void_]
mov eax, dword [0x459e44]
mov ecx, dword [0x459e48]
mov dword [ebp - 0x74], 0
mov dword [ebp - 0x80], eax
mov dword [ebp - 0x7c], ecx
mov dword [ebp - 0x88], 0
test esi, esi
jne 0x410556
jmp 0x41053d
mov byte [ebp - 0x83], 0
mov esi, dword [ebp - 0x14]
lea eax, [ebp - 0x108]
sub esi, eax
je 0x4104f5
push dword [ebp - 0x74]
push esi
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp esi, eax
je 0x4104f5
xor al, al
jmp 0x410465
cmp byte [ebp - 0x83], 0
sete al
jmp 0x410465
lea ecx, [ebp - 0xc0]
mov byte [ebp - 0x78], 0
mov byte [ebp - 0x83], 0
call dword [sym.imp.MSVCP140.dll_protected:_void___thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::_Init_void_]
mov eax, dword [0x459e44]
mov ecx, dword [0x459e48]
mov dword [ebp - 0x74], 0
mov dword [ebp - 0x80], eax
mov dword [ebp - 0x7c], ecx
mov dword [ebp - 0x88], 0
mov eax, dword [ebp - 0xc4]
lea ecx, [ebp - 0xc4]
push 0
push 2
add ecx, dword [eax + 4]
call dword [sym.imp.MSVCP140.dll_public:_void___thiscall_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool_]
mov bl, 1
lea ecx, [ebp - 0xc4]
call fcn.00410580
mov ecx, dword [ebp - 0xc]
mov al, bl
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret