Function at 0x100089b0
Capabilities:
Delete file
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1003b9d8
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x1004f0a8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [edi + 0x1260]
cmp dword [eax - 8], 0
je 0x10008c55
mov ecx, dword [edi + 0x125c]
cmp dword [ecx - 8], 0
lea esi, [edi + 0x125c]
je 0x10008c55
mov edx, dword [0x10050de8]
mov dword [ebp - 0x10], edx
mov eax, ecx
cmp dword [eax - 8], 0
mov dword [ebp - 4], 0
jle 0x10008a79
push 0x5f
push eax
call fcn.1000b391
add esp, 8
test eax, eax
je 0x10008a79
sub eax, dword [esi]
sar eax, 1
test eax, eax
jle 0x10008a79
push eax
lea eax, [ebp - 0x14]
push eax
mov ecx, esi
call fcn.10007840
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call fcn.10001f50
mov eax, dword [ebp - 0x14]
lea ecx, [eax - 0xc]
mov byte [ebp - 4], 0
cmp ecx, dword [0x10050de4]
je 0x10008a82
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x10008a82
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff4
push eax
call fcn.1000b015
add esp, 4
jmp 0x10008a82
push esi
lea ecx, [ebp - 0x10]
call fcn.10001f50
push 0x400
call fcn.1000b020
push 0x400
mov esi, eax
push 0
push esi
mov dword [ebp - 0x14], esi
call fcn.1000ae30
mov eax, dword [edi + 0x1260]
mov ebx, dword [ebp - 0x10]
add esp, 0x10
push eax
push 0x200
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionW]
call fcn.1001d960
mov esi, str.SOFTWAREAppDataLowTencentTBHConfigProperty
test eax, eax
jne 0x10008acb
mov esi, str.SOFTWARETencentTBHConfigProperty
mov eax, dword [ebp - 0x14]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x10008ad1
sub eax, edx
sar eax, 1
je 0x10008b66
mov eax, dword [edi + 0x1260]
push eax
push 0
push str.websafe
push ebx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
push eax
push str.websafe
push esi
push SysReAllocString
call fcn.1001e9b0
mov eax, dword [edi + 0x1260]
add esp, 0x10
push eax
push 0
push str.dnserrsearch
push ebx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
push eax
push str.dnserrsearch
push esi
push SysReAllocString
call fcn.1001e9b0
mov eax, dword [edi + 0x1260]
add esp, 0x10
push eax
push 0
push str.haoqqbtnopen
push ebx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
push eax
push str.haoqqbtnopen
push esi
push SysReAllocString
call fcn.1001e9b0
add esp, 0x10
jmp 0x10008c1a
push str.Default
lea ecx, [ebp - 0x18]
call fcn.100077d0
mov eax, dword [edi + 0x1260]
mov ebx, dword [ebp - 0x18]
push eax
push 0
push str.websafe
push ebx
mov byte [ebp - 4], 2
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
push eax
push str.websafe
push esi
push SysReAllocString
call fcn.1001e9b0
mov eax, dword [edi + 0x1260]
add esp, 0x10
push eax
push 0
push str.dnserrsearch
push ebx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
push eax
push str.dnserrsearch
push esi
push SysReAllocString
call fcn.1001e9b0
mov eax, dword [edi + 0x1260]
add esp, 0x10
push eax
push 0
push str.haoqqbtnopen
push ebx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
push eax
push str.haoqqbtnopen
push esi
push SysReAllocString
call fcn.1001e9b0
lea edx, [ebx - 0xc]
add esp, 0x10
cmp edx, dword [0x10050de4]
je 0x10008c17
lea esi, [ebx - 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x10008c17
push esi
call fcn.1000b015
add esp, 4
mov ebx, dword [ebp - 0x10]
mov eax, dword [edi + 0x1260]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.1000b015
lea edx, [ebx - 0xc]
add esp, 4
cmp edx, dword [0x10050de4]
je 0x10008c55
lea esi, [ebx - 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x10008c55
push esi
call fcn.1000b015
add esp, 4
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret