Function at 0x40c5d0
Capabilities:
Get graphical window text
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x410762
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x210
push ebx
push ebp
xor ebx, ebx
push esi
push edi
mov dword [esp + 0x14], ecx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x228], ebx
mov dword [esp + 0x18], ebx
mov ecx, dword [ecx + 8]
mov byte [esp + 0x228], 1
cmp ecx, ebx
je 0x40c61a
call fcn.0040ba80
jmp 0x40c61c
xor eax, eax
mov ecx, dword [esp + 0x234]
mov edi, dword [sym.imp.MSVCRT.dll_sprintf]
push ecx
push eax
lea edx, [esp + 0x28]
push str._s_Dialog__d
push edx
call edi
push 0xc
call sub.MFC42.DLL_operatornew
add esp, 0x14
mov dword [esp + 0x10], eax
cmp eax, ebx
mov byte [esp + 0x228], 2
je 0x40c661
lea ecx, [esp + 0x20]
push ecx
mov ecx, eax
call fcn.0040cfe0
mov ebp, eax
jmp 0x40c663
xor ebp, ebp
mov esi, dword [esp + 0x238]
lea edx, [esp + 0x20]
push esi
push 0x415040
push edx
mov byte [esp + 0x234], 1
mov dword [esp + 0x24], ebp
call edi
push 0xc
call sub.MFC42.DLL_operatornew
add esp, 0x10
mov dword [esp + 0x10], eax
cmp eax, ebx
mov byte [esp + 0x228], 3
je 0x40c6ab
lea ecx, [esp + 0x20]
push ecx
mov ecx, eax
call fcn.0040cfe0
mov ebx, eax
mov edx, dword [esp + 0x230]
push esi
push edx
mov byte [esp + 0x230], 1
mov dword [esp + 0x24], ebx
call dword [sym.imp.USER32.dll_GetDlgItem]
mov edx, eax
test edx, edx
mov dword [esp + 0x10], edx
jne 0x40c6ef
test ebp, ebp
je 0x40c6db
mov ecx, ebp
call fcn.00404550
test ebx, ebx
je 0x40c8c9
mov ecx, ebx
call fcn.00404550
jmp 0x40c8c9
mov esi, dword [esp + 0x14]
mov eax, dword [esi + 0xc]
test eax, eax
jne 0x40c7bd
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x40c70e
call fcn.0040ba80
mov edi, eax
jmp 0x40c710
xor edi, edi
test ebx, ebx
je 0x40c73e
mov eax, dword [ebx + 4]
test eax, eax
jne 0x40c739
mov eax, dword [ebx]
push eax
call fcn.0040edb3
test eax, eax
mov dword [ebx + 4], eax
jne 0x40c739
cmp dword [ebx], 0
je 0x40c739
push 0x8007000e
call fcn.0040ecf2
mov esi, dword [ebx + 4]
jmp 0x40c740
xor esi, esi
test ebp, ebp
je 0x40c770
mov eax, dword [ebp + 4]
test eax, eax
jne 0x40c76b
mov ecx, dword [ebp]
push ecx
call fcn.0040edb3
test eax, eax
mov dword [ebp + 4], eax
jne 0x40c76b
cmp dword [ebp], 0
je 0x40c76b
push 0x8007000e
call fcn.0040ecf2
mov eax, dword [ebp + 4]
jmp 0x40c772
xor eax, eax
push edi
lea edx, [esp + 0x124]
push 0x100
push edx
push 0x415ae8
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea edi, [esp + 0x120]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x20]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
mov edx, dword [esp + 0x10]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x14]
lea edi, [esp + 0x20]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x40c7d8
mov eax, dword [esi + 0xc]
test eax, eax
je 0x40c890
lea ecx, [esp + 0x20]
push 0x100
push ecx
push edx
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov esi, dword [esi + 4]
test esi, esi
je 0x40c81a
mov eax, dword [esi + 4]
test eax, eax
jne 0x40c815
mov edx, dword [esi]
push edx
call fcn.0040edb3
test eax, eax
mov dword [esi + 4], eax
jne 0x40c815
cmp dword [esi], 0
je 0x40c815
push 0x8007000e
call fcn.0040ecf2
mov esi, dword [esi + 4]
jmp 0x40c81c
xor esi, esi
test ebx, ebx
je 0x40c84a
mov eax, dword [ebx + 4]
test eax, eax
jne 0x40c845
mov eax, dword [ebx]
push eax
call fcn.0040edb3
test eax, eax
mov dword [ebx + 4], eax
jne 0x40c845
cmp dword [ebx], 0
je 0x40c845
push 0x8007000e
call fcn.0040ecf2
mov edi, dword [ebx + 4]
jmp 0x40c84c
xor edi, edi
test ebp, ebp
je 0x40c87c
mov eax, dword [ebp + 4]
test eax, eax
jne 0x40c877
mov ecx, dword [ebp]
push ecx
call fcn.0040edb3
test eax, eax
mov dword [ebp + 4], eax
jne 0x40c877
cmp dword [ebp], 0
je 0x40c877
push 0x8007000e
call fcn.0040ecf2
mov eax, dword [ebp + 4]
jmp 0x40c87e
xor eax, eax
lea edx, [esp + 0x20]
push esi
push edx
push edi
push eax
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x20]
push eax
push edx
call dword [sym.imp.USER32.dll_SetWindowTextA]
test ebp, ebp
je 0x40c8a7
mov ecx, ebp
call fcn.00404550
test ebx, ebx
je 0x40c8c9
lea ecx, [ebx + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0x40c8c9
mov ecx, ebx
call fcn.004045e0
push ebx
call sub.MFC42.DLL_operatordelete
add esp, 4
mov ecx, dword [esp + 0x220]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x21c
ret 0xc