Function at 0x40c80c
Capabilities:
Read file on windows

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x41c901
push eax
mov dword fs:[0], esp
sub esp, 0x434
push ebp
push esi
mov esi, ecx
mov ecx, dword [esp + 0x44c]
mov eax, dword [esi + 0x20]
cmp eax, ecx
jne 0x40ca86
mov ecx, dword [esp + 0x450]
lea edx, [esp + 0x1c]
push ecx
push str.._tempfile_d.txt
push edx
call dword [sym.imp.MSVCRT.dll_sprintf]
lea eax, [esp + 0x28]
push 0x42355c
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov ebp, eax
add esp, 0x14
test ebp, ebp
je 0x40ca86
push ebx
push edi
mov ecx, 0x100
xor eax, eax
lea edi, [esp + 0x44]
push ebp
rep stosd dword es:[edi], eax
push 0x400
lea ecx, [esp + 0x4c]
push 1
push ecx
call dword [sym.imp.MSVCRT.dll_fread]
push ebp
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 0x14
lea edi, [esi + 0xe0]
lea ecx, [esp + 0x14]
push edi
call sub.MFC42.DLL_CString::CString_2
lea ebp, [esi + 0xec]
lea ecx, [esp + 0x20]
push ebp
mov dword [esp + 0x450], 0
call sub.MFC42.DLL_CString::CString_2
lea ebx, [esi + 0xf0]
lea ecx, [esp + 0x1c]
push ebx
mov byte [esp + 0x450], 1
call sub.MFC42.DLL_CString::CString_2
mov dl, byte [esi + 0xf8]
mov al, byte [esi + 0xf9]
mov cl, byte [esi + 0xfa]
mov byte [esp + 0x11], dl
mov dl, byte [esi + 0xfb]
mov byte [esp + 0x1a], al
mov al, byte [esi + 0xfc]
mov byte [esp + 0x19], cl
mov cl, byte [esi + 0xfd]
mov byte [esp + 0x13], dl
mov dl, byte [esi + 0xfe]
mov byte [esp + 0x18], al
mov al, byte [esi + 0xff]
mov byte [esp + 0x1b], cl
mov byte [esp + 0x10], dl
lea ecx, [esp + 0x1c]
mov byte [esp + 0x12], al
lea edx, [esp + 0x12]
push ecx
lea eax, [esp + 0x14]
push edx
lea ecx, [esp + 0x23]
push eax
lea edx, [esp + 0x24]
push ecx
lea eax, [esp + 0x23]
push edx
lea ecx, [esp + 0x2d]
push eax
lea edx, [esp + 0x32]
push ecx
lea eax, [esp + 0x2d]
push edx
lea ecx, [esp + 0x40]
push eax
lea edx, [esp + 0x38]
push ecx
lea eax, [esp + 0x6c]
push edx
push eax
mov byte [esp + 0x47c], 2
call fcn.004070f0
add esp, 0x30
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::TrimLeft
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx - 8]
test eax, eax
jle 0x40c990
cmp byte [ecx], 0x22
jne 0x40c990
push 0x20
push 0
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::SetAt
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::TrimLeft
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::TrimRight
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx - 8]
test eax, eax
jle 0x40c9c1
cmp byte [eax + ecx - 1], 0x22
jne 0x40c9c1
dec eax
push 0x20
push eax
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::SetAt
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::TrimRight
lea ecx, [esp + 0x14]
push ecx
mov ecx, edi
call sub.MFC42.DLL_CString::operator
lea edx, [esp + 0x20]
mov ecx, ebp
push edx
call sub.MFC42.DLL_CString::operator
mov cl, byte [esp + 0x1a]
mov dl, byte [esp + 0x13]
mov al, byte [esp + 0x11]
mov byte [esi + 0xf9], cl
mov cl, byte [esp + 0x18]
mov byte [esi + 0xfb], dl
mov dl, byte [esp + 0x1b]
mov byte [esi + 0xf8], al
mov al, byte [esp + 0x19]
mov byte [esi + 0xfc], cl
mov cl, byte [esp + 0x12]
mov byte [esi + 0xfd], dl
mov byte [esi + 0xfa], al
mov al, byte [esp + 0x10]
lea edx, [esp + 0x1c]
mov byte [esi + 0xff], cl
push edx
mov ecx, ebx
mov byte [esi + 0xfe], al
call sub.MFC42.DLL_CString::operator
mov ecx, edi
call sub.MFC42.DLL_CString::TrimLeft
mov ecx, edi
call sub.MFC42.DLL_CString::TrimRight
push 0
push 0
mov ecx, esi
call fcn.0040bd60
lea ecx, [esp + 0x1c]
mov byte [esp + 0x44c], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x20]
mov byte [esp + 0x44c], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov dword [esp + 0x44c], 0xffffffff
call sub.MFC42.DLL_CString::CString
pop edi
pop ebx
mov ecx, dword [esp + 0x43c]
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x440
ret 8