Function at 0x40ce20
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x4441ef
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x770
push ebx
xor ebx, ebx
push ebp
push esi
cmp ecx, ebx
push edi
mov dword [esp + 0x48], ecx
jne 0x40ce4d
xor eax, eax
jmp 0x40ce50
mov eax, dword [ecx + 0x20]
push 0x1b
push ebx
push 0x64
push eax
call dword [sym.imp.USER32.dll_RegisterHotKey]
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x579]
mov byte [esp + 0x578], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x2c]
mov ecx, 0x4579a8
push eax
call fcn.00402d30
push str.ancamera.ini
lea ecx, [esp + 0x14]
push eax
push ecx
mov dword [esp + 0x794], ebx
call sub.MFC42.DLL_operator_2
mov eax, dword [eax]
mov ebp, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push eax
lea edx, [esp + 0x57c]
push 0x104
push edx
push 0x456e3c
push str.RULERDLG_CNT
push str.RULER_OPT
call ebp
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x2c]
mov dword [esp + 0x788], 0xffffffff
call sub.MFC42.DLL_CString::CString
lea eax, [esp + 0x578]
push eax
call dword [sym.imp.MSVCRT.dll_atoi]
mov esi, 1
add esp, 4
cmp eax, esi
mov dword [esp + 0x44], eax
jl 0x40d5d7
mov ecx, dword [esp + 0x48]
call fcn.0040d600
lea ecx, [esp + 0x24]
mov dword [esp + 0x10], eax
call sub.MFC42.DLL_CString::CString_3
lea ecx, [esp + 0x1c]
mov dword [esp + 0x788], 1
call sub.MFC42.DLL_CString::CString_3
lea ecx, [esp + 0x18]
mov byte [esp + 0x788], 2
call sub.MFC42.DLL_CString::CString_3
lea ecx, [esp + 0x14]
mov byte [esp + 0x788], 3
call sub.MFC42.DLL_CString::CString_3
lea ecx, [esp + 0x28]
mov byte [esp + 0x788], 4
call sub.MFC42.DLL_CString::CString_3
lea ecx, [esp + 0x20]
mov byte [esp + 0x788], 5
call sub.MFC42.DLL_CString::CString_3
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x67d]
mov byte [esp + 0x67c], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x475]
mov byte [esp + 0x474], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x371]
mov byte [esp + 0x370], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x26d]
mov byte [esp + 0x26c], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x65]
mov byte [esp + 0x64], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x169]
mov byte [esp + 0x168], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push esi
lea ecx, [esp + 0x28]
push str.RULERDLG_POS_d_X
push ecx
mov byte [esp + 0x794], 6
stosb byte es:[edi], al
call sub.MFC42.DLL_CString::Format
push esi
lea edx, [esp + 0x2c]
push str.RULERDLG_POS_d_Y
push edx
call sub.MFC42.DLL_CString::Format
push esi
push str.RULERDLG_POS_d_CX
lea eax, [esp + 0x38]
push eax
call sub.MFC42.DLL_CString::Format
push esi
lea ecx, [esp + 0x3c]
push str.RULERDLG_POS_d_CY
push ecx
call sub.MFC42.DLL_CString::Format
push esi
lea edx, [esp + 0x5c]
push str.RULERDLG_POS_d_COLOR
push edx
call sub.MFC42.DLL_CString::Format
push esi
lea eax, [esp + 0x60]
push str.RULERDLG_POS_d_UNIT
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0x48
lea ecx, [esp + 0x38]
push ecx
mov ecx, 0x4579a8
call fcn.00402d30
push str.ancamera.ini
lea edx, [esp + 0x30]
push eax
push edx
mov byte [esp + 0x794], 7
call sub.MFC42.DLL_operator_2
mov eax, dword [eax]
mov ecx, dword [esp + 0x24]
push eax
lea eax, [esp + 0x680]
push 0x104
push eax
push 0x456da0
push ecx
push str.RULER_OPT
call ebp
lea ecx, [esp + 0x2c]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x38]
mov byte [esp + 0x788], 6
call sub.MFC42.DLL_CString::CString
lea edx, [esp + 0x40]
mov ecx, 0x4579a8
push edx
call fcn.00402d30
push str.ancamera.ini
push eax
lea eax, [esp + 0x58]
mov byte [esp + 0x790], 8
push eax
call sub.MFC42.DLL_operator_2
mov eax, dword [eax]
mov edx, dword [esp + 0x1c]
push eax
lea ecx, [esp + 0x478]
push 0x104
push ecx
push 0x456da0
push edx
push str.RULER_OPT
call ebp
lea ecx, [esp + 0x50]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x40]
mov byte [esp + 0x788], 6
call sub.MFC42.DLL_CString::CString
lea eax, [esp + 0x30]
mov ecx, 0x4579a8
push eax
call fcn.00402d30
push str.ancamera.ini
lea ecx, [esp + 0x5c]
push eax
mov byte [esp + 0x790], 9
push ecx
call sub.MFC42.DLL_operator_2
mov eax, dword [eax]
lea edx, [esp + 0x370]
push eax
mov eax, dword [esp + 0x1c]
push 0x104
push edx
push 0x456d9c
push eax
push str.RULER_OPT
call ebp
lea ecx, [esp + 0x58]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x30]
mov byte [esp + 0x788], 6
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x5c]
push ecx
mov ecx, 0x4579a8
call fcn.00402d30
push str.ancamera.ini
lea edx, [esp + 0x64]
push eax
push edx
mov byte [esp + 0x794], 0xa
call sub.MFC42.DLL_operator_2
mov eax, dword [eax]
mov ecx, dword [esp + 0x14]
push eax
lea eax, [esp + 0x270]
push 0x104
push eax
push 0x456da0
push ecx
push str.RULER_OPT
call ebp
lea ecx, [esp + 0x60]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x5c]
mov byte [esp + 0x788], 6
call sub.MFC42.DLL_CString::CString
lea edx, [esp + 0x4c]
mov ecx, 0x4579a8
push edx
call fcn.00402d30
push str.ancamera.ini
push eax
lea eax, [esp + 0x5c]
mov byte [esp + 0x790], 0xb
push eax
call sub.MFC42.DLL_operator_2
mov eax, dword [eax]
mov edx, dword [esp + 0x28]
push eax
lea ecx, [esp + 0x68]
push 0x104
push ecx
push str.BLUE
push edx
push str.RULER_OPT
call ebp
lea ecx, [esp + 0x54]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x4c]
mov byte [esp + 0x788], 6
call sub.MFC42.DLL_CString::CString
lea eax, [esp + 0x3c]
mov ecx, 0x4579a8
push eax
call fcn.00402d30
push str.ancamera.ini
lea ecx, [esp + 0x38]
push eax
push ecx
mov byte [esp + 0x794], 0xc
call sub.MFC42.DLL_operator_2
mov eax, dword [eax]
push eax
mov eax, dword [esp + 0x24]
lea edx, [esp + 0x16c]
push 0x104
push edx
push 0x456d90
push eax
push str.RULER_OPT
call ebp
lea ecx, [esp + 0x34]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x3c]
mov byte [esp + 0x788], 6
call sub.MFC42.DLL_CString::CString
mov edi, dword [sym.imp.MSVCRT.dll_atoi]
lea ecx, [esp + 0x26c]
push 1
push ecx
call edi
add esp, 4
lea edx, [esp + 0x374]
push eax
push edx
call edi
add esp, 4
push eax
lea eax, [esp + 0x480]
push eax
call edi
add esp, 4
lea ecx, [esp + 0x688]
push eax
push ecx
call edi
mov ecx, dword [esp + 0x24]
add esp, 4
push eax
call sub.MFC42.DLL_CWnd::MoveWindow
mov eax, str.BLUE
lea edi, [esp + 0x64]
mov dl, byte [edi]
mov cl, dl
cmp dl, byte [eax]
jne 0x40d330
cmp cl, bl
je 0x40d32c
mov dl, byte [edi + 1]
mov cl, dl
cmp dl, byte [eax + 1]
jne 0x40d330
add edi, 2
add eax, 2
cmp cl, bl
jne 0x40d30c
xor eax, eax
jmp 0x40d335
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
jne 0x40d34c
mov eax, dword [esp + 0x10]
mov dword [eax + 0xe8], 0x8016
jmp 0x40d41f
mov eax, str.YELLOW
lea edi, [esp + 0x64]
mov dl, byte [edi]
mov cl, dl
cmp dl, byte [eax]
jne 0x40d379
cmp cl, bl
je 0x40d375
mov dl, byte [edi + 1]
mov cl, dl
cmp dl, byte [eax + 1]
jne 0x40d379
add edi, 2
add eax, 2
cmp cl, bl
jne 0x40d355
xor eax, eax
jmp 0x40d37e
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
jne 0x40d395
mov eax, dword [esp + 0x10]
mov dword [eax + 0xe8], 0x8017
jmp 0x40d41f
mov eax, str.WHITE
lea edi, [esp + 0x64]
mov dl, byte [edi]
mov cl, dl
cmp dl, byte [eax]
jne 0x40d3c2
cmp cl, bl
je 0x40d3be
mov dl, byte [edi + 1]
mov cl, dl
cmp dl, byte [eax + 1]
jne 0x40d3c2
add edi, 2
add eax, 2
cmp cl, bl
jne 0x40d39e
xor eax, eax
jmp 0x40d3c7
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
jne 0x40d3db
mov eax, dword [esp + 0x10]
mov dword [eax + 0xe8], 0x8018
jmp 0x40d41f
mov eax, str.BLACK
lea edi, [esp + 0x64]
mov dl, byte [edi]
mov cl, dl
cmp dl, byte [eax]
jne 0x40d408
cmp cl, bl
je 0x40d404
mov dl, byte [edi + 1]
mov cl, dl
cmp dl, byte [eax + 1]
jne 0x40d408
add edi, 2
add eax, 2
cmp cl, bl
jne 0x40d3e4
xor eax, eax
jmp 0x40d40d
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
jne 0x40d42c
mov eax, dword [esp + 0x10]
mov dword [eax + 0xe8], 0x8019
mov eax, dword [eax + 0x20]
push 1
push ebx
push eax
call dword [sym.imp.USER32.dll_InvalidateRect]
mov eax, 0x456d90
lea edi, [esp + 0x168]
mov dl, byte [edi]
mov cl, dl
cmp dl, byte [eax]
jne 0x40d45c
cmp cl, bl
je 0x40d458
mov dl, byte [edi + 1]
mov cl, dl
cmp dl, byte [eax + 1]
jne 0x40d45c
add edi, 2
add eax, 2
cmp cl, bl
jne 0x40d438
xor eax, eax
jmp 0x40d461
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
jne 0x40d478
mov eax, dword [esp + 0x10]
mov dword [eax + 0xe4], 0x801a
jmp 0x40d554
mov eax, 0x456d74
lea edi, [esp + 0x168]
mov dl, byte [edi]
mov cl, dl
cmp dl, byte [eax]
jne 0x40d4a8
cmp cl, bl
je 0x40d4a4
mov dl, byte [edi + 1]
mov cl, dl
cmp dl, byte [eax + 1]
jne 0x40d4a8
add edi, 2
add eax, 2
cmp cl, bl
jne 0x40d484
xor eax, eax
jmp 0x40d4ad
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
jne 0x40d4c4
mov eax, dword [esp + 0x10]
mov dword [eax + 0xe4], 0x801b
jmp 0x40d554
mov eax, 0x456d70
lea edi, [esp + 0x168]
mov dl, byte [edi]
mov cl, dl
cmp dl, byte [eax]
jne 0x40d4f4
cmp cl, bl
je 0x40d4f0
mov dl, byte [edi + 1]
mov cl, dl
cmp dl, byte [eax + 1]
jne 0x40d4f4
add edi, 2
add eax, 2
cmp cl, bl
jne 0x40d4d0
xor eax, eax
jmp 0x40d4f9
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
jne 0x40d50d
mov eax, dword [esp + 0x10]
mov dword [eax + 0xe4], 0x801c
jmp 0x40d554
mov eax, 0x456d6c
lea edi, [esp + 0x168]
mov dl, byte [edi]
mov cl, dl
cmp dl, byte [eax]
jne 0x40d53d
cmp cl, bl
je 0x40d539
mov dl, byte [edi + 1]
mov cl, dl
cmp dl, byte [eax + 1]
jne 0x40d53d
add edi, 2
add eax, 2
cmp cl, bl
jne 0x40d519
xor eax, eax
jmp 0x40d542
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
jne 0x40d561
mov eax, dword [esp + 0x10]
mov dword [eax + 0xe4], 0x801d
mov eax, dword [eax + 0x20]
push 1
push ebx
push eax
call dword [sym.imp.USER32.dll_InvalidateRect]
lea ecx, [esp + 0x20]
mov byte [esp + 0x788], 5
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x28]
mov byte [esp + 0x788], 4
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov byte [esp + 0x788], 3
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
mov byte [esp + 0x788], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x1c]
mov byte [esp + 0x788], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x24]
mov dword [esp + 0x788], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0x44]
inc esi
cmp esi, eax
jle 0x40cf02
mov ecx, dword [esp + 0x780]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x77c
ret