Function at 0x40d140
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x4150f1
push eax
mov eax, 0x20008
mov dword fs:[0], esp
call fcn.00413f20
push ebx
push ebp
push esi
push edi
mov eax, dword [esp + 0x20034]
mov ebx, 2
push 0x41c198
push eax
mov dword [esp + 0x20028], ebx
call dword [sym.imp.MSVCRT.dll_wcscmp]
add esp, 8
test eax, eax
jne 0x40d1cb
lea ecx, [esp + 0x10]
push ecx
call fcn.00407450
add esp, 4
mov edx, dword [eax]
push str.tvt.txt
push edx
lea eax, [esp + 0x2003c]
push 0x41c15c
push eax
mov byte [esp + 0x20030], 3
call sub.MFC42u.DLL_CString::Format
add esp, 0x10
lea ecx, [esp + 0x10]
mov byte [esp + 0x20020], bl
call sub.MFC42u.DLL_CString::CString
mov al, byte [esp + 0x20038]
test al, al
je 0x40d204
mov ecx, dword [esp + 0x20034]
mov edx, dword [esp + 0x2002c]
mov eax, dword [esp + 0x20028]
push ecx
push 0xffffffffffffffff
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov ecx, dword [esp + 0x20030]
mov dword [ecx], eax
jmp 0x40d34a
push 0x70
call sub.MFC42u.DLL_operatornew
mov esi, eax
add esp, 4
mov dword [esp + 0x14], esi
test esi, esi
mov byte [esp + 0x20020], 4
je 0x40d248
push 0
push 0
push 0
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push str..pipeRRNovaPipe
call fcn.00413dc4
push 0
push 0
mov ecx, esi
call fcn.0040ff30
mov dword [esp + 0x10], eax
jmp 0x40d250
mov dword [esp + 0x10], 0
mov edx, dword [esp + 0x20028]
mov ecx, 0x4000
xor eax, eax
lea edi, [esp + 0x18]
rep stosd dword es:[edi], eax
mov eax, dword [edx - 8]
mov ecx, dword [esp + 0x20034]
mov byte [esp + 0x20020], bl
lea edx, [esp + 0x18]
lea ebx, [eax + eax]
mov eax, dword [esp + 0x2002c]
mov eax, dword [eax - 8]
lea ebp, [eax + eax]
mov eax, dword [ecx - 8]
add eax, eax
push eax
push ebp
push ebx
push 0x13
push str._c_c_c_c
push edx
mov dword [esp + 0x2c], eax
call dword [sym.imp.MSVCRT.dll_sprintf]
mov esi, dword [esp + 0x20040]
mov ecx, ebx
mov eax, ecx
lea edi, [esp + 0x34]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [esp + 0x2c]
and ecx, 3
add esp, 0x18
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x2002c]
mov ecx, ebp
mov edx, ecx
lea edi, [esp + ebx + 0x1c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [ebx + ebp]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x20034]
mov ecx, eax
lea edi, [esp + edx + 0x1c]
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
add eax, ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x10]
lea eax, [eax + ebx + 4]
lea ecx, [esp + 0x18]
push eax
push ecx
mov ecx, esi
call fcn.00411250
lea edx, [esp + 0x10018]
mov ecx, esi
push edx
call fcn.00411320
lea eax, [esp + 0x10018]
push eax
call dword [sym.imp.MSVCRT.dll_atoi]
mov ecx, dword [esp + 0x20034]
add esp, 4
test esi, esi
mov dword [ecx], eax
je 0x40d34a
mov edx, dword [esi]
push 1
mov ecx, esi
call dword [edx]
lea ecx, [esp + 0x20028]
mov byte [esp + 0x20020], 1
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x2002c]
mov byte [esp + 0x20020], 0
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x20034]
mov dword [esp + 0x20020], 0xffffffff
call sub.MFC42u.DLL_CString::CString
mov ecx, dword [esp + 0x20018]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x20014
ret