Function at 0x414330
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5022bd
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xd0
push ebx
mov ebx, dword [sym.imp.Common.dll_public:_void___thiscall_CTXStringW::constructor_wchar_t_const__]
push esi
push edi
push 0x5281e0
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x14], 1
call ebx
mov dword [ebp - 4], 0
mov ecx, dword [ebp + 8]
mov esi, dword [sym.imp.Common.dll_public:_wchar_t_const____thiscall_CTXStringW::operator_wchar_t_const__void_const]
add ecx, 0x124
call esi
push eax
lea ecx, [ebp - 0x1c]
call ebx
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x1c]
push ecx
lea edx, [ebp - 0x10]
push edx
mov byte [ebp - 4], 1
call dword [sym.imp.Common.dll_class_CTXStringW___cdecl_Util::FS::CombinePath_class_CTXStringW_const___class_CTXStringW_const__]
add esp, 0xc
mov byte [ebp - 4], 3
mov edi, dword [sym.imp.Common.dll_public:_void___thiscall_CTXStringW::destructor_void_]
lea ecx, [ebp - 0x1c]
call edi
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 4
call edi
push 0
push 0x40000000
push 3
push 0
push 1
push SysReAllocString
lea ecx, [ebp - 0x10]
call esi
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileW]
push eax
call edi
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4143ea
mov dword [ebp - 0x14], 0
jmp 0x4144be
push 0
push 0
push 1
push 0
push 2
push 0x10000000
lea ecx, [ebp - 0x10]
call esi
push eax
call edi
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4144be
mov ecx, 0x20
mov esi, 0x528210
lea edi, [ebp - 0xdc]
rep movsd dword es:[edi], dword [esi]
lea ecx, [ebp - 0x3c]
movsw word es:[edi], word [esi]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_void_]
lea eax, [ebp - 0xdc]
push eax
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 5
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_wchar_t_const__]
push 0xfde9
lea ecx, [ebp - 0x3c]
push ecx
lea edx, [ebp - 0x58]
push edx
mov byte [ebp - 4], 6
call fcn.00457d10
add esp, 0xc
lea ecx, [ebp - 0x58]
mov byte [ebp + 0xb], al
mov byte [ebp - 4], 5
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
cmp byte [ebp + 0xb], 0
je 0x4144b1
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
xor edi, edi
push edi
lea eax, [ebp - 0x20]
push eax
push 3
lea ecx, [ebp + 8]
push ecx
push ebx
mov dword [ebp - 0x20], edi
mov byte [ebp + 8], 0xef
mov byte [ebp + 9], 0xbb
mov byte [ebp + 0xa], 0xbf
call esi
cmp dword [ebp - 0x24], 0x10
mov eax, dword [ebp - 0x38]
jae 0x41449d
lea eax, [ebp - 0x38]
mov ecx, dword [ebp - 0x28]
push edi
lea edx, [ebp - 0x20]
push edx
push ecx
push eax
push ebx
call esi
cmp eax, edi
je 0x4144b1
mov dword [ebp - 0x14], edi
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 4
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], 0xffffffff
call dword [sym.imp.Common.dll_public:_void___thiscall_CTXStringW::destructor_void_]
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x14]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4