Function at 0x4ad850
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x14
push ebx
mov ebx, dword [esp + 0x1c]
push ebp
push esi
mov esi, ecx
push edi
test ebx, ebx
mov dword [esp + 0x14], esi
jne 0x4ad871
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x14
ret 4
mov ebp, dword [sym.imp.MSVCRT.dll_fwrite]
push ebx
push 1
push 0x13
push str.V_CNC_PROJECT_FILE
call ebp
add esp, 0x10
cmp eax, 1
je 0x4ad897
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x14
ret 4
mov edi, str.TURN
or ecx, 0xffffffff
xor eax, eax
lea edx, [esi + 0x64]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push ebx
mov eax, ecx
mov esi, edi
mov edi, edx
push 1
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push 4
and ecx, 3
push edx
rep movsb byte es:[edi], byte [esi]
call ebp
add esp, 0x10
cmp eax, 1
je 0x4ad8d8
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x14
ret 4
mov esi, dword [esp + 0x14]
mov ecx, dword [esi + 0x90]
lea edi, [esi + 0x90]
mov eax, dword [ecx - 8]
test eax, eax
mov dword [esp + 0x10], eax
jle 0x4ad953
mov dx, word [0x52a248]
mov al, byte [0x52a24a]
push ebx
push 1
lea ecx, [esp + 0x30]
push 2
push ecx
mov word [esp + 0x38], dx
mov byte [esp + 0x3a], al
call ebp
push ebx
push 1
lea edx, [esp + 0x28]
push 4
push edx
call ebp
mov eax, dword [esp + 0x30]
add esp, 0x20
mov ecx, edi
push ebx
push 1
push eax
push eax
call sub.MFC42.DLL_CString::GetBuffer
push eax
call ebp
push ebx
push 1
lea eax, [esp + 0x40]
push 2
push eax
call ebp
add esp, 0x20
mov ecx, edi
push 0xffffffffffffffff
call sub.MFC42.DLL_CString::ReleaseBuffer
jmp 0x4ad9d9
mov ecx, dword [str.No_Comment]
mov ax, word [0x52c97c]
mov edx, dword [0x52c978]
mov dword [esp + 0x18], ecx
mov cl, byte [0x52c97e]
mov word [esp + 0x20], ax
mov al, byte [0x52a24a]
mov byte [esp + 0x22], cl
mov byte [esp + 0x2a], al
lea edi, [esp + 0x18]
or ecx, 0xffffffff
xor eax, eax
mov dword [esp + 0x1c], edx
mov dx, word [0x52a248]
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ebx
mov dword [esp + 0x18], ecx
push 1
lea ecx, [esp + 0x30]
push 2
push ecx
mov word [esp + 0x38], dx
call ebp
push ebx
push 1
lea edx, [esp + 0x2c]
push 4
push edx
call ebp
mov eax, dword [esp + 0x34]
push ebx
push 1
lea ecx, [esp + 0x40]
push eax
push ecx
call ebp
push ebx
push 1
lea edx, [esp + 0x60]
push 2
push edx
call ebp
add esp, 0x40
push ebx
mov ecx, esi
call fcn.004adb40
call dword [sym.imp.KERNEL32.dll_GetVersion]
test eax, eax
jne 0x4ad9f5
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 4
push ebx
push 1
lea eax, [esi + 0x6a]
push 0x10
push eax
call ebp
add esp, 0x10
cmp eax, 1
je 0x4ada14
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x14
ret 4
push ebx
push 1
lea ecx, [esi + 0x7a]
push 0x10
push ecx
call ebp
add esp, 0x10
cmp eax, 1
je 0x4ada33
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x14
ret 4
mov edx, dword [esi + 0x8c]
add esi, 0x8c
mov eax, dword [edx - 8]
test eax, eax
mov dword [esp + 0x10], eax
jle 0x4adab4
mov ax, word [0x52a248]
mov cl, byte [0x52a24a]
push ebx
push 1
lea edx, [esp + 0x30]
push 2
push edx
mov word [esp + 0x38], ax
mov byte [esp + 0x3a], cl
call ebp
push ebx
push 1
lea eax, [esp + 0x28]
push 4
push eax
call ebp
mov eax, dword [esp + 0x30]
add esp, 0x20
mov ecx, esi
push ebx
push 1
push eax
push eax
call sub.MFC42.DLL_CString::GetBuffer
push eax
call ebp
push ebx
push 1
lea ecx, [esp + 0x40]
push 2
push ecx
call ebp
add esp, 0x20
mov ecx, esi
push 0xffffffffffffffff
call sub.MFC42.DLL_CString::ReleaseBuffer
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x14
ret 4
mov eax, dword [0x52c970]
mov cx, word [0x52a248]
mov edx, dword [str.No_Name]
mov dword [esp + 0x1c], eax
mov word [esp + 0x28], cx
lea edi, [esp + 0x18]
or ecx, 0xffffffff
xor eax, eax
mov dword [esp + 0x18], edx
mov dl, byte [0x52a24a]
repne scasb al, byte es:[edi]
not ecx
push ebx
push 1
lea eax, [esp + 0x30]
dec ecx
push 2
push eax
mov byte [esp + 0x3a], dl
mov dword [esp + 0x24], ecx
call ebp
push ebx
push 1
lea ecx, [esp + 0x2c]
push 4
push ecx
call ebp
mov edx, dword [esp + 0x34]
push ebx
push 1
lea eax, [esp + 0x40]
push edx
push eax
call ebp
push ebx
push 1
lea ecx, [esp + 0x60]
push 2
push ecx
call ebp
add esp, 0x40
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 4