Function at 0x413c90
Capabilities:
Write file on windows

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x41d28c
push eax
mov eax, 0x19044
mov dword fs:[0], esp
call fcn.0041ba30
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov dword [esp + 0x30], edi
mov eax, dword [edi + 0x410]
mov dword [esp + 0x1905c], 0
mov ecx, dword [eax + 0x3a0]
test ecx, ecx
je 0x4141bd
lea ecx, [esp + 0x19064]
push ecx
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::CString_2
lea ecx, [esp + 0x10]
mov byte [esp + 0x1905c], 1
call fcn.0041b5bc
lea ecx, [esp + 0x18]
mov byte [esp + 0x1905c], 2
call sub.MFC42.DLL_CString::MakeLower
mov edx, dword [edi + 0x410]
mov ebp, dword [sym.imp.MSVCRT.dll__mbscmp]
mov eax, dword [edx + 0x3a0]
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_1
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::MakeLower
lea edx, [esp + 0x18]
lea ecx, [esp + 0x14]
push edx
call sub.MFC42.DLL_CString::CString_2
push 0x2e
lea ecx, [esp + 0x18]
mov byte [esp + 0x19060], 3
call sub.MFC42.DLL_CString::ReverseFind
mov esi, eax
test esi, esi
jl 0x413e53
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 0x423814
push edx
mov byte [esp + 0x19064], 4
call ebp
add esp, 8
test eax, eax
jne 0x413e42
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
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 0x413e42
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_3
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x19060], 7
call sub.MFC42.DLL_CString::operator
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
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 0x413eea
lea edx, [esp + 0x10]
lea eax, [esp + 0x1c]
push edx
push 0x4231d4
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 0x413eea
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 + 0x410]
cmp esi, dword [eax + 0x3a0]
jne 0x413d21
jmp 0x41419b
mov ecx, dword [esp + 0x20]
test byte [ecx], 0x80
jne 0x414107
lea edx, [esp + 0x1c]
push 1
push edx
lea ecx, [esp + 0x18]
call sub.MFC42.DLL_CString::Left
mov eax, dword [eax]
push 0x4231d4
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 0x413f8e
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 + 0x410]
push eax
add edx, 0x3b0
lea eax, [esp + 0x20]
mov bl, 8
push edx
push eax
mov byte [esp + 0x19068], bl
call sub.MFC42.DLL_operator_3
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x19060], 9
call sub.MFC42.DLL_CString::operator
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 0x413fc8
mov edx, dword [edi + 0x410]
lea ecx, [esp + 0x10]
add edx, 0x3b0
push ecx
lea eax, [esp + 0x20]
push edx
push eax
call sub.MFC42.DLL_operator_3
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x19060], 0xa
call sub.MFC42.DLL_CString::operator
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.00401e50
add esp, 4
lea ecx, [esp + 0x38]
call sub.MFC42.DLL_CFileFind::CFileFind
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 0x414168
mov eax, dword [esp + 0x10]
push 0x423118
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov ebp, eax
add esp, 8
test ebp, ebp
je 0x4140f6
mov ebx, dword [edi + 0x410]
add ebx, 0x3b4
mov ecx, ebx
mov dword [esp + 0x1c], ebx
call fcn.00403830
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 + 0x410]
and ecx, 0x7f
push edx
sub esi, ecx
mov ecx, dword [eax + 0xc]
push ecx
call fcn.00401040
add esp, 0xc
test esi, esi
jbe 0x4140c7
mov edx, dword [edi + 0x410]
lea ecx, [esp + 0x54]
mov eax, dword [edx + 0xc]
push eax
push 0x19000
push 1
push ecx
call fcn.00401000
add esp, 0x10
mov edi, eax
cmp edi, esi
push ebp
ja 0x4140b6
push edi
lea edx, [esp + 0x5c]
push 1
push edx
call dword [sym.imp.MSVCRT.dll_fwrite]
add esp, 0x10
sub esi, edi
je 0x4140c7
mov edi, dword [esp + 0x30]
jmp 0x414076
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
mov ecx, ebx
mov byte [esp + 0x1905c], 0xb
call fcn.00403840
jmp 0x414179
lea ecx, [esp + 0x38]
mov byte [esp + 0x1905c], 3
call fcn.0041b74e
mov eax, dword [edi + 0x410]
or esi, 0xffffffff
mov byte [esp + 0x1905c], 2
lea ecx, [esp + 0x14]
mov edi, dword [eax + 0x3a4]
cmp edi, esi
je 0x4141f0
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 0x4141d5
mov ecx, dword [esp + 0x19068]
lea edx, [esp + 0x10]
push edx
call sub.MFC42.DLL_CString::operator
lea ecx, [esp + 0x38]
mov byte [esp + 0x1905c], 3
call fcn.0041b74e
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 0x4141d5