Function at 0x42ec86
Capabilities:
Write file on windows

Disassembly:
push 0x4c
mov eax, 0x46983e
call fcn.0046359a
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 0x47e7c4
push eax
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x58], edi
mov bl, 1
call dword [sym.imp.MSVCR80.dll__wfopen]
xor esi, esi
cmp eax, esi
pop ecx
pop ecx
mov dword [ebp - 0x50], eax
jne 0x42ed12
cmp dword [ebp - 0x3c], esi
je 0x42ed0b
xor eax, eax
lea edi, [ebp - 0x48]
stosb byte es:[edi], al
call dword [sym.imp.MSVCR80.dll__errno]
push 0xffffffffffffffff
push dword [eax]
call dword [sym.imp.MSVCR80.dll_strerror]
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 [sym.imp.MFC80U.DLL_Ordinal_776]
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 0x42ee3a
cmp edi, esi
je 0x42ed1d
mov eax, dword [edi]
mov dword [ebp - 0x48], eax
jmp 0x42ed20
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 [sym.imp.MFC80U.DLL_Ordinal_2895]
cmp eax, esi
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x4c], esi
je 0x42edaf
mov ecx, dword [ebp - 0x54]
push esi
push esi
push esi
push esi
push eax
call dword [sym.imp.MFC80U.DLL_Ordinal_870]
mov edi, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push eax
push esi
mov ebx, 0xfde9
push ebx
call edi
mov dword [ebp - 0x4c], eax
inc eax
push eax
call sub.MFC80U.DLL_Ordinal_265
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 [sym.imp.MFC80U.DLL_Ordinal_870]
push eax
push esi
push ebx
call edi
push dword [ebp - 0x50]
push 1
push dword [ebp - 0x4c]
push dword [ebp - 0x40]
call dword [sym.imp.MSVCR80.dll_fwrite]
push dword [ebp - 0x40]
mov ebx, eax
dec ebx
neg ebx
sbb bl, bl
inc bl
call sub.MFC80U.DLL_Ordinal_266
add esp, 0x14
cmp dword [ebp - 0x3c], esi
je 0x42edcf
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 [sym.imp.MFC80U.DLL_Ordinal_2311]
add esp, 0x14
test bl, bl
jne 0x42ee22
cmp dword [ebp - 0x3c], esi
je 0x42ee22
xor eax, eax
lea edi, [ebp - 0x44]
stosb byte es:[edi], al
call dword [sym.imp.MSVCR80.dll__errno]
push 0xffffffffffffffff
push dword [eax]
call dword [sym.imp.MSVCR80.dll_strerror]
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 [sym.imp.MFC80U.DLL_Ordinal_776]
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 [sym.imp.MSVCR80.dll_fclose]
mov eax, dword [ebp - 0x58]
cmp eax, esi
pop ecx
je 0x42ee38
mov ecx, dword [ebp - 0x48]
mov dword [eax], ecx
mov al, bl
call int.0046361d
ret