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

Disassembly:
push 0x18c
mov eax, 0x563baa
call fcn.00561213
mov dword [ebp - 0x198], ecx
xor ebx, ebx
lea ecx, [ebp - 0x88]
push 0x582c30
mov dword [ebp - 0x184], ebx
call fcn.004077bf
xor edx, edx
mov dword [ebp - 4], ebx
lea ecx, [ebp - 0x150]
call fcn.0043a53d
lea ecx, [ebp - 0x88]
mov byte [ebp - 4], 1
push ecx
lea ecx, [ebp - 0x180]
push ecx
mov ecx, eax
call fcn.0053cdb0
push 2
pop ecx
mov byte [ebp - 4], cl
lea ecx, [ebp - 0x40]
push eax
call fcn.00407797
lea ecx, [ebp - 0x180]
mov byte [ebp - 4], 4
call fcn.0053cce0
lea ecx, [ebp - 0x150]
mov byte [ebp - 4], 5
call fcn.0053cce0
push ebx
push 1
lea ecx, [ebp - 0x88]
mov byte [ebp - 4], 6
call fcn.00401d84
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
mov esi, 0x5802fc
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.0053fdc0
cmp dword [ebp - 0x2c], 8
pop ecx
pop ecx
lea ecx, [ebp - 0x40]
cmovae ecx, dword [ebp - 0x40]
cmp dword [eax + 0x14], 8
jb 0x415098
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.00401d84
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.0043f1b3
cmp dword [eax + 8], 0
je 0x415125
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 0x415127
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.00401c4a
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 7
push eax
call fcn.005418a0
mov ecx, eax
call fcn.00541bd0
xor edi, edi
mov byte [ebp - 4], 6
push edi
push 1
lea ecx, [ebp - 0x28]
mov bl, al
call fcn.00401d3f
test bl, bl
je 0x41517f
mov dword [ebp - 0x12c], 3
jmp 0x4151c5
push str.restart_by_config
lea ecx, [ebp - 0x28]
call fcn.00401c4a
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 8
push eax
call fcn.005418a0
mov ecx, eax
call fcn.00541bd0
push edi
push 1
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 6
mov bl, al
call fcn.00401d3f
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 0x580350
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 0x580350
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 0x580368
push 0x580350
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 0x580350
call ebx
mov ecx, dword [ebp - 0x12c]
xor ebx, ebx
mov dword [ebp - 0x190], eax
sub ecx, ebx
je 0x415327
dec ecx
je 0x4152e2
dec ecx
je 0x4152a3
dec ecx
jne 0x415360
inc eax
push eax
mov dword [ebp - 0x190], eax
lea eax, [ebp - 0x28]
push eax
call fcn.0053fdc0
cmp dword [ebp - 0x2c], 8
pop ecx
pop ecx
lea ecx, [ebp - 0x40]
cmovae ecx, dword [ebp - 0x40]
cmp dword [eax + 0x14], 8
jb 0x41528d
mov eax, dword [eax]
push ecx
push eax
push str.Kill
push 0x580350
call esi
lea ecx, [ebp - 0x28]
jmp 0x415358
mov eax, dword [ebp - 0x18c]
inc eax
push eax
mov dword [ebp - 0x18c], eax
lea eax, [ebp - 0x58]
push eax
call fcn.0053fdc0
cmp dword [ebp - 0x2c], 8
pop ecx
pop ecx
lea ecx, [ebp - 0x40]
cmovae ecx, dword [ebp - 0x40]
cmp dword [eax + 0x14], 8
jb 0x4152cf
mov eax, dword [eax]
push ecx
push eax
push 0x580368
push 0x580350
call esi
lea ecx, [ebp - 0x58]
jmp 0x415358
mov eax, dword [ebp - 0x188]
inc eax
push eax
mov dword [ebp - 0x188], eax
lea eax, [ebp - 0x168]
push eax
call fcn.0053fdc0
cmp dword [ebp - 0x2c], 8
pop ecx
pop ecx
lea ecx, [ebp - 0x40]
cmovae ecx, dword [ebp - 0x40]
cmp dword [eax + 0x14], 8
jb 0x415311
mov eax, dword [eax]
push ecx
push eax
push str.Closing
push 0x580350
call esi
lea ecx, [ebp - 0x168]
jmp 0x415358
inc edi
lea eax, [ebp - 0x70]
push edi
push eax
call fcn.0053fdc0
cmp dword [ebp - 0x2c], 8
pop ecx
pop ecx
lea ecx, [ebp - 0x40]
cmovae ecx, dword [ebp - 0x40]
cmp dword [eax + 0x14], 8
jb 0x415347
mov eax, dword [eax]
push ecx
push eax
push str.Running
push 0x580350
call esi
lea ecx, [ebp - 0x70]
push ebx
push 1
call fcn.00401d84
call fcn.005418a0
cmp dword [eax + 0x10], ebx
je 0x41539b
push str.kill_kgservice_at_first
lea ecx, [ebp - 0x28]
call fcn.00401c4a
push 9
pop eax
mov byte [ebp - 4], al
lea eax, [ebp - 0x28]
push eax
mov dword [ebp - 0x184], 1
call fcn.005418a0
mov ecx, eax
call fcn.00541bd0
test al, al
je 0x41539d
mov bl, 1
mov dword [ebp - 4], 6
test byte [ebp - 0x184], 1
je 0x4153b9
push 0
push 1
lea ecx, [ebp - 0x28]
call fcn.00401d3f
test bl, bl
je 0x4155b8
push 7
lea ecx, [ebp - 0x50]
call fcn.0043742a
lea eax, [ebp - 0x184]
mov byte [ebp - 4], 0xa
push eax
lea eax, [ebp - 0x70]
mov dword [ebp - 0x184], 0x7f
push eax
call fcn.00414048
mov ecx, eax
call fcn.004140c3
push eax
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 0xb
call fcn.004374c4
lea eax, [ebp - 0x20]
mov byte [ebp - 4], 0xc
push eax
push ecx
push str.type
lea ecx, [ebp - 0x50]
call fcn.00437c13
mov ecx, eax
call fcn.00437682
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 0xb
call fcn.00437602
xor ebx, ebx
lea ecx, [ebp - 0x70]
push ebx
push 1
call fcn.00401d3f
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.00437c13
mov ecx, eax
call fcn.00437682
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 0xa
call fcn.00437602
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.00437c13
mov ecx, eax
call fcn.00437682
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 0xa
call fcn.00437602
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.00437c13
mov ecx, eax
call fcn.00437682
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 0xa
call fcn.00437602
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.00437c13
mov ecx, eax
call fcn.00437682
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 0xa
call fcn.00437602
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.00437c13
mov ecx, eax
call fcn.00437682
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 0xa
call fcn.00437602
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x70]
call fcn.0053cc70
push ebx
push eax
mov byte [ebp - 4], 0x12
call fcn.0053c4f0
pop ecx
pop ecx
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 0xa
mov bl, al
call fcn.0053cce0
test bl, bl
je 0x4155ac
mov ecx, dword [ebp - 0x198]
lea eax, [ebp - 0x50]
push eax
call fcn.004155ca
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 6
call fcn.00437602
push 0
push 1
lea ecx, [ebp - 0x40]
call fcn.00401d84
call fcn.005611c2
ret