Function at 0x405c30
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xd0
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x68]
mov dword [ebp - 8], edi
mov dword [ebp - 0xd0], 0x54a48c
mov dword [ebp - 0xc0], 0x54a494
call dword [sym.imp.MSVCP140.dll_protected:_void___thiscall_std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__::constructor_void_]
push 0
lea eax, [ebp - 0xb8]
push eax
lea ecx, [ebp - 0xd0]
call dword [sym.imp.MSVCP140.dll_public:_void___thiscall_std::basic_iostream_wchar_t__struct_std::char_traits_wchar_t__::constructor_class_std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t____]
mov eax, dword [ebp - 0xd0]
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0xd0], 0x54a488
mov eax, dword [ebp - 0xd0]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [ebp + ecx - 0xd4], eax
lea ecx, [ebp - 0xb8]
call dword [sym.imp.MSVCP140.dll_protected:_void___thiscall_std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__::constructor_void_]
push 0x403ad0
lea eax, [ebp - 0xc0]
mov dword [ebp - 0xb8], 0x54a44c
push 0x54a4a0
push eax
mov dword [ebp - 0x80], 0
mov dword [ebp - 0x7c], 0
call fcn.00403550
add esp, 8
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______thiscall_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t_______cdecl___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t_____]
push 0x403ad0
push 0x403ad0
lea eax, [ebp - 0xc0]
push str._CrashCollector_xmlns_http:__www.trionworld.com__
push eax
call fcn.00403550
add esp, 8
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______thiscall_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t_______cdecl___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t_____]
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______thiscall_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t_______cdecl___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t_____]
lea eax, [ebp - 0xc0]
mov ecx, edi
push eax
call fcn.00406ca0
lea eax, [ebp - 0xc0]
mov ecx, edi
push eax
call fcn.004071d0
lea eax, [ebp - 0xc0]
mov ecx, edi
push eax
call fcn.00406b20
lea eax, [ebp - 0xc0]
mov ecx, edi
push eax
call fcn.00407520
lea eax, [ebp - 0xc0]
mov ecx, edi
push eax
call fcn.00406d30
push 0x403ad0
lea eax, [ebp - 0xc0]
push str.__CrashCollector_
push eax
call fcn.00403550
add esp, 8
mov ecx, eax
call dword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______thiscall_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t_______cdecl___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t_____]
mov eax, dword [edi + 0x28]
mov ecx, 0x5b3144
push 0
test eax, eax
push 0x80
cmovne ecx, eax
push 2
push 0
push 0
push 0x40000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
setne bl
test bl, bl
jne 0x405db8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi + 0x6c], eax
jmp 0x405e30
lea eax, [ebp - 0x20]
mov dword [ebp - 4], 0
push eax
lea ecx, [ebp - 0xb8]
call fcn.0040c810
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
lea eax, [ebp - 4]
push 0
push eax
push 2
push 0x54a59c
push esi
call edi
test eax, eax
je 0x405e0b
cmp dword [ebp - 0xc], 8
lea eax, [ebp - 4]
push 0
push eax
mov eax, dword [ebp - 0x10]
lea ecx, [ebp - 0x20]
cmovae ecx, dword [ebp - 0x20]
add eax, eax
push eax
push ecx
push esi
call edi
test eax, eax
je 0x405e0b
mov bl, 1
jmp 0x405e19
xor bl, bl
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 8]
mov dword [ecx + 0x6c], eax
mov eax, dword [ebp - 0xc]
cmp eax, 8
jb 0x405e30
push 2
inc eax
push eax
push dword [ebp - 0x20]
call fcn.00402ea0
add esp, 0xc
cmp esi, 0xffffffff
je 0x405e3c
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0xd0]
mov eax, dword [eax + 4]
mov dword [ebp + eax - 0xd0], 0x54a488
mov eax, dword [ebp - 0xd0]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x68]
mov dword [ebp + ecx - 0xd4], eax
lea ecx, [ebp - 0xb8]
mov dword [ebp - 0xb8], 0x54a44c
call fcn.00408690
lea ecx, [ebp - 0xb8]
call dword [sym.imp.MSVCP140.dll_public_virtual:_void___thiscall_std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__::destructor_void_]
lea ecx, [ebp - 0xb0]
call dword [sym.imp.MSVCP140.dll_public_virtual:_void___thiscall_std::basic_iostream_wchar_t__struct_std::char_traits_wchar_t__::destructor_void_]
lea ecx, [ebp - 0x68]
call dword [sym.imp.MSVCP140.dll_public_virtual:_void___thiscall_std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__::destructor_void_]
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret