Function at 0x40d670
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4d3ae8
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_3
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_1
mov ax, word [esi + 0x6ec]
mov edi, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
test ax, ax
mov byte [esp + 0x30], 1
je 0x40d797
mov ecx, dword [esi + 0x90]
cmp ax, word [ecx + 0x24]
je 0x40d797
mov word [ecx + 0x24], ax
mov ecx, dword [esi + 0x6ec]
mov edx, dword [esi + 0x90]
shr ecx, 0x10
mov word [edx + 0x26], cx
lea ecx, [esp + 8]
call sub.MFC42.DLL_CString::CString_3
xor eax, eax
lea ecx, [esp + 8]
mov ax, word [esi + 0x6ec]
mov byte [esp + 0x30], 2
push eax
push 0x5c11bc
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 0x5c1550
push eax
call edi
mov eax, dword [esi + 0x6ec]
lea ecx, [esp + 8]
shr eax, 0x10
push eax
push 0x5c11bc
push ecx
call sub.MFC42.DLL_CString::Format_1
lea edx, [esp + 0x28]
push 0x5c1534
push edx
call fcn.004287d0
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 + 0x6f0]
cmp word [eax + 0x28], cx
je 0x40d84f
mov word [eax + 0x28], cx
mov eax, dword [esi + 0x6f0]
mov ecx, dword [esi + 0x90]
shr eax, 0x10
mov word [ecx + 0x2a], ax
lea ecx, [esp + 8]
call sub.MFC42.DLL_CString::CString_3
xor edx, edx
lea eax, [esp + 8]
mov dx, word [esi + 0x6f0]
mov byte [esp + 0x30], 3
push edx
push 0x5c11bc
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 0x5c1528
push eax
call edi
mov edx, dword [esi + 0x6f0]
lea eax, [esp + 8]
shr edx, 0x10
push edx
push 0x5c11bc
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 0x5c1518
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 + 0x6f4]
cmp word [eax + 0x2c], cx
je 0x40d907
mov word [eax + 0x2c], cx
mov edx, dword [esi + 0x6f4]
mov eax, dword [esi + 0x90]
lea ecx, [esp + 8]
shr edx, 0x10
mov word [eax + 0x2e], dx
call sub.MFC42.DLL_CString::CString_3
xor ecx, ecx
lea edx, [esp + 8]
mov cx, word [esi + 0x6f4]
mov byte [esp + 0x30], 4
push ecx
push 0x5c11bc
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 0x5c150c
push eax
call edi
mov eax, dword [esi + 0x6f4]
lea ecx, [esp + 8]
shr eax, 0x10
push eax
push 0x5c11bc
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 0x5c14fc
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 0x40d919
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x7c]
jmp 0x40d91b
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 0x40db59
mov edx, dword [esi + 0x6ec]
mov ax, word [esi + 0x6ec]
shr edx, 0x10
push ebx
push edx
lea ecx, [esp + 0x24]
push eax
push ecx
call fcn.0040d3d0
mov edx, dword [esi + 0x6f0]
mov ax, word [esi + 0x6f0]
shr edx, 0x10
push edx
lea ecx, [esp + 0x2c]
push eax
push ecx
mov byte [esp + 0x4c], 5
call fcn.0040d3d0
mov edx, dword [esi + 0x6f4]
mov ax, word [esi + 0x6f4]
shr edx, 0x10
push edx
lea ecx, [esp + 0x34]
push eax
push ecx
mov byte [esp + 0x58], 6
call fcn.0040d3d0
mov edx, dword [esi + 0x6f8]
mov ax, word [esi + 0x6f8]
shr edx, 0x10
push edx
lea ecx, [esp + 0x3c]
push eax
push ecx
mov byte [esp + 0x64], 7
call fcn.0040d3d0
add esp, 0x30
lea ecx, [esp + 0xc]
mov byte [esp + 0x34], 8
call sub.MFC42.DLL_CString::CString_3
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 + 0x6ec]
mov ax, word [esi + 0x6ec]
shr edx, 0x10
push edx
lea ecx, [esp + 0x28]
push eax
push ecx
call fcn.0040d3d0
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 + 0x6f0]
mov ax, word [esi + 0x6f0]
shr edx, 0x10
push edx
lea ecx, [esp + 0x28]
push eax
push ecx
call fcn.0040d3d0
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 + 0x6f4]
mov ax, word [esi + 0x6f4]
shr edx, 0x10
push edx
lea ecx, [esp + 0x28]
push eax
push ecx
call fcn.0040d3d0
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