Function at 0x42eaa6
Capabilities:
Write file on windows

Disassembly:
push 0x4c
mov eax, 0x46950e
call fcn.00463278
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov edi, dword [ebp + 0x14]
mov dword [ebp - 0x54], ecx
mov ecx, dword [ebp + 0x10]
push 0x47e748
push eax
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x58], edi
mov bl, 1
call dword [0x471c70]
xor esi, esi
cmp eax, esi
pop ecx
pop ecx
mov dword [ebp - 0x50], eax
jne 0x42eb32
cmp dword [ebp - 0x3c], esi
je 0x42eb2b
xor eax, eax
lea edi, [ebp - 0x48]
stosb byte es:[edi], al
call dword [0x471ca8]
push 0xffffffffffffffff
push dword [eax]
call dword [0x471ca4]
pop ecx
push eax
push dword [ebp - 0x48]
lea ecx, [ebp - 0x50]
call dword [sym.imp.AuCommon.dll_public:_void___thiscall_CTXStringW::constructor_struct_tagEN__char_const___int_]
mov ecx, eax
mov dword [ebp - 4], esi
call dword [sym.imp.AuCommon.dll_public:_wchar_t_const____thiscall_CTXStringW::operator_wchar_t_const__void_const]
mov ecx, dword [ebp - 0x3c]
push eax
call dword [0x4714e8]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x50]
call dword [sym.imp.AuCommon.dll_public:_void___thiscall_CTXStringW::destructor_void_]
xor al, al
jmp 0x42ec5a
cmp edi, esi
je 0x42eb3d
mov eax, dword [edi]
mov dword [ebp - 0x48], eax
jmp 0x42eb40
mov dword [ebp - 0x48], esi
push 9
mov word [ebp - 0x38], si
pop ecx
xor eax, eax
lea edi, [ebp - 0x36]
rep stosd dword es:[edi], eax
mov ecx, dword [ebp - 0x54]
stosw word es:[edi], ax
call dword [0x4714c0]
cmp eax, esi
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x4c], esi
je 0x42ebcf
mov ecx, dword [ebp - 0x54]
push esi
push esi
push esi
push esi
push eax
call dword [0x4714a0]
mov edi, dword [0x471268]
push eax
push esi
mov ebx, 0xfde9
push ebx
call edi
mov dword [ebp - 0x4c], eax
inc eax
push eax
call fcn.004623c0
pop ecx
mov ecx, dword [ebp - 0x54]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x4c]
push esi
push esi
inc eax
push eax
push dword [ebp - 0x40]
push dword [ebp - 0x44]
call dword [0x4714a0]
push eax
push esi
push ebx
call edi
push dword [ebp - 0x50]
push 1
push dword [ebp - 0x4c]
push dword [ebp - 0x40]
call dword [0x471c88]
push dword [ebp - 0x40]
mov ebx, eax
dec ebx
neg ebx
sbb bl, bl
inc bl
call fcn.004623ba
add esp, 0x14
cmp dword [ebp - 0x3c], esi
je 0x42ebef
push dword [ebp - 0x4c]
lea eax, [ebp - 0x38]
push eax
push dword [ebp - 0x44]
push str._d_wide_chars_to__s_d_bytes
push dword [ebp - 0x3c]
call dword [0x47149c]
add esp, 0x14
test bl, bl
jne 0x42ec42
cmp dword [ebp - 0x3c], esi
je 0x42ec42
xor eax, eax
lea edi, [ebp - 0x44]
stosb byte es:[edi], al
call dword [0x471ca8]
push 0xffffffffffffffff
push dword [eax]
call dword [0x471ca4]
pop ecx
push eax
push dword [ebp - 0x44]
lea ecx, [ebp - 0x40]
call dword [sym.imp.AuCommon.dll_public:_void___thiscall_CTXStringW::constructor_struct_tagEN__char_const___int_]
mov ecx, eax
mov dword [ebp - 4], 1
call dword [sym.imp.AuCommon.dll_public:_wchar_t_const____thiscall_CTXStringW::operator_wchar_t_const__void_const]
mov ecx, dword [ebp - 0x3c]
push eax
call dword [0x4714e8]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call dword [sym.imp.AuCommon.dll_public:_void___thiscall_CTXStringW::destructor_void_]
push dword [ebp - 0x50]
call dword [0x471c60]
mov eax, dword [ebp - 0x58]
cmp eax, esi
pop ecx
je 0x42ec58
mov ecx, dword [ebp - 0x48]
mov dword [eax], ecx
mov al, bl
call fcn.004632fb
ret