Function at 0x414ede
Capabilities:
Contain obfuscated stackstrings
Read .ini file

Disassembly:
push 0x18c
mov eax, 0x565fd1
call fcn.005635af
mov dword [ebp - 0x198], ecx
xor ebx, ebx
lea ecx, [ebp - 0x88]
push 0x586808
mov dword [ebp - 0x184], ebx
call fcn.0040763f
xor edx, edx
mov dword [ebp - 4], ebx
lea ecx, [ebp - 0x150]
call fcn.004397c2
lea ecx, [ebp - 0x88]
mov byte [ebp - 4], 1
push ecx
lea ecx, [ebp - 0x180]
push ecx
mov ecx, eax
call fcn.0053f2e0
push 2
pop ecx
mov byte [ebp - 4], cl
lea ecx, [ebp - 0x40]
push eax
call fcn.00407617
lea ecx, [ebp - 0x180]
mov byte [ebp - 4], 4
call fcn.0053f210
lea ecx, [ebp - 0x150]
mov byte [ebp - 4], 5
call fcn.0053f210
push ebx
push 1
lea ecx, [ebp - 0x88]
mov byte [ebp - 4], 6
call fcn.00401d04
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
mov esi, 0x5842c0
mov edi, str.Start
cmovae eax, dword [ebp - 0x40]
push eax
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
inc eax
push eax
mov dword [ebp - 0x194], eax
lea eax, [ebp - 0x28]
push eax
call fcn.005422f0
cmp dword [ebp - 0x2c], 8
pop ecx
pop ecx
lea ecx, [ebp - 0x40]
cmovae ecx, dword [ebp - 0x40]
cmp dword [eax + 0x14], 8
jb 0x414fb8
mov eax, dword [eax]
push ecx
push eax
push esi
mov esi, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
push edi
call esi
push ebx
push 1
lea ecx, [ebp - 0x28]
call fcn.00401d04
xor eax, eax
push 0x98
mov word [ebp - 0x138], ax
lea eax, [ebp - 0x130]
push ebx
push eax
call sub.MSVCR120.dll_memset
mov dword [ebp - 0xa0], ebx
lea edi, [ebp - 0x98]
mov dword [ebp - 0x9c], ebx
xor eax, eax
stosd dword es:[edi], eax
add esp, 0xc
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov dword [ebp - 0x90], ebx
mov dword [ebp - 0x8c], ebx
call fcn.0043e47b
cmp dword [eax + 8], 0
je 0x415045
mov ecx, 0xb0
push ecx
push dword [eax + 8]
lea eax, [ebp - 0x138]
push ecx
push eax
call dword [sym.imp.MSVCR120.dll_memcpy_s]
add esp, 0x10
push 9
pop eax
cmp word [ebp - 0x138], ax
sete cl
jmp 0x415047
mov cl, bl
mov eax, dword [ebp - 0x12c]
test cl, cl
push 2
pop ecx
cmove eax, ecx
lea ecx, [ebp - 0x28]
push str.kill_kgservice_at_first
mov dword [ebp - 0x12c], eax
call fcn.00401bca
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 7
push eax
call fcn.00543dd0
mov ecx, eax
call fcn.00544100
xor edi, edi
mov byte [ebp - 4], 6
push edi
push 1
lea ecx, [ebp - 0x28]
mov bl, al
call fcn.00401cbf
test bl, bl
je 0x41509f
mov dword [ebp - 0x12c], 3
jmp 0x4150e5
push str.restart_by_config
lea ecx, [ebp - 0x28]
call fcn.00401bca
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 8
push eax
call fcn.00543dd0
mov ecx, eax
call fcn.00544100
push edi
push 1
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 6
mov bl, al
call fcn.00401cbf
mov ecx, dword [ebp - 0x12c]
test bl, bl
push 2
pop eax
cmovne ecx, eax
mov dword [ebp - 0x12c], ecx
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
cmovae eax, dword [ebp - 0x40]
push eax
push edi
push str.Running
push 0x584314
call ebx
cmp dword [ebp - 0x2c], 8
lea ecx, [ebp - 0x40]
mov edi, eax
cmovae ecx, dword [ebp - 0x40]
push ecx
push 0
push str.Closing
push 0x584314
call ebx
cmp dword [ebp - 0x2c], 8
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x188], eax
cmovae ecx, dword [ebp - 0x40]
push ecx
push 0
push 0x58432c
push 0x584314
call ebx
cmp dword [ebp - 0x2c], 8
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x18c], eax
cmovae ecx, dword [ebp - 0x40]
push ecx
push 0
push str.Kill
push 0x584314
call ebx
mov ecx, dword [ebp - 0x12c]
xor ebx, ebx
mov dword [ebp - 0x190], eax
sub ecx, ebx
je 0x415247
dec ecx
je 0x415202
dec ecx
je 0x4151c3
dec ecx
jne 0x415280
inc eax
push eax
mov dword [ebp - 0x190], eax
lea eax, [ebp - 0x28]
push eax
call fcn.005422f0
cmp dword [ebp - 0x2c], 8
pop ecx
pop ecx
lea ecx, [ebp - 0x40]
cmovae ecx, dword [ebp - 0x40]
cmp dword [eax + 0x14], 8
jb 0x4151ad
mov eax, dword [eax]
push ecx
push eax
push str.Kill
push 0x584314
call esi
lea ecx, [ebp - 0x28]
jmp 0x415278
mov eax, dword [ebp - 0x18c]
inc eax
push eax
mov dword [ebp - 0x18c], eax
lea eax, [ebp - 0x58]
push eax
call fcn.005422f0
cmp dword [ebp - 0x2c], 8
pop ecx
pop ecx
lea ecx, [ebp - 0x40]
cmovae ecx, dword [ebp - 0x40]
cmp dword [eax + 0x14], 8
jb 0x4151ef
mov eax, dword [eax]
push ecx
push eax
push 0x58432c
push 0x584314
call esi
lea ecx, [ebp - 0x58]
jmp 0x415278
mov eax, dword [ebp - 0x188]
inc eax
push eax
mov dword [ebp - 0x188], eax
lea eax, [ebp - 0x168]
push eax
call fcn.005422f0
cmp dword [ebp - 0x2c], 8
pop ecx
pop ecx
lea ecx, [ebp - 0x40]
cmovae ecx, dword [ebp - 0x40]
cmp dword [eax + 0x14], 8
jb 0x415231
mov eax, dword [eax]
push ecx
push eax
push str.Closing
push 0x584314
call esi
lea ecx, [ebp - 0x168]
jmp 0x415278
inc edi
lea eax, [ebp - 0x70]
push edi
push eax
call fcn.005422f0
cmp dword [ebp - 0x2c], 8
pop ecx
pop ecx
lea ecx, [ebp - 0x40]
cmovae ecx, dword [ebp - 0x40]
cmp dword [eax + 0x14], 8
jb 0x415267
mov eax, dword [eax]
push ecx
push eax
push str.Running
push 0x584314
call esi
lea ecx, [ebp - 0x70]
push ebx
push 1
call fcn.00401d04
call fcn.00543dd0
cmp dword [eax + 0x10], ebx
je 0x4152bb
push str.kill_kgservice_at_first
lea ecx, [ebp - 0x28]
call fcn.00401bca
push 9
pop eax
mov byte [ebp - 4], al
lea eax, [ebp - 0x28]
push eax
mov dword [ebp - 0x184], 1
call fcn.00543dd0
mov ecx, eax
call fcn.00544100
test al, al
je 0x4152bd
mov bl, 1
mov dword [ebp - 4], 6
test byte [ebp - 0x184], 1
je 0x4152d9
push 0
push 1
lea ecx, [ebp - 0x28]
call fcn.00401cbf
test bl, bl
je 0x4154d8
push 7
lea ecx, [ebp - 0x50]
call fcn.004366af
lea eax, [ebp - 0x184]
mov byte [ebp - 4], 0xa
push eax
lea eax, [ebp - 0x70]
mov dword [ebp - 0x184], 0x7d
push eax
call fcn.00413f66
mov ecx, eax
call fcn.00413fe1
push eax
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 0xb
call fcn.00436749
lea eax, [ebp - 0x20]
mov byte [ebp - 4], 0xc
push eax
push ecx
push str.type
lea ecx, [ebp - 0x50]
call fcn.00436e98
mov ecx, eax
call fcn.00436907
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 0xb
call fcn.00436887
xor ebx, ebx
lea ecx, [ebp - 0x70]
push ebx
push 1
call fcn.00401cbf
mov eax, dword [ebp - 0x18]
mov esi, 0xffffff01
and eax, esi
mov dword [ebp - 0x14], ebx
or eax, 1
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x194]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
mov byte [ebp - 4], 0xd
push eax
push ecx
push str.startCount
lea ecx, [ebp - 0x50]
call fcn.00436e98
mov ecx, eax
call fcn.00436907
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 0xa
call fcn.00436887
mov eax, dword [ebp - 0x18]
and eax, esi
mov dword [ebp - 0x14], ebx
or eax, 1
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x20]
mov byte [ebp - 4], 0xe
push eax
push ecx
push str.runningCount
lea ecx, [ebp - 0x50]
call fcn.00436e98
mov ecx, eax
call fcn.00436907
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 0xa
call fcn.00436887
mov eax, dword [ebp - 0x18]
and eax, esi
mov dword [ebp - 0x14], ebx
or eax, 1
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x188]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
mov byte [ebp - 4], 0xf
push eax
push ecx
push str.closingCount
lea ecx, [ebp - 0x50]
call fcn.00436e98
mov ecx, eax
call fcn.00436907
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 0xa
call fcn.00436887
mov eax, dword [ebp - 0x18]
and eax, esi
mov dword [ebp - 0x14], ebx
or eax, 1
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18c]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
mov byte [ebp - 4], 0x10
push eax
push ecx
push str.exitCount
lea ecx, [ebp - 0x50]
call fcn.00436e98
mov ecx, eax
call fcn.00436907
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 0xa
call fcn.00436887
mov eax, dword [ebp - 0x18]
and eax, esi
mov dword [ebp - 0x14], ebx
or eax, 1
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x190]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
mov byte [ebp - 4], 0x11
push eax
push ecx
push str.killCount
lea ecx, [ebp - 0x50]
call fcn.00436e98
mov ecx, eax
call fcn.00436907
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 0xa
call fcn.00436887
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x70]
call fcn.0053f1a0
push ebx
push eax
mov byte [ebp - 4], 0x12
call fcn.0053ea20
pop ecx
pop ecx
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 0xa
mov bl, al
call fcn.0053f210
test bl, bl
je 0x4154cc
mov ecx, dword [ebp - 0x198]
lea eax, [ebp - 0x50]
push eax
call fcn.004154ea
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 6
call fcn.00436887
push 0
push 1
lea ecx, [ebp - 0x40]
call fcn.00401d04
call fcn.0056355e
ret