Function at 0x10016710
Capabilities:
Check if file exists
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100880a2
mov eax, dword fs:[0]
push eax
sub esp, 0x23c
mov eax, dword [0x100b52f8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x234], edi
mov eax, dword [edi + 0x2a8]
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp dword [eax - 0xc], 0
jne 0x1001682a
call fcn.10003180
push 0
lea ecx, [ebp - 0x230]
push ecx
mov ecx, eax
call fcn.1003f6e0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x218]
push 0x208
push 0
push eax
call fcn.1005fb60
add esp, 0xc
lea eax, [ebp - 0x230]
cmp dword [ebp - 0x21c], 8
cmovae eax, dword [ebp - 0x230]
push 0x100904fc
push eax
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea eax, [ebp - 0x218]
push eax
call esi
test eax, eax
jne 0x100167d1
lea eax, [ebp - 0x218]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
push str.regclient.dat
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100167f0
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [edi + 0x2a8]
call fcn.1000cfa0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x230]
call fcn.10002c00
mov eax, dword [edi + 0x2a8]
push eax
call esi
test eax, eax
je 0x10016a63
push 0x800
mov dword [ebp - 0x23c], 0
mov esi, 0x400
call fcn.10053625
mov ebx, eax
add esp, 4
mov dword [ebp - 0x240], ebx
test ebx, ebx
je 0x10016a5d
lea edi, [esi + esi]
push edi
push 0
push ebx
call fcn.1005fb60
mov eax, dword [ebp - 0x234]
add esp, 0xc
push dword [eax + 0x2a8]
push esi
push ebx
push str.ConfigCenterIDS
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionW]
lea ecx, [esi - 2]
cmp eax, ecx
jb 0x100168d3
push ebx
call fcn.1005362e
mov esi, edi
add esp, 4
cmp esi, 0x8000
ja 0x10016a5d
xor ecx, ecx
mov eax, esi
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.10053625
mov ebx, eax
mov dword [ebp - 0x240], eax
add esp, 4
test ebx, ebx
jne 0x10016861
jmp 0x10016a5d
test ebx, ebx
je 0x10016a5d
xor eax, eax
cmp ax, word [ebx]
je 0x10016a54
mov edi, dword [ebp - 0x234]
add edi, 0x2a0
mov dword [ebp - 0x23c], 1
mov ecx, edi
mov dword [ebp - 0x238], edi
mov esi, dword [edi]
push dword [esi + 4]
call fcn.10019c90
mov eax, dword [edi]
mov dword [eax + 4], esi
mov eax, dword [edi]
mov dword [eax], esi
mov eax, dword [edi]
mov dword [eax + 8], esi
mov dword [edi + 4], 0
mov edi, ebx
cmp word [ebx], 0
je 0x10016a54
mov ebx, dword [ebp - 0x238]
push 0x3d
push edi
call fcn.1005ef23
mov esi, eax
add esp, 8
test esi, esi
je 0x10016a26
call fcn.1000a780
mov ecx, esi
sub ecx, edi
push eax
sar ecx, 1
push ecx
push edi
lea ecx, [ebp - 0x238]
call fcn.10012310
mov dword [ebp - 4], 2
lea eax, [esi + 2]
push eax
lea ecx, [ebp - 0x234]
call fcn.10006880
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x234]
call fcn.10019550
mov eax, dword [ebp - 0x234]
mov ecx, 0x10090518
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x100169b9
test dx, dx
je 0x100169b5
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x100169b9
add eax, 4
add ecx, 4
test dx, dx
jne 0x10016993
xor eax, eax
jmp 0x100169be
sbb eax, eax
or eax, 1
test eax, eax
jne 0x100169df
push dword [ebp - 0x23c]
lea eax, [ebp - 0x238]
mov ecx, ebx
push eax
push 0
lea eax, [ebp - 0x248]
push eax
call fcn.10011e50
mov byte [ebp - 4], 2
or eax, 0xffffffff
mov edx, dword [ebp - 0x234]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10016a01
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
or eax, 0xffffffff
mov edx, dword [ebp - 0x238]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10016a26
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, edi
lea edx, [eax + 2]
nop dword [eax + eax]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10016a30
sub eax, edx
sar eax, 1
lea edi, [edi + eax*2]
add edi, 2
cmp word [edi], cx
jne 0x10016935
mov ebx, dword [ebp - 0x240]
push ebx
call fcn.1005362e
add esp, 4
mov eax, dword [ebp - 0x23c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10053047
mov esp, ebp
pop ebp
ret