Function at 0x40d620
Capabilities:
Print debug messages
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48f550
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xac
push ebx
push esi
mov ebx, ecx
push edi
lea eax, [ebp - 0x54]
mov dword [ebp - 0x10], esp
mov ecx, dword [ebx + 0x20]
push eax
push ecx
mov dword [ebp - 0x38], ebx
call dword [sym.imp.USER32.dll_GetClientRect]
fild dword [ebp + 0xc]
lea esi, [ebx + 0xa4]
fmul qword [0x498ed8]
fstp dword [ebx + 0xb8]
fild dword [ebp + 0x10]
fmul qword [0x498ed0]
fstp dword [ebx + 0xb4]
mov eax, dword [esi + 8]
mov ecx, dword [esi + 4]
push eax
push ecx
mov ecx, esi
call fcn.0040e3d0
push str.C:Secure1000Display.ini
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::CString_3
mov edx, dword [ebp - 0x14]
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
push edx
push 0x46
push str.DUMMY_TOP
push str.SOFTWARE
mov dword [ebp - 4], 0
call edi
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x14]
push eax
push 0x14
push str.DUMMY_BOTTOM
push str.SOFTWARE
call edi
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x44], eax
push ecx
push 0x1fc
push str.DUMMY_HEIGHT
push str.SOFTWARE
call edi
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x40], eax
push edx
push 0x56
push str.DUMMY_WIDTH
push str.SOFTWARE
call edi
mov ecx, dword [ebp - 0x44]
mov edx, dword [ebp - 0x3c]
mov edi, eax
mov eax, dword [ebp - 0x40]
push edi
push eax
mov eax, dword [ebp + 0x10]
push ecx
mov ecx, dword [ebp + 0xc]
push edx
push eax
push ecx
lea edx, [ebp - 0xb8]
push str._d____d____d___d____d____d
push edx
mov byte [ebp - 4], 1
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x20
lea eax, [ebp - 0xb8]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [ebp - 0x40]
push edi
push ecx
mov edx, dword [ebp - 0x44]
mov eax, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x4c]
mov edi, dword [ebp - 0x54]
push edx
mov edx, dword [ebp - 0x48]
push eax
mov eax, dword [ebp - 0x50]
sub ecx, edi
sub edx, eax
mov eax, dword [ebp + 0x10]
push ecx
mov ecx, dword [ebp + 0xc]
push edx
mov edx, dword [ebp + 8]
push eax
push ecx
lea eax, [ebp - 0x34]
push edx
push eax
call fcn.00475d40
add esp, 0x28
mov edi, eax
cmp esi, edi
mov byte [ebp - 4], 2
je 0x40d868
mov ecx, edi
call fcn.0040e120
mov ecx, esi
mov dword [ebp + 0x10], eax
call fcn.0040e120
cmp dword [ebp + 0x10], eax
ja 0x40d7c7
mov edx, dword [esi + 4]
mov eax, dword [edi + 8]
mov ecx, dword [edi + 4]
push edx
push eax
push ecx
call fcn.0040e500
mov ecx, dword [esi + 8]
add esp, 0xc
push ecx
push eax
mov ecx, esi
call fcn.0040e440
mov ecx, edi
call fcn.0040e120
mov ecx, dword [esi + 4]
shl eax, 4
add eax, ecx
mov dword [esi + 8], eax
jmp 0x40d868
mov ecx, edi
call fcn.0040e120
mov ecx, esi
mov dword [ebp + 0x10], eax
call fcn.0040e100
cmp dword [ebp + 0x10], eax
ja 0x40d81b
mov edx, dword [edi + 4]
mov ecx, esi
mov dword [ebp + 0x10], edx
call fcn.0040e120
mov ecx, dword [ebp + 0x10]
mov edx, dword [esi + 4]
shl eax, 4
add eax, ecx
mov ecx, dword [edi + 4]
push edx
push eax
push ecx
mov dword [ebp + 0x10], eax
call fcn.0040e500
mov ecx, dword [esi + 8]
mov eax, dword [edi + 8]
mov edx, dword [ebp + 0x10]
add esp, 0xc
push ecx
push eax
push edx
mov ecx, esi
call fcn.0040e480
jmp 0x40d7b0
mov eax, dword [esi + 8]
mov ecx, dword [esi + 4]
push eax
push ecx
mov ecx, esi
call fcn.0040e440
mov eax, dword [esi + 4]
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
mov ecx, edi
call fcn.0040e120
test eax, eax
jge 0x40d843
xor eax, eax
shl eax, 4
push eax
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [esi + 4], eax
mov ecx, dword [edi + 8]
mov edi, dword [edi + 4]
push eax
push ecx
push edi
mov ecx, esi
call fcn.0040e480
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x30]
push edx
push eax
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 1
call fcn.0040e440
mov ecx, dword [ebp - 0x30]
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 4
jmp 0x40d9da
mov ecx, dword [0x4f1ac0]
add ebx, 0xa4
push 0
push ebx
push 0x8025
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0xc