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

Disassembly:
push 0x18c
mov eax, 0x555324
call fcn.0054f7e3
mov dword [ebp - 0x198], ecx
xor ebx, ebx
lea ecx, [ebp - 0x88]
push 0x573320
mov dword [ebp - 0x184], ebx
call fcn.00407674
xor edx, edx
mov dword [ebp - 4], ebx
lea ecx, [ebp - 0xa0]
call fcn.00437921
lea ecx, [ebp - 0x88]
mov byte [ebp - 4], 1
push ecx
lea ecx, [ebp - 0xd0]
push ecx
mov ecx, eax
call fcn.0052d9a0
push 2
pop ecx
mov byte [ebp - 4], cl
lea ecx, [ebp - 0x40]
push eax
call fcn.0040764c
lea ecx, [ebp - 0xd0]
mov byte [ebp - 4], 4
call fcn.0052d8d0
lea ecx, [ebp - 0xa0]
mov byte [ebp - 4], 5
call fcn.0052d8d0
push ebx
push 1
lea ecx, [ebp - 0x88]
mov byte [ebp - 4], 6
call fcn.00401c9b
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
mov esi, 0x5711d0
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.00530a60
cmp dword [ebp - 0x2c], 8
pop ecx
pop ecx
lea ecx, [ebp - 0x40]
cmovae ecx, dword [ebp - 0x40]
cmp dword [eax + 0x14], 8
jb 0x41502b
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.00401c9b
xor eax, eax
push 0x98
mov word [ebp - 0x180], ax
lea eax, [ebp - 0x178]
push ebx
push eax
call sub.MSVCR120.dll_memset
xorps xmm0, xmm0
lea edi, [ebp - 0xe0]
movlpd qword [ebp - 0xe8], xmm0
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
movlpd qword [ebp - 0xd8], xmm0
call fcn.0043c62a
cmp dword [eax + 8], 0
je 0x4150b3
mov ecx, 0xb0
push ecx
push dword [eax + 8]
lea eax, [ebp - 0x180]
push ecx
push eax
call dword [sym.imp.MSVCR120.dll_memcpy_s]
add esp, 0x10
push 9
pop eax
cmp word [ebp - 0x180], ax
sete cl
jmp 0x4150b5
mov cl, bl
mov eax, dword [ebp - 0x174]
test cl, cl
push 2
pop ecx
cmove eax, ecx
lea ecx, [ebp - 0x28]
push str.kill_kgservice_at_first
mov dword [ebp - 0x174], eax
call fcn.00401b61
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 7
push eax
call fcn.00531fb0
mov ecx, eax
call fcn.005322e0
xor edi, edi
mov byte [ebp - 4], 6
push edi
push 1
lea ecx, [ebp - 0x28]
mov bl, al
call fcn.00401c56
test bl, bl
je 0x41510d
mov dword [ebp - 0x174], 3
jmp 0x415153
push str.restart_by_config
lea ecx, [ebp - 0x28]
call fcn.00401b61
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 8
push eax
call fcn.00531fb0
mov ecx, eax
call fcn.005322e0
push edi
push 1
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 6
mov bl, al
call fcn.00401c56
mov ecx, dword [ebp - 0x174]
test bl, bl
push 2
pop eax
cmovne ecx, eax
mov dword [ebp - 0x174], 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 0x571224
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 0x571224
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 0x57123c
push 0x571224
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 0x571224
call ebx
mov ecx, dword [ebp - 0x174]
xor ebx, ebx
mov dword [ebp - 0x190], eax
sub ecx, ebx
je 0x4152b5
dec ecx
je 0x415270
dec ecx
je 0x415231
dec ecx
jne 0x4152ee
inc eax
push eax
mov dword [ebp - 0x190], eax
lea eax, [ebp - 0x28]
push eax
call fcn.00530a60
cmp dword [ebp - 0x2c], 8
pop ecx
pop ecx
lea ecx, [ebp - 0x40]
cmovae ecx, dword [ebp - 0x40]
cmp dword [eax + 0x14], 8
jb 0x41521b
mov eax, dword [eax]
push ecx
push eax
push str.Kill
push 0x571224
call esi
lea ecx, [ebp - 0x28]
jmp 0x4152e6
mov eax, dword [ebp - 0x18c]
inc eax
push eax
mov dword [ebp - 0x18c], eax
lea eax, [ebp - 0x58]
push eax
call fcn.00530a60
cmp dword [ebp - 0x2c], 8
pop ecx
pop ecx
lea ecx, [ebp - 0x40]
cmovae ecx, dword [ebp - 0x40]
cmp dword [eax + 0x14], 8
jb 0x41525d
mov eax, dword [eax]
push ecx
push eax
push 0x57123c
push 0x571224
call esi
lea ecx, [ebp - 0x58]
jmp 0x4152e6
mov eax, dword [ebp - 0x188]
inc eax
push eax
mov dword [ebp - 0x188], eax
lea eax, [ebp - 0xb8]
push eax
call fcn.00530a60
cmp dword [ebp - 0x2c], 8
pop ecx
pop ecx
lea ecx, [ebp - 0x40]
cmovae ecx, dword [ebp - 0x40]
cmp dword [eax + 0x14], 8
jb 0x41529f
mov eax, dword [eax]
push ecx
push eax
push str.Closing
push 0x571224
call esi
lea ecx, [ebp - 0xb8]
jmp 0x4152e6
inc edi
lea eax, [ebp - 0x70]
push edi
push eax
call fcn.00530a60
cmp dword [ebp - 0x2c], 8
pop ecx
pop ecx
lea ecx, [ebp - 0x40]
cmovae ecx, dword [ebp - 0x40]
cmp dword [eax + 0x14], 8
jb 0x4152d5
mov eax, dword [eax]
push ecx
push eax
push str.Running
push 0x571224
call esi
lea ecx, [ebp - 0x70]
push ebx
push 1
call fcn.00401c9b
call fcn.00531fb0
cmp dword [eax + 0x10], ebx
je 0x415329
push str.kill_kgservice_at_first
lea ecx, [ebp - 0x28]
call fcn.00401b61
push 9
pop eax
mov byte [ebp - 4], al
lea eax, [ebp - 0x28]
push eax
mov dword [ebp - 0x184], 1
call fcn.00531fb0
mov ecx, eax
call fcn.005322e0
test al, al
je 0x41532b
mov bl, 1
mov dword [ebp - 4], 6
test byte [ebp - 0x184], 1
je 0x415347
push 0
push 1
lea ecx, [ebp - 0x28]
call fcn.00401c56
test bl, bl
je 0x415546
push 7
lea ecx, [ebp - 0x50]
call fcn.0043489b
lea eax, [ebp - 0x184]
mov byte [ebp - 4], 0xa
push eax
lea eax, [ebp - 0x70]
mov dword [ebp - 0x184], 0x7d
push eax
call fcn.00413fa6
mov ecx, eax
call fcn.00414021
push eax
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 0xb
call fcn.0043492e
lea eax, [ebp - 0x20]
mov byte [ebp - 4], 0xc
push eax
push ecx
push str.type
lea ecx, [ebp - 0x50]
call fcn.00435091
mov ecx, eax
call fcn.00434aec
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 0xb
call fcn.00434a6c
xor ebx, ebx
lea ecx, [ebp - 0x70]
push ebx
push 1
call fcn.00401c56
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.00435091
mov ecx, eax
call fcn.00434aec
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 0xa
call fcn.00434a6c
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.00435091
mov ecx, eax
call fcn.00434aec
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 0xa
call fcn.00434a6c
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.00435091
mov ecx, eax
call fcn.00434aec
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 0xa
call fcn.00434a6c
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.00435091
mov ecx, eax
call fcn.00434aec
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 0xa
call fcn.00434a6c
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.00435091
mov ecx, eax
call fcn.00434aec
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 0xa
call fcn.00434a6c
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x70]
call fcn.0052d860
push ebx
push eax
mov byte [ebp - 4], 0x12
call fcn.0052d0f0
pop ecx
pop ecx
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 0xa
mov bl, al
call fcn.0052d8d0
test bl, bl
je 0x41553a
mov ecx, dword [ebp - 0x198]
lea eax, [ebp - 0x50]
push eax
call fcn.00415558
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 6
call fcn.00434a6c
push 0
push 1
lea ecx, [ebp - 0x40]
call fcn.00401c9b
call fcn.0054f792
ret