Function at 0x40a3b0
Capabilities:
Read file on windows

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x418271
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 0x40a646
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 0x41e4ec
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov ebp, eax
add esp, 0x14
test ebp, ebp
je 0x40a646
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 fcn.004171fe
lea ebp, [esi + 0xe8]
lea ecx, [esp + 0x20]
push ebp
mov dword [esp + 0x450], 0
call fcn.004171fe
lea ebx, [esi + 0xec]
lea ecx, [esp + 0x1c]
push ebx
mov byte [esp + 0x450], 1
call fcn.004171fe
mov dl, byte [esi + 0xf4]
mov al, byte [esi + 0xf5]
mov cl, byte [esi + 0xf6]
mov byte [esp + 0x11], dl
mov dl, byte [esi + 0xf7]
mov byte [esp + 0x1a], al
mov al, byte [esi + 0xf8]
mov byte [esp + 0x19], cl
mov cl, byte [esi + 0xf9]
mov byte [esp + 0x13], dl
mov dl, byte [esi + 0xfa]
mov byte [esp + 0x18], al
mov al, byte [esi + 0xfb]
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.004067d0
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 0x40a550
cmp byte [ecx], 0x22
jne 0x40a550
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 0x40a581
cmp byte [eax + ecx - 1], 0x22
jne 0x40a581
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_1
lea edx, [esp + 0x20]
mov ecx, ebp
push edx
call sub.MFC42.DLL_CString::operator_1
mov cl, byte [esp + 0x1a]
mov dl, byte [esp + 0x13]
mov al, byte [esp + 0x11]
mov byte [esi + 0xf5], cl
mov cl, byte [esp + 0x18]
mov byte [esi + 0xf7], dl
mov dl, byte [esp + 0x1b]
mov byte [esi + 0xf4], al
mov al, byte [esp + 0x19]
mov byte [esi + 0xf8], cl
mov cl, byte [esp + 0x12]
mov byte [esi + 0xf9], dl
mov byte [esi + 0xf6], al
mov al, byte [esp + 0x10]
lea edx, [esp + 0x1c]
mov byte [esi + 0xfb], cl
push edx
mov ecx, ebx
mov byte [esi + 0xfa], al
call sub.MFC42.DLL_CString::operator_1
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.00409930
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