Function at 0x412780
Capabilities:
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x428f28
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push ebx
push ebp
push esi
push edi
lea eax, [esp + 0x4c]
push 0x4327fc
lea ecx, [esp + 0x14]
push eax
push ecx
mov dword [esp + 0x50], 2
call sub.MFC42.DLL_operator_2
mov edx, dword [esp + 0x4c]
push 0x433b08
push edx
mov byte [esp + 0x4c], 3
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
test eax, eax
je 0x4129c9
mov eax, dword [esp + 0x10]
push 0x431848
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov ebp, eax
add esp, 8
test ebp, ebp
je 0x4129c9
mov ecx, 8
xor eax, eax
lea edi, [esp + 0x18]
push 0x20
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0x58]
stosb byte es:[edi], al
call sub.MFC42.DLL_CString::Left
mov edx, dword [eax]
mov esi, dword [sym.imp.MSVCRT.dll_sprintf]
push edx
lea eax, [esp + 0x1c]
push 0x431080
push eax
call esi
add esp, 0xc
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString
mov ebx, dword [sym.imp.MSVCRT.dll_fwrite]
push ebp
push 0x20
lea ecx, [esp + 0x20]
push 1
push ecx
call ebx
mov eax, dword [esp + 0x64]
push ebp
mov edx, eax
mov ecx, eax
shr edx, 0x18
mov byte [esp + 0x2c], dl
mov edx, eax
mov byte [esp + 0x2f], al
push 4
lea eax, [esp + 0x30]
push 1
shr ecx, 0x10
shr edx, 8
push eax
mov byte [esp + 0x39], cl
mov byte [esp + 0x3a], dl
call ebx
mov ecx, 8
xor eax, eax
lea edi, [esp + 0x38]
add esp, 0x20
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x58]
stosb byte es:[edi], al
call sub.MFC42.DLL_CString::TrimLeft
mov eax, dword [esp + 0x60]
push 0x433b08
test eax, eax
je 0x4128be
mov ecx, dword [esp + 0x5c]
push ecx
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
test eax, eax
jne 0x41290b
push str.0000_00_00_00:00:00_0
lea ecx, [esp + 0x5c]
call sub.MFC42.DLL_CString::operator_2
jmp 0x41290b
mov edx, dword [esp + 0x5c]
push edx
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
test eax, eax
jne 0x41290b
push ecx
lea eax, [esp + 0x50]
mov ecx, esp
mov dword [esp + 0x58], esp
push eax
call sub.MFC42.DLL_CString::CString_3
lea ecx, [esp + 0x58]
push ecx
call fcn.00411fc0
add esp, 8
push eax
lea ecx, [esp + 0x5c]
mov byte [esp + 0x48], 4
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x54]
mov byte [esp + 0x44], 3
call sub.MFC42.DLL_CString::CString
lea edx, [esp + 0x54]
push 0x20
push edx
lea ecx, [esp + 0x60]
call sub.MFC42.DLL_CString::Left
mov eax, dword [eax]
lea ecx, [esp + 0x18]
push eax
push 0x431080
push ecx
call esi
add esp, 0xc
lea ecx, [esp + 0x54]
call sub.MFC42.DLL_CString::CString
push ebp
push 0x20
lea edx, [esp + 0x20]
push 1
push edx
call ebx
mov esi, dword [esp + 0x6c]
add esp, 0x10
test esi, esi
jne 0x412982
push 5
push esi
lea eax, [esp + 0x20]
push esi
push eax
call fcn.00411f70
mov ecx, dword [esp + 0x78]
mov edx, dword [esp + 0x74]
push 5
push ecx
lea eax, [esp + 0x35]
push edx
push eax
call fcn.00411f70
push ebp
push 0xa
lea ecx, [esp + 0x40]
push 1
push ecx
call ebx
add esp, 0x30
jmp 0x4129bf
mov edx, dword [esi + 4]
mov eax, dword [esi]
push 5
push edx
lea ecx, [esp + 0x20]
push eax
push ecx
call fcn.00411f70
mov edx, dword [esi + 0xc]
mov eax, dword [esi + 8]
push 5
push edx
lea ecx, [esp + 0x35]
push eax
push ecx
call fcn.00411f70
push ebp
push 0xa
lea edx, [esp + 0x40]
push 1
push edx
call ebx
mov esi, dword [esi + 0x10]
add esp, 0x30
test esi, esi
jne 0x412982
push ebp
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 4
lea ecx, [esp + 0x10]
mov byte [esp + 0x44], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x4c]
mov byte [esp + 0x44], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x50]
mov byte [esp + 0x44], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x58]
mov dword [esp + 0x44], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x3c]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x38
ret