Function at 0x401fb0
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x454a2c
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4738c0]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov ebx, dword [esp + 0x28]
push 0
push 0xa0
mov ecx, ebx
call fcn.0040cd7a
mov dword [esp + 0x20], 0
mov dword [ebx], vtable.CCustomDialog.0
lea edi, [ebx + 0x80]
call fcn.00418a14
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x402015
push 0x80004005
call fcn.00401890
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [edi], eax
lea esi, [ebx + 0x84]
mov ecx, esi
mov byte [esp + 0x20], 1
call fcn.0040f304
mov dword [esi], vtable.CComboBox.0
mov byte [esp + 0x20], 2
call fcn.00418a14
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
jne 0x40205a
push 0x80004005
call fcn.00401890
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea esi, [eax + 0x10]
mov dword [esp + 0x14], esi
mov byte [esp + 0x20], 3
mov eax, dword [esi - 8]
mov ebp, dword [0x477a90]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, 2
or eax, ecx
jge 0x402096
push 2
lea ecx, [esp + 0x18]
call fcn.004018e0
mov esi, dword [esp + 0x14]
push ebp
push 2
push esi
push 0x4636c0
push str.AutoStartup
push str.SystemState
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test esi, esi
jne 0x4020b7
xor eax, eax
jmp 0x4020d1
mov eax, esi
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x4020c0
sub eax, edx
js 0x402228
cmp eax, dword [esi - 8]
jg 0x402228
mov dword [esi - 0xc], eax
push esi
mov byte [eax + esi], 0
call fcn.0043ccf8
mov dword [ebx + 0x74], eax
mov eax, dword [esi - 8]
mov ebp, dword [0x477a90]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, 2
add esp, 4
or eax, ecx
jge 0x402114
push 2
lea ecx, [esp + 0x18]
call fcn.004018e0
mov esi, dword [esp + 0x14]
push ebp
push 2
push esi
push 0x4636dc
push str.ShowTray
push str.SystemState
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test esi, esi
jne 0x402135
xor eax, eax
jmp 0x402151
mov eax, esi
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x402140
sub eax, edx
js 0x402228
cmp eax, dword [esi - 8]
jg 0x402228
mov dword [esi - 0xc], eax
push esi
mov byte [eax + esi], 0
call fcn.0043ccf8
mov dword [ebx + 0x78], eax
mov eax, dword [edi]
mov ebp, dword [0x477a90]
sub eax, 0x10
mov ecx, 1
sub ecx, dword [eax + 0xc]
mov eax, dword [eax + 8]
sub eax, 4
add esp, 4
or eax, ecx
jge 0x402193
push 4
mov ecx, edi
call fcn.004018e0
mov eax, dword [edi]
push ebp
push 4
push eax
push 0x4636c0
push str.RefreshTime
push str.SystemState
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov ecx, dword [edi]
test ecx, ecx
jne 0x4021b8
xor eax, eax
jmp 0x4021cd
mov eax, ecx
lea ebp, [eax + 1]
lea ecx, [ecx]
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x4021c0
sub eax, ebp
js 0x402228
cmp eax, dword [ecx - 8]
jg 0x402228
mov dword [ecx - 0xc], eax
mov ecx, dword [edi]
mov byte [eax + ecx], 0
mov edi, dword [edi]
push edi
call fcn.0043ccf8
add esp, 4
neg eax
sbb eax, eax
neg eax
mov dword [ebx + 0x7c], eax
lea eax, [esi - 0x10]
mov byte [esp + 0x20], 2
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x402210
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, ebx
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 4
push 0x80070057
call fcn.00401890
int3