Function at 0x406797
Capabilities:
Read .ini file

Disassembly:
mov eax, 0x41ac26
call fcn.00411544
mov eax, 0x1430
call fcn.00411720
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x10], edi
call fcn.00401046
xor ebx, ebx
mov ecx, edi
mov esi, eax
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], ebx
call fcn.0040105f
push ebx
mov ecx, esi
call fcn.00409e8b
lea eax, [esi + 0x10]
mov ecx, edi
push eax
mov dword [ebp - 0x1c], ebx
call fcn.004079ef
cmp eax, ebx
jne 0x4068c2
mov ecx, esi
call fcn.00409e71
test eax, eax
je 0x4068c8
push 1
mov ecx, esi
pop edi
mov dword [ebp - 0x1c], edi
call fcn.00409da5
mov eax, dword [eax]
dec eax
je 0x406845
dec eax
jne 0x406894
cmp dword [esi + 0x185c], ebx
je 0x40682f
lea eax, [esi + 0x1860]
push eax
lea eax, [ebp - 0x83c]
push eax
call fcn.00410fb0
pop ecx
mov dword [ebp - 0x18], edi
pop ecx
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x83c]
push dword [ebp - 0x18]
push eax
push dword [0x41f978]
jmp 0x406879
cmp dword [esi + 0x1458], ebx
je 0x406865
lea eax, [esi + 0x145c]
push eax
lea eax, [ebp - 0x83c]
push eax
call fcn.00410fb0
pop ecx
mov dword [ebp - 0x18], edi
pop ecx
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x83c]
push dword [ebp - 0x18]
push eax
push dword [0x41f974]
mov ecx, dword [ebp - 0x10]
call fcn.00407fda
test eax, eax
jne 0x406894
mov dword [0x424d80], 0x482
jmp 0x406b24
lea eax, [ebp - 0x83c]
push eax
call fcn.0040c5ad
test eax, eax
jne 0x4068c8
lea ecx, [ebp - 0x83c]
mov eax, 0x482
push ecx
push eax
mov dword [0x424d80], eax
call fcn.0040bd91
pop ecx
pop ecx
jmp 0x406b29
jg 0x406b29
and byte [ebp - 0x43c], 0
mov ebx, 0xff
mov ecx, ebx
xor eax, eax
lea edi, [ebp - 0x43b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
xor ecx, ecx
stosb byte es:[edi], al
cmp dword [esi + 0x1c60], ecx
je 0x406905
lea eax, [esi + 0x1c64]
push eax
lea eax, [ebp - 0x43c]
push eax
call fcn.00410fb0
pop ecx
pop ecx
push 1
pop ecx
lea edx, [ebp - 0x28]
lea eax, [esi + 0x810]
push edx
push ecx
lea ecx, [ebp - 0x43c]
mov dword [ebp - 0x24], eax
push ecx
mov ecx, dword [ebp - 0x10]
push eax
call fcn.00407fda
test eax, eax
je 0x406b24
and byte [ebp - 0xc3c], 0
mov ecx, ebx
xor eax, eax
lea edi, [ebp - 0xc3b]
rep stosd dword es:[edi], eax
mov ecx, dword [ebp - 0x10]
and dword [ebp - 0x18], 0
push 1
stosw word es:[edi], ax
pop ebx
push ebx
stosb byte es:[edi], al
call fcn.00407d5a
test eax, eax
je 0x40699b
xor eax, eax
cmp dword [esi + 0x2064], eax
je 0x406976
lea eax, [esi + 0x2068]
push eax
lea eax, [ebp - 0xc3c]
push eax
call fcn.00410fb0
pop ecx
mov eax, ebx
pop ecx
lea ecx, [ebp - 0x20]
push ecx
mov ecx, dword [ebp - 0x10]
push eax
lea eax, [ebp - 0xc3c]
push eax
push dword [0x41b588]
call fcn.00407fda
test eax, eax
je 0x406b24
mov dword [ebp - 0x18], ebx
xor edi, edi
cmp dword [ebp - 0x1c], edi
je 0x406a1d
mov ecx, dword [ebp - 0x10]
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x83c]
push eax
call fcn.00407bf1
cmp dword [ebp - 0x1c], edi
je 0x4069ee
push 0x423eb8
lea eax, [ebp - 0x3c]
push 0x400
push eax
push 0x4230e0
push dword [0x41b54c]
push dword [0x41b548]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
cmp byte [ebp - 0x3c], 0x79
je 0x4069ee
cmp byte [ebp - 0x3c], 0x59
je 0x4069ee
mov dword [ebp - 0x14], ebx
cmp dword [ebp - 0x1c], 2
jne 0x406a1d
cmp dword [ebp - 0x14], edi
jne 0x406a1d
lea eax, [esi + 0x1018]
push str._ISSCHEDULEREBOOT1
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push ebx
push str.ISSCHEDULEREBOOT1
push 0x41f310
mov ecx, esi
call fcn.0040a77e
cmp dword [ebp - 0x18], 0
mov edi, 0x4230e4
je 0x406aa3
cmp dword [ebp - 0x14], 0
jne 0x406aa3
lea eax, [ebp - 0xc3c]
push edi
push eax
lea ecx, [ebp - 0x103c]
call fcn.00403608
and dword [ebp - 4], 0
lea eax, [ebp - 0xc3c]
push eax
lea ecx, [ebp - 0x103c]
call fcn.00403682
test eax, eax
je 0x406a74
call fcn.00405402
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x103c]
call fcn.0040366c
jmp 0x406b29
mov ecx, dword [ebp - 0x10]
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0xc3c]
push eax
call fcn.00407f35
test eax, eax
je 0x406a60
cmp dword [ebp - 0x1c], 0
je 0x406a94
mov dword [ebp - 0x14], ebx
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x103c]
call fcn.0040366c
push dword [ebp - 0x14]
mov ecx, esi
call fcn.00409e8b
cmp dword [ebp - 0x28], 3
je 0x406b08
cmp dword [ebp - 0x14], 0
jne 0x406b2d
lea eax, [ebp - 0x43c]
push edi
push eax
lea ecx, [ebp - 0x143c]
call fcn.00403608
lea eax, [ebp - 0x43c]
lea ecx, [ebp - 0x143c]
push eax
mov dword [ebp - 4], ebx
call fcn.00403682
test eax, eax
je 0x406af9
call fcn.00405402
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x143c]
jmp 0x406a6a
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x143c]
call fcn.0040366c
cmp dword [ebp - 0x14], 0
jne 0x406b2d
mov ecx, dword [ebp - 0x10]
lea eax, [ebp - 0x43c]
push eax
push dword [ebp - 0x24]
call fcn.00408569
test eax, eax
jne 0x406b2d
call fcn.00405402
xor eax, eax
jmp 0x406b42
push dword [ebp - 0x14]
mov ecx, dword [ebp - 0x10]
lea eax, [ebp - 0x43c]
push dword [ebp - 0x20]
push eax
call fcn.00406b51
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret