Function at 0x40ff80
Capabilities:
Write file on windows

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x4189dc
push eax
mov eax, 0x19044
mov dword fs:[0], esp
call fcn.00417600
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov dword [esp + 0x30], edi
mov eax, dword [edi + 0x4dc]
mov dword [esp + 0x1905c], 0
mov ecx, dword [eax + 0x3a8]
test ecx, ecx
je 0x4104ad
lea ecx, [esp + 0x19064]
push ecx
lea ecx, [esp + 0x1c]
call fcn.004171fe
lea ecx, [esp + 0x10]
mov byte [esp + 0x1905c], 1
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esp + 0x18]
mov byte [esp + 0x1905c], 2
call sub.MFC42.DLL_CString::MakeLower
mov edx, dword [edi + 0x4dc]
mov ebp, dword [sym.imp.MSVCRT.dll__mbscmp]
mov eax, dword [edx + 0x3a8]
mov dword [esp + 0x20], eax
mov ecx, dword [esp + 0x20]
add ecx, 0xc
push ecx
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::MakeLower
lea edx, [esp + 0x18]
lea ecx, [esp + 0x14]
push edx
call fcn.004171fe
push 0x2e
lea ecx, [esp + 0x18]
mov byte [esp + 0x19060], 3
call sub.MFC42.DLL_CString::ReverseFind
mov esi, eax
test esi, esi
jl 0x410143
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x28]
mov eax, dword [eax - 8]
sub eax, esi
push eax
push ecx
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::Right
mov edx, dword [esp + 0x28]
push 0x41e530
push edx
mov byte [esp + 0x19064], 4
call ebp
add esp, 8
test eax, eax
jne 0x410132
lea eax, [esp + 0x2c]
push esi
push eax
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::Left
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x19060], 5
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x2c]
mov byte [esp + 0x1905c], 4
call sub.MFC42.DLL_CString::CString
push 0x2e
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::ReverseFind
test eax, eax
jl 0x410132
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x24]
mov ecx, dword [ecx - 8]
sub ecx, eax
push ecx
push edx
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::Right
push eax
lea eax, [esp + 0x18]
lea ecx, [esp + 0x38]
push eax
push ecx
mov byte [esp + 0x19068], 6
call sub.MFC42.DLL_operator_1
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x19060], 7
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x34]
mov byte [esp + 0x1905c], 6
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x24]
mov byte [esp + 0x1905c], 4
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x28]
mov byte [esp + 0x1905c], 3
call sub.MFC42.DLL_CString::CString
lea edx, [esp + 0x14]
lea ecx, [esp + 0x18]
push edx
call sub.MFC42.DLL_CString::operator_1
push 0x2f
push 0x5c
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::Replace
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x10]
push eax
push ecx
call ebp
add esp, 8
test eax, eax
je 0x4101da
lea edx, [esp + 0x10]
lea eax, [esp + 0x1c]
push edx
push 0x41e154
push eax
call sub.MFC42.DLL_operator
mov ecx, dword [esp + 0x18]
mov eax, dword [eax]
push ecx
push eax
call ebp
add esp, 8
lea ecx, [esp + 0x1c]
test eax, eax
sete bl
call sub.MFC42.DLL_CString::CString
test bl, bl
jne 0x4101da
mov edx, dword [esp + 0x20]
lea ecx, [esp + 0x14]
mov byte [esp + 0x1905c], 2
mov esi, dword [edx + 0x10c]
mov dword [esp + 0x20], esi
call sub.MFC42.DLL_CString::CString
mov eax, dword [edi + 0x4dc]
cmp esi, dword [eax + 0x3a8]
jne 0x410011
jmp 0x41048b
mov ecx, dword [esp + 0x20]
test byte [ecx], 0x80
jne 0x4103f7
lea edx, [esp + 0x1c]
push 1
push edx
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::Left
mov eax, dword [eax]
push 0x41e154
push eax
call ebp
add esp, 8
lea ecx, [esp + 0x1c]
test eax, eax
sete bl
call sub.MFC42.DLL_CString::CString
test bl, bl
je 0x41027e
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x24]
mov eax, dword [eax - 8]
dec eax
push eax
push ecx
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::Right
mov edx, dword [edi + 0x4dc]
push eax
add edx, 0x3b8
lea eax, [esp + 0x20]
mov bl, 8
push edx
push eax
mov byte [esp + 0x19068], bl
call sub.MFC42.DLL_operator_1
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x19060], 9
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x1c]
mov byte [esp + 0x1905c], bl
call sub.MFC42.DLL_CString::CString
mov byte [esp + 0x1905c], 3
lea ecx, [esp + 0x24]
jmp 0x4102b8
mov edx, dword [edi + 0x4dc]
lea ecx, [esp + 0x10]
add edx, 0x3b8
push ecx
lea eax, [esp + 0x20]
push edx
push eax
call sub.MFC42.DLL_operator_1
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x19060], 0xa
call sub.MFC42.DLL_CString::operator_1
mov byte [esp + 0x1905c], 3
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::CString
push 0x5c
push 0x2f
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::Replace
mov ecx, dword [esp + 0x10]
push ecx
call fcn.00401730
add esp, 4
lea ecx, [esp + 0x38]
call fcn.004171f2
mov edx, dword [esp + 0x10]
push 0
push edx
lea ecx, [esp + 0x40]
mov byte [esp + 0x19064], 0xb
call sub.MFC42.DLL_CFileFind::FindFile
test eax, eax
jne 0x410458
mov eax, dword [esp + 0x10]
push 0x41e108
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov ebp, eax
add esp, 8
test ebp, ebp
je 0x4103e6
mov ebx, dword [edi + 0x4dc]
add ebx, 0x3bc
mov ecx, ebx
mov dword [esp + 0x1c], ebx
call fcn.00402e40
mov eax, dword [esp + 0x20]
push 0
mov byte [esp + 0x19060], 0xc
mov cl, byte [eax]
mov esi, dword [eax + 4]
mov edx, dword [eax + 8]
mov eax, dword [edi + 0x4dc]
and ecx, 0x7f
push edx
sub esi, ecx
mov ecx, dword [eax + 0x14]
push ecx
call fcn.00401040
add esp, 0xc
test esi, esi
jbe 0x4103b7
mov edx, dword [edi + 0x4dc]
lea ecx, [esp + 0x54]
mov eax, dword [edx + 0x14]
push eax
push 0x19000
push 1
push ecx
call fcn.00401000
add esp, 0x10
mov edi, eax
cmp edi, esi
push ebp
ja 0x4103a6
push edi
lea edx, [esp + 0x5c]
push 1
push edx
call dword [sym.imp.MSVCRT.dll_fwrite]
add esp, 0x10
sub esi, edi
je 0x4103b7
mov edi, dword [esp + 0x30]
jmp 0x410366
push esi
lea eax, [esp + 0x5c]
push 1
push eax
call dword [sym.imp.MSVCRT.dll_fwrite]
add esp, 0x10
push ebp
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
lea ecx, [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x1906c]
call sub.MFC42.DLL_CString::operator_1
mov ecx, ebx
mov byte [esp + 0x1905c], 0xb
call fcn.00402e50
jmp 0x410469
lea ecx, [esp + 0x38]
mov byte [esp + 0x1905c], 3
call sub.MFC42.DLL_CFileFind::CFileFind
mov eax, dword [edi + 0x4dc]
or esi, 0xffffffff
mov byte [esp + 0x1905c], 2
lea ecx, [esp + 0x14]
mov edi, dword [eax + 0x3ac]
cmp edi, esi
je 0x4104e0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov byte [esp + 0x1905c], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
mov byte [esp + 0x1905c], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x19064]
mov dword [esp + 0x1905c], esi
call sub.MFC42.DLL_CString::CString
mov eax, edi
jmp 0x4104c5
mov ecx, dword [esp + 0x19068]
lea edx, [esp + 0x10]
push edx
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x38]
mov byte [esp + 0x1905c], 3
call sub.MFC42.DLL_CFileFind::CFileFind
lea ecx, [esp + 0x14]
mov byte [esp + 0x1905c], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov byte [esp + 0x1905c], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
mov byte [esp + 0x1905c], 0
call sub.MFC42.DLL_CString::CString
or esi, 0xffffffff
lea ecx, [esp + 0x19064]
mov dword [esp + 0x1905c], esi
call sub.MFC42.DLL_CString::CString
mov eax, esi
mov ecx, dword [esp + 0x19054]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x19050
ret 8
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov byte [esp + 0x1905c], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
mov byte [esp + 0x1905c], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x19064]
mov dword [esp + 0x1905c], esi
call sub.MFC42.DLL_CString::CString
xor eax, eax
jmp 0x4104c5