Function at 0x40cc10
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4adff8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push esi
mov esi, ecx
push edi
lea ecx, [esp + 0x24]
call sub.MFC42.DLL_CString::CString_4
mov dword [esp + 0x30], 0
call sub.MFC42.DLL_AfxGetModuleState
mov eax, dword [eax + 4]
lea ecx, [esp + 0xc]
mov eax, dword [eax + 0x94]
push eax
call sub.MFC42.DLL_CString::CString_2
mov ax, word [esi + 0x734]
mov edi, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
test ax, ax
mov byte [esp + 0x30], 1
je 0x40cd37
mov ecx, dword [esi + 0x90]
cmp ax, word [ecx + 0x24]
je 0x40cd37
mov word [ecx + 0x24], ax
mov ecx, dword [esi + 0x734]
mov edx, dword [esi + 0x90]
shr ecx, 0x10
mov word [edx + 0x26], cx
lea ecx, [esp + 8]
call sub.MFC42.DLL_CString::CString_4
xor eax, eax
lea ecx, [esp + 8]
mov ax, word [esi + 0x734]
mov byte [esp + 0x30], 2
push eax
push 0x5084fc
push ecx
call sub.MFC42.DLL_CString::Format_1
mov edx, dword [esi + 0x90]
mov ecx, dword [esp + 0x18]
add esp, 0xc
mov eax, dword [edx + 8]
mov edx, dword [esp + 8]
push ecx
push edx
push 0x5084ec
push eax
call edi
mov eax, dword [esi + 0x734]
lea ecx, [esp + 8]
shr eax, 0x10
push eax
push 0x5084fc
push ecx
call sub.MFC42.DLL_CString::Format_1
lea edx, [esp + 0x28]
push 0x5084d0
push edx
call fcn.0042ee20
mov edx, dword [esp + 0x20]
mov ecx, dword [esi + 0x90]
mov eax, dword [eax]
add esp, 0x14
mov ecx, dword [ecx + 8]
push edx
mov edx, dword [esp + 0xc]
push edx
push eax
push ecx
call edi
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 8]
mov byte [esp + 0x30], 1
call sub.MFC42.DLL_CString::CString
mov eax, dword [esi + 0x90]
mov cx, word [esi + 0x738]
cmp word [eax + 0x28], cx
je 0x40cdef
mov word [eax + 0x28], cx
mov eax, dword [esi + 0x738]
mov ecx, dword [esi + 0x90]
shr eax, 0x10
mov word [ecx + 0x2a], ax
lea ecx, [esp + 8]
call sub.MFC42.DLL_CString::CString_4
xor edx, edx
lea eax, [esp + 8]
mov dx, word [esi + 0x738]
mov byte [esp + 0x30], 3
push edx
push 0x5084fc
push eax
call sub.MFC42.DLL_CString::Format_1
mov ecx, dword [esi + 0x90]
mov edx, dword [esp + 0x18]
add esp, 0xc
mov eax, dword [ecx + 8]
mov ecx, dword [esp + 8]
push edx
push ecx
push 0x5084c4
push eax
call edi
mov edx, dword [esi + 0x738]
lea eax, [esp + 8]
shr edx, 0x10
push edx
push 0x5084fc
push eax
call sub.MFC42.DLL_CString::Format_1
mov ecx, dword [esi + 0x90]
mov edx, dword [esp + 0x18]
add esp, 0xc
mov eax, dword [ecx + 8]
mov ecx, dword [esp + 8]
push edx
push ecx
push 0x5084b4
push eax
call edi
lea ecx, [esp + 8]
mov byte [esp + 0x30], 1
call sub.MFC42.DLL_CString::CString
mov eax, dword [esi + 0x90]
mov cx, word [esi + 0x73c]
cmp word [eax + 0x2c], cx
je 0x40cea7
mov word [eax + 0x2c], cx
mov edx, dword [esi + 0x73c]
mov eax, dword [esi + 0x90]
lea ecx, [esp + 8]
shr edx, 0x10
mov word [eax + 0x2e], dx
call sub.MFC42.DLL_CString::CString_4
xor ecx, ecx
lea edx, [esp + 8]
mov cx, word [esi + 0x73c]
mov byte [esp + 0x30], 4
push ecx
push 0x5084fc
push edx
call sub.MFC42.DLL_CString::Format_1
mov eax, dword [esi + 0x90]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
add esp, 0xc
mov eax, dword [eax + 8]
push ecx
push edx
push 0x5084a8
push eax
call edi
mov eax, dword [esi + 0x73c]
lea ecx, [esp + 8]
shr eax, 0x10
push eax
push 0x5084fc
push ecx
call sub.MFC42.DLL_CString::Format_1
mov edx, dword [esi + 0x90]
mov ecx, dword [esp + 0x18]
add esp, 0xc
mov eax, dword [edx + 8]
mov edx, dword [esp + 8]
push ecx
push edx
push 0x508498
push eax
call edi
lea ecx, [esp + 8]
mov byte [esp + 0x30], 1
call sub.MFC42.DLL_CString::CString
call sub.MFC42.DLL_AfxGetThread
test eax, eax
je 0x40ceb9
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x7c]
jmp 0x40cebb
xor eax, eax
mov eax, dword [eax + 0x20]
push 0
push 0
push 0x465
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
mov ecx, dword [esi + 0x174]
push ecx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x40d0f9
mov edx, dword [esi + 0x734]
mov ax, word [esi + 0x734]
shr edx, 0x10
push ebx
push edx
lea ecx, [esp + 0x24]
push eax
push ecx
call fcn.0040c970
mov edx, dword [esi + 0x738]
mov ax, word [esi + 0x738]
shr edx, 0x10
push edx
lea ecx, [esp + 0x2c]
push eax
push ecx
mov byte [esp + 0x4c], 5
call fcn.0040c970
mov edx, dword [esi + 0x73c]
mov ax, word [esi + 0x73c]
shr edx, 0x10
push edx
lea ecx, [esp + 0x34]
push eax
push ecx
mov byte [esp + 0x58], 6
call fcn.0040c970
mov edx, dword [esi + 0x740]
mov ax, word [esi + 0x740]
shr edx, 0x10
push edx
lea ecx, [esp + 0x3c]
push eax
push ecx
mov byte [esp + 0x64], 7
call fcn.0040c970
add esp, 0x30
lea ecx, [esp + 0xc]
mov byte [esp + 0x34], 8
call sub.MFC42.DLL_CString::CString_4
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
push edx
mov edx, dword [esp + 0x24]
push eax
push ecx
push edx
lea eax, [esp + 0x1c]
mov bl, 9
push 0xf26d
push eax
mov byte [esp + 0x4c], bl
call sub.MFC42.DLL_CString::Format
mov ecx, dword [esp + 0x24]
add esp, 0x18
push ecx
lea ecx, [esi + 0x154]
call sub.MFC42.DLL_CWnd::SetWindowTextA
mov edx, dword [esi + 0x734]
mov ax, word [esi + 0x734]
shr edx, 0x10
push edx
lea ecx, [esp + 0x28]
push eax
push ecx
call fcn.0040c970
add esp, 0xc
mov edx, dword [eax]
lea eax, [esp + 0xc]
push edx
push 0xf281
push eax
mov byte [esp + 0x40], 0xa
call sub.MFC42.DLL_CString::Format
add esp, 0xc
lea ecx, [esp + 0x24]
mov byte [esp + 0x34], bl
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0xc]
push ecx
lea ecx, [esi + 0x114]
call sub.MFC42.DLL_CWnd::SetWindowTextA
mov edx, dword [esi + 0x738]
mov ax, word [esi + 0x738]
shr edx, 0x10
push edx
lea ecx, [esp + 0x28]
push eax
push ecx
call fcn.0040c970
add esp, 0xc
mov edx, dword [eax]
lea eax, [esp + 0xc]
push edx
push 0xf282
push eax
mov byte [esp + 0x40], 0xb
call sub.MFC42.DLL_CString::Format
add esp, 0xc
lea ecx, [esp + 0x24]
mov byte [esp + 0x34], bl
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0xc]
push ecx
lea ecx, [esi + 0xd4]
call sub.MFC42.DLL_CWnd::SetWindowTextA
mov edx, dword [esi + 0x73c]
mov ax, word [esi + 0x73c]
shr edx, 0x10
push edx
lea ecx, [esp + 0x28]
push eax
push ecx
call fcn.0040c970
add esp, 0xc
mov edx, dword [eax]
lea eax, [esp + 0xc]
push edx
push 0xf283
push eax
mov byte [esp + 0x40], 0xc
call sub.MFC42.DLL_CString::Format
add esp, 0xc
lea ecx, [esp + 0x24]
mov byte [esp + 0x34], bl
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0xc]
push ecx
lea ecx, [esi + 0x94]
call sub.MFC42.DLL_CWnd::SetWindowTextA
lea ecx, [esp + 0xc]
mov byte [esp + 0x34], 8
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov byte [esp + 0x34], 7
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
mov byte [esp + 0x34], 6
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x1c]
mov byte [esp + 0x34], 5
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x20]
mov byte [esp + 0x34], 1
call sub.MFC42.DLL_CString::CString
pop ebx
lea ecx, [esp + 0xc]
mov byte [esp + 0x30], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x24]
mov dword [esp + 0x30], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x28]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x2c
ret