Function at 0x40bba0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6c
push ebx
push esi
push edi
push ecx
lea edi, [ebp - 0x6c]
push 0x1b
pop ecx
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
pop ecx
mov eax, dword [0x43b004]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 8], ecx
call fcn.0040b606
mov dword [ebp - 0x60], eax
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x60]
push eax
call fcn.0040b60e
pop ecx
pop ecx
movzx eax, al
test eax, eax
je 0x40bbf2
lea eax, [ebp + 8]
push eax
call fcn.0040b9fa
pop ecx
jmp 0x40bda4
mov esi, esp
mov ecx, dword [ebp - 8]
call dword [sym.imp.MSVCP140.dll_protected:_char____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::pptr_void_const]
cmp esi, esp
call fcn.00411bb8
test eax, eax
je 0x40bc5a
mov esi, esp
mov ecx, dword [ebp - 8]
call dword [sym.imp.MSVCP140.dll_protected:_char____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::pptr_void_const]
cmp esi, esp
call fcn.00411bb8
mov esi, eax
mov edi, esp
mov ecx, dword [ebp - 8]
call dword [sym.imp.MSVCP140.dll_protected:_char____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::epptr_void_const]
cmp edi, esp
call fcn.00411bb8
cmp esi, eax
jae 0x40bc5a
lea eax, [ebp + 8]
push eax
call fcn.0040c457
pop ecx
mov bl, al
mov esi, esp
mov ecx, dword [ebp - 8]
call dword [sym.imp.MSVCP140.dll_protected:_char____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::_Pninc_void_]
cmp esi, esp
call fcn.00411bb8
mov byte [eax], bl
mov eax, dword [ebp + 8]
jmp 0x40bda4
mov eax, dword [ebp - 8]
cmp dword [eax + 0x4c], 0
jne 0x40bc6d
call fcn.0040b606
jmp 0x40bda4
mov ecx, dword [ebp - 8]
call fcn.0040add5
mov eax, dword [ebp - 8]
cmp dword [eax + 0x38], 0
jne 0x40bcb8
mov eax, dword [ebp - 8]
push dword [eax + 0x4c]
lea eax, [ebp + 8]
push eax
call fcn.0040c457
pop ecx
movzx eax, al
push eax
call fcn.00403b28
pop ecx
pop ecx
movzx eax, al
test eax, eax
je 0x40bca8
mov eax, dword [ebp + 8]
mov dword [ebp - 0x64], eax
jmp 0x40bcb0
call fcn.0040b606
mov dword [ebp - 0x64], eax
mov eax, dword [ebp - 0x64]
jmp 0x40bda4
mov dword [ebp - 0xc], 0x20
lea eax, [ebp + 8]
push eax
call fcn.0040c457
pop ecx
mov byte [ebp - 0x39], al
mov esi, esp
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x38]
push eax
lea eax, [ebp - 0x39]
push eax
mov eax, dword [ebp - 8]
add eax, 0x40
push eax
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x38]
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]
cmp esi, esp
call fcn.00411bb8
mov dword [ebp - 0x68], eax
cmp dword [ebp - 0x68], 0
jl 0x40bd9f
cmp dword [ebp - 0x68], 1
jle 0x40bd1e
cmp dword [ebp - 0x68], 3
je 0x40bd73
jmp 0x40bd9f
mov eax, dword [ebp - 0x54]
lea ecx, [ebp - 0x30]
sub eax, ecx
mov dword [ebp - 0x5c], eax
je 0x40bd58
mov esi, esp
mov eax, dword [ebp - 8]
push dword [eax + 0x4c]
push dword [ebp - 0x5c]
push 1
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp esi, esp
call fcn.00411bb8
cmp dword [ebp - 0x5c], eax
je 0x40bd58
call fcn.0040b606
jmp 0x40bda4
mov eax, dword [ebp - 8]
mov byte [eax + 0x3d], 1
lea eax, [ebp - 0x39]
cmp dword [ebp - 0x48], eax
je 0x40bd6c
mov eax, dword [ebp + 8]
jmp 0x40bda4
call fcn.0040b606
jmp 0x40bda4
mov eax, dword [ebp - 8]
push dword [eax + 0x4c]
push dword [ebp - 0x39]
call fcn.00403b28
pop ecx
pop ecx
movzx eax, al
test eax, eax
je 0x40bd92
mov eax, dword [ebp + 8]
mov dword [ebp - 0x6c], eax
jmp 0x40bd9a
call fcn.0040b606
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp - 0x6c]
jmp 0x40bda4
call fcn.0040b606
push edx
mov ecx, ebp
push eax
lea edx, [0x40bdd0]
call fcn.00411b62
pop eax
pop edx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00411bf0
add esp, 0x6c
cmp ebp, esp
call fcn.00411bb8
leave
ret 4