Function at 0x4186f0
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x490268
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x68
push esi
push edi
mov esi, ecx
call fcn.00418220
call fcn.00423670
mov edi, eax
test edi, edi
mov dword [esp + 8], edi
je 0x418966
push ebp
call fcn.00430b00
mov cx, word [esi + 0x22c]
mov ebp, eax
lea eax, [esp + 0x18]
mov dword [esp + 0x14], ebp
push eax
push ecx
mov ecx, edi
call fcn.004242b0
mov edi, eax
test edi, edi
mov dword [esp + 0x10], edi
je 0x418906
mov eax, dword [0x4f2210]
push ebx
cmp eax, 3
je 0x4187e9
lea edx, [esi + 0x298]
lea ecx, [esi + 0x294]
push edx
push ecx
lea edx, [esi + 0x290]
lea ecx, [esi + 0x28c]
lea edi, [esi + 0x288]
push edx
lea ebp, [esi + 0x284]
push ecx
mov ecx, dword [esp + 0x20]
lea ebx, [esi + 0x280]
push edi
xor edx, edx
mov dx, word [esi + 0x22c]
lea eax, [esi + 0x27c]
push ebp
push ebx
push eax
push edx
call fcn.00424390
mov eax, dword [esi + 0x27c]
mov ebx, dword [ebx]
lea eax, [eax + eax*2]
lea ecx, [ebx + ebx*2]
mov dword [esi + 0xe0], eax
mov eax, dword [ebp]
cdq
sub eax, edx
mov ebp, dword [esp + 0x18]
sar eax, 1
mov dword [esi + 0xe8], eax
mov eax, dword [edi]
mov edi, dword [esp + 0x14]
mov dword [esi + 0xe4], ecx
cdq
sub eax, edx
sar eax, 1
mov dword [esi + 0xec], eax
mov eax, dword [esi + 0x234]
test eax, eax
jne 0x418869
mov ebx, dword [sym.imp.GDI32.dll_DeleteObject]
push 0
call ebx
mov eax, dword [esi + 0x238]
mov dword [esi + 0x234], edi
test eax, eax
je 0x418810
push eax
call ebx
mov edx, dword [esp + 0x1c]
xor eax, eax
mov dword [esp + 0x24], eax
lea ecx, [esp + 0x20]
mov dword [esp + 0x28], eax
mov dword [esi + 0x238], edx
mov edx, dword [esi + 0x234]
mov dword [esp + 0x2c], eax
push ecx
mov dword [esp + 0x34], eax
push 0x18
push edx
mov dword [esp + 0x2c], 0
mov dword [esp + 0x40], eax
call dword [sym.imp.GDI32.dll_GetObjectA]
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x24]
mov dword [esi + 0x240], ecx
push 1
mov ecx, esi
mov dword [esi + 0x23c], eax
call fcn.00417550
mov ecx, 0xf
xor eax, eax
lea edi, [esp + 0x39]
mov byte [esp + 0x38], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
test ebp, ebp
stosb byte es:[edi], al
pop ebx
je 0x41889b
mov ax, word [esi + 0x22c]
lea edx, [esp + 0x34]
push 0x3f
inc ax
push edx
push eax
mov ecx, ebp
call fcn.00430d20
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::CString_4
lea edi, [esp + 0x34]
or ecx, 0xffffffff
xor eax, eax
mov dword [esp + 0x7c], 0
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x4188cc
lea ecx, [esp + 0x34]
push ecx
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::operator_2
jmp 0x4188e9
xor edx, edx
lea eax, [esp + 0xc]
mov dx, word [esi + 0x22c]
inc edx
push edx
push str.View__d
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0xc
mov ecx, dword [esp + 0xc]
push ecx
mov ecx, esi
call sub.MFC42.DLL_CWnd::SetWindowTextA
lea ecx, [esp + 0xc]
mov dword [esp + 0x7c], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov edx, dword [esi + 0x20]
push 1
push 0
push edx
mov dword [esi + 0x248], 1
call dword [sym.imp.USER32.dll_InvalidateRect]
mov ecx, dword [esi + 0x40]
pop ebp
test ecx, ecx
je 0x41893c
xor eax, eax
mov ax, word [esi + 0x22c]
push eax
push 0xfa3
push 0
call sub.MFC42.DLL_CDocument::UpdateAllViews
lea ecx, [esi + 0x74]
call fcn.0041d0d0
push str.C:Secure1000Inspector.ini
push 1
push str.ENABLE_OPTION
push str.ZOOM
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
test eax, eax
setne cl
mov byte [esi + 0x26c], cl
mov ecx, dword [esp + 0x70]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x74
ret