Function at 0x10165c00
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1019f2c5
mov eax, dword fs:[0]
push eax
sub esp, 0x8a0
mov eax, dword [0x10204014]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [0x10208f10]
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x894], eax
mov eax, dword [esi]
mov dword [ebp - 0x878], ecx
mov dword [ebp - 0x82c], eax
cmp eax, esi
je 0x101661e6
cmp dword [eax + 0x24], 8
lea edi, [eax + 0x10]
mov edx, edi
jb 0x10165c62
mov edx, dword [edi]
cmp dword [ecx + 0x14], 8
mov eax, ecx
jb 0x10165c6c
mov eax, dword [ecx]
test eax, eax
je 0x10165c83
test edx, edx
je 0x10165c83
push edx
push eax
call dword [sym.imp.VCRUNTIME140.dll_wcsstr]
add esp, 8
test eax, eax
jne 0x10165ca4
lea ecx, [ebp - 0x82c]
call fcn.10007350
mov eax, dword [ebp - 0x82c]
cmp eax, esi
je 0x101661e6
mov ecx, dword [ebp - 0x878]
jmp 0x10165c55
xor eax, eax
mov dword [ebp - 0x84c], 0
mov dword [ebp - 0x848], 0
mov dword [ebp - 0x84c], 0
mov dword [ebp - 0x848], 7
mov word [ebp - 0x85c], ax
mov dword [ebp - 4], 1
lea esi, [edi + 0x18]
lea eax, [ebp - 0x85c]
cmp eax, esi
je 0x10165d02
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x10165cf3
mov eax, dword [esi]
push dword [esi + 0x10]
lea ecx, [ebp - 0x85c]
push eax
call fcn.10007fb0
lea ecx, [ebp - 0x85c]
call fcn.100e36e0
test al, al
je 0x1016614f
lea eax, [ebp - 0x828]
push eax
lea ecx, [ebp - 0x85c]
call fcn.100e4530
mov byte [ebp - 4], 3
cmp dword [esi + 0x14], 8
jb 0x10165d33
mov esi, dword [esi]
mov edx, str.2345Pinyin
mov ecx, esi
call fcn.10134c60
test al, al
je 0x10165dd9
lea eax, [ebp - 0x844]
push eax
lea ecx, [ebp - 0x85c]
call fcn.100e4780
mov byte [ebp - 4], 4
lea eax, [ebp - 0x844]
push eax
lea eax, [ebp - 0x828]
push eax
lea eax, [ebp - 0x890]
push eax
call fcn.101360c0
add esp, 0xc
mov esi, eax
mov byte [ebp - 4], 5
lea eax, [ebp - 0x828]
cmp eax, esi
je 0x10165dbb
mov ecx, eax
call fcn.10007f50
movups xmm0, xmmword [esi]
xor eax, eax
movups xmmword [ebp - 0x828], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [ebp - 0x818], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x890]
call fcn.10007f50
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x844]
call fcn.10007f50
push 7
xor eax, eax
mov dword [ebp - 0x880], 0
mov dword [ebp - 0x87c], 0
lea ecx, [ebp - 0x890]
push str.Protect
mov dword [ebp - 0x880], 0
mov dword [ebp - 0x87c], 7
mov word [ebp - 0x890], ax
call fcn.10007fb0
mov byte [ebp - 4], 6
lea eax, [ebp - 0x890]
push eax
lea eax, [ebp - 0x828]
push eax
lea eax, [ebp - 0x8ac]
push eax
call fcn.101360c0
add esp, 0xc
mov esi, eax
mov byte [ebp - 4], 7
lea eax, [ebp - 0x828]
cmp eax, esi
je 0x10165e7e
mov ecx, eax
call fcn.10007f50
movups xmm0, xmmword [esi]
xor eax, eax
movups xmmword [ebp - 0x828], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [ebp - 0x818], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x8ac]
call fcn.10007f50
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x890]
call fcn.10007f50
push 0xa
xor eax, eax
mov dword [ebp - 0x834], 0
mov dword [ebp - 0x830], 0
lea ecx, [ebp - 0x844]
push str.config.ini
mov dword [ebp - 0x834], 0
mov dword [ebp - 0x830], 7
mov word [ebp - 0x844], ax
call fcn.10007fb0
mov byte [ebp - 4], 8
lea eax, [ebp - 0x844]
push eax
lea eax, [ebp - 0x828]
push eax
lea eax, [ebp - 0x874]
push eax
call fcn.101360c0
add esp, 0xc
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x844]
call fcn.10007f50
push 0x800
lea eax, [ebp - 0x810]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x874]
cmp dword [ebp - 0x860], 8
cmovae eax, dword [ebp - 0x874]
push eax
push 0x400
lea eax, [ebp - 0x810]
push eax
push 0x101a7734
push str.ServiceVersion
push str.ServerLoadInfo
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea ecx, [ebp - 0x810]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10165f64
sub ecx, edx
sar ecx, 1
je 0x10166118
push 7
xor eax, eax
mov dword [ebp - 0x834], 0
mov dword [ebp - 0x830], 0
lea ecx, [ebp - 0x844]
push str.Service
mov dword [ebp - 0x834], 0
mov dword [ebp - 0x830], 7
mov word [ebp - 0x844], ax
call fcn.10007fb0
mov byte [ebp - 4], 0xb
lea eax, [ebp - 0x844]
push eax
lea eax, [ebp - 0x828]
push eax
lea eax, [ebp - 0x8ac]
push eax
call fcn.101360c0
add esp, 0xc
mov esi, eax
mov byte [ebp - 4], 0xc
lea eax, [ebp - 0x828]
cmp eax, esi
je 0x1016601e
mov ecx, eax
call fcn.10007f50
movups xmm0, xmmword [esi]
xor eax, eax
movups xmmword [ebp - 0x828], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [ebp - 0x818], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x8ac]
call fcn.10007f50
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x844]
call fcn.10007f50
xor eax, eax
mov dword [ebp - 0x880], 0
lea ecx, [ebp - 0x810]
mov dword [ebp - 0x87c], 0
mov dword [ebp - 0x880], 0
lea edx, [ecx + 2]
mov dword [ebp - 0x87c], 7
mov word [ebp - 0x890], ax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10166076
sub ecx, edx
lea eax, [ebp - 0x810]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x890]
call fcn.10007fb0
mov byte [ebp - 4], 0xd
lea eax, [ebp - 0x890]
push eax
lea eax, [ebp - 0x828]
push eax
lea eax, [ebp - 0x8ac]
push eax
call fcn.101360c0
add esp, 0xc
mov esi, eax
mov byte [ebp - 4], 0xe
lea eax, [ebp - 0x828]
cmp eax, esi
je 0x101660fa
mov ecx, eax
call fcn.10007f50
movups xmm0, xmmword [esi]
xor eax, eax
movups xmmword [ebp - 0x828], xmm0
movq xmm0, qword [esi + 0x10]
movq qword [ebp - 0x818], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0x8ac]
call fcn.10007f50
mov byte [ebp - 4], 0xa
lea ecx, [ebp - 0x890]
call fcn.10007f50
mov edx, 0x101b0180
lea ecx, [ebp - 0x828]
call fcn.10134e90
cmp dword [ebp - 0x818], 0
jne 0x10166168
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x874]
call fcn.10007f50
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x828]
call fcn.10007f50
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x85c]
call fcn.10007f50
xor al, al
jmp 0x101661e8
mov eax, dword [ebp - 0x878]
mov esi, dword [ebp - 0x894]
cmp esi, eax
je 0x1016618d
cmp dword [eax + 0x14], 8
mov ecx, eax
jb 0x10166182
mov ecx, dword [eax]
push dword [eax + 0x10]
push ecx
mov ecx, esi
call fcn.10007fb0
cmp dword [ebp - 0x814], 8
lea eax, [ebp - 0x828]
cmovae eax, dword [ebp - 0x828]
cmp dword [edi + 0x14], 8
jb 0x101661a9
mov edi, dword [edi]
push eax
mov edx, edi
mov ecx, esi
call fcn.10134cd0
add esp, 4
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x874]
call fcn.10007f50
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x828]
call fcn.10007f50
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x85c]
call fcn.10007f50
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1016e794
mov esp, ebp
pop ebp
ret 8