Function at 0x41efc9
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push esi
mov dword [ebp - 0x4c], ecx
mov ecx, dword [ebp - 0x4c]
call fcn.0041ed83
test eax, eax
jne 0x41efe6
xor eax, eax
jmp 0x41f310
cmp dword [ebp + 8], 0
je 0x41eff8
cmp dword [ebp + 0xc], 0
je 0x41eff8
cmp dword [ebp + 0x10], 0
jne 0x41efff
xor eax, eax
jmp 0x41f310
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
mov ecx, dword [ebp - 0x4c]
call fcn.0041f317
test eax, eax
jne 0x41f01e
xor eax, eax
jmp 0x41f310
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x20]
push ecx
mov edx, dword [ebp - 0x18]
push edx
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov ecx, dword [ebp - 0x4c]
call fcn.0041f556
test eax, eax
jne 0x41f04a
mov edx, dword [ebp - 0xc]
mov dword [ebp - 0x20], edx
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp + 0xc]
push ecx
call sub.MSVCRT.dll_strlen
add esp, 4
mov esi, eax
mov edx, dword [ebp + 0x10]
push edx
call sub.MSVCRT.dll_strlen
add esp, 4
lea eax, [esi + eax + 5]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x1c]
add ecx, 1
push ecx
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [ebp - 0x28], eax
mov edx, dword [ebp - 0x28]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x14]
sub eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x4c]
mov edx, dword [ecx + 8]
sub edx, eax
mov eax, dword [ebp - 0x1c]
lea ecx, [edx + eax + 1]
push ecx
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [ebp - 0x2c], eax
mov edx, dword [ebp - 0x2c]
mov dword [ebp - 8], edx
mov eax, dword [ebp - 0x14]
sub eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x4c]
mov edx, dword [ecx + 8]
sub edx, eax
mov eax, dword [ebp - 0x1c]
lea ecx, [edx + eax + 1]
push ecx
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [ebp - 0x30], eax
mov edx, dword [ebp - 0x30]
mov dword [ebp - 4], edx
cmp dword [ebp - 0x10], 0
je 0x41f0e3
cmp dword [ebp - 8], 0
je 0x41f0e3
cmp dword [ebp - 4], 0
jne 0x41f132
cmp dword [ebp - 0x10], 0
je 0x41f0fb
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x34], eax
mov ecx, dword [ebp - 0x34]
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
cmp dword [ebp - 8], 0
je 0x41f113
mov edx, dword [ebp - 8]
mov dword [ebp - 0x38], edx
mov eax, dword [ebp - 0x38]
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
cmp dword [ebp - 4], 0
je 0x41f12b
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x3c], ecx
mov edx, dword [ebp - 0x3c]
push edx
call sub.MFC42.DLL_operatordelete
add esp, 4
xor eax, eax
jmp 0x41f310
mov eax, dword [ebp - 0x1c]
add eax, 1
push eax
push 0
mov ecx, dword [ebp - 0x10]
push ecx
call sub.MSVCRT.dll_memset
add esp, 0xc
mov edx, dword [ebp - 0x1c]
add edx, 1
push edx
push 0
mov eax, dword [ebp - 8]
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
mov ecx, dword [ebp - 0x1c]
add ecx, 1
push ecx
push 0
mov edx, dword [ebp - 4]
push edx
call sub.MSVCRT.dll_memset
add esp, 0xc
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
push str._s___s_r_n
mov edx, dword [ebp - 0x1c]
push edx
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.MSVCRT.dll__snprintf]
add esp, 0x14
mov ecx, dword [ebp - 0x4c]
mov edx, dword [ebp - 0x20]
sub edx, dword [ecx]
push edx
mov eax, dword [ebp - 0x4c]
mov ecx, dword [eax]
push ecx
mov edx, dword [ebp - 8]
push edx
call sub.MSVCRT.dll_memcpy
add esp, 0xc
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp - 0x4c]
mov eax, dword [ebp - 0x20]
sub eax, dword [edx]
mov ecx, dword [ebp - 8]
add ecx, eax
push ecx
call sub.MSVCRT.dll_memcpy
add esp, 0xc
mov edx, dword [ebp - 0x4c]
mov eax, dword [ebp - 0x14]
sub eax, dword [edx]
mov ecx, dword [ebp - 0x4c]
mov edx, dword [ecx + 8]
sub edx, eax
add edx, 1
push edx
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp - 0x4c]
mov edx, dword [ebp - 0x20]
sub edx, dword [ecx]
mov eax, dword [ebp - 8]
add eax, edx
add eax, dword [ebp - 0x1c]
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x40], ecx
mov edx, dword [ebp - 0x40]
push edx
call sub.MFC42.DLL_operatordelete
add esp, 4
mov eax, dword [ebp - 0x4c]
mov ecx, dword [eax]
mov dword [ebp - 0x44], ecx
mov edx, dword [ebp - 0x44]
push edx
call sub.MFC42.DLL_operatordelete
add esp, 4
mov eax, dword [ebp - 0x4c]
mov ecx, dword [eax + 4]
mov dword [ebp - 0x48], ecx
mov edx, dword [ebp - 0x48]
push edx
call sub.MFC42.DLL_operatordelete
add esp, 4
mov eax, dword [ebp - 0x14]
sub eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x4c]
mov edx, dword [ecx + 8]
sub edx, eax
add edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x4c]
mov dword [eax + 8], edx
mov ecx, dword [ebp - 0x4c]
mov edx, dword [ebp - 8]
mov dword [ecx], edx
mov eax, dword [ebp - 0x4c]
mov ecx, dword [ebp - 4]
mov dword [eax + 4], ecx
mov edx, dword [ebp - 0x4c]
mov eax, dword [edx + 8]
add eax, 1
push eax
mov ecx, dword [ebp - 0x4c]
mov edx, dword [ecx]
push edx
mov eax, dword [ebp - 0x4c]
mov ecx, dword [eax + 4]
push ecx
call sub.MSVCRT.dll_memcpy
add esp, 0xc
mov edx, dword [ebp - 0x4c]
mov eax, dword [edx + 8]
add eax, 1
push eax
mov ecx, dword [ebp - 0x4c]
mov edx, dword [ecx + 4]
push edx
mov ecx, dword [ebp - 0x4c]
call fcn.0041fb02
mov eax, dword [ebp - 0x4c]
cmp dword [eax + 0x10], 0
jne 0x41f2a1
xor eax, eax
jmp 0x41f310
push 0x49eb14
mov ecx, dword [ebp - 0x4c]
mov edx, dword [ecx + 0x10]
push edx
call dword [sym.imp.MSVCRT.dll_fopen]
add esp, 8
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jne 0x41f2c3
xor eax, eax
jmp 0x41f310
mov eax, dword [ebp - 0x24]
push eax
mov ecx, dword [ebp - 0x4c]
mov edx, dword [ecx + 8]
push edx
push 1
mov eax, dword [ebp - 0x4c]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.MSVCRT.dll_fwrite]
add esp, 0x10
mov dword [ebp - 0x1c], eax
mov edx, dword [ebp - 0x4c]
mov eax, dword [ebp - 0x1c]
cmp eax, dword [edx + 8]
je 0x41f2fe
mov ecx, dword [ebp - 0x24]
push ecx
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
xor eax, eax
jmp 0x41f310
mov edx, dword [ebp - 0x24]
push edx
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret 0xc