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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10053c02
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
mov eax, dword [0x1006f184]
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 eax, dword [ecx + 0x2e8]
lea esi, [ecx + 0x2e4]
mov ecx, dword [eax + 4]
push ecx
mov ecx, esi
mov dword [ebp - 0x68], esi
call fcn.100254a0
mov eax, dword [esi + 4]
mov dword [eax + 4], eax
mov eax, dword [esi + 4]
mov dword [eax], eax
mov eax, dword [esi + 4]
mov dword [eax + 8], eax
xor eax, eax
mov dword [esi + 8], eax
mov edx, dword [0x1006f9d0]
mov dword [ebp - 0x58], edx
push 0x104
push 0x104
lea ecx, [ebp - 0x58]
mov dword [ebp - 4], eax
call fcn.10001d80
push eax
call fcn.1003ed00
add esp, 8
lea ecx, [ebp - 0x58]
call fcn.10001ee0
mov esi, dword [ebp - 0x58]
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenW]
push esi
call edi
xor ecx, ecx
mov dword [esi - 8], eax
push str._tencent_tbh_temp_adurl.ini
mov word [esi + eax*2], cx
call edi
push str._tencent_tbh_temp_adurl.ini
push eax
lea ecx, [ebp - 0x58]
call fcn.1000b370
mov ebx, dword [ebp - 0x58]
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x100207c3
lea edx, [ebx - 0xc]
mov dword [ebp - 4], 0xffffffff
cmp edx, dword [0x1006f9cc]
je 0x100207bc
lea esi, [ebx - 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x100207bc
push esi
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete___void__]
add esp, 4
xor eax, eax
jmp 0x10020b20
mov dword [ebp - 0x60], 1
jmp 0x100207d3
mov ebx, dword [ebp - 0x58]
mov eax, dword [0x1006f9d0]
mov dword [ebp - 0x5c], eax
mov ecx, dword [ebp - 0x60]
push ecx
lea edx, [ebp - 0x5c]
push str.item_d
push edx
mov byte [ebp - 4], 1
call fcn.1000b260
mov eax, dword [0x1006f9d0]
add esp, 0xc
mov dword [ebp - 0x54], eax
push ebx
push 0x104
push 0x104
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 2
call fcn.10001d80
mov ecx, dword [ebp - 0x5c]
push eax
push 0
push str.title
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov esi, dword [ebp - 0x54]
cmp dword [esi - 0xc], 1
lea edi, [esi - 0xc]
jle 0x1002088d
add esi, 0xfffffff4
cmp esi, dword [0x1006f9cc]
je 0x1002085a
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x10020851
push edi
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete___void__]
add esp, 4
mov edx, dword [0x1006f9d0]
mov dword [ebp - 0x54], edx
mov eax, dword [edi + 4]
push eax
lea ecx, [ebp - 0x54]
call fcn.10001e40
mov esi, dword [ebp - 0x54]
test eax, eax
je 0x1002088d
mov eax, dword [edi + 4]
mov ecx, dword [esi - 4]
lea eax, [eax + eax + 2]
lea ecx, [ecx + ecx + 2]
cmp ecx, eax
jb 0x1002088d
push eax
add edi, 0xc
push edi
push esi
call sub.MSVCR100.dll_memcpy
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov dword [esi - 8], eax
xor ecx, ecx
mov word [esi + eax*2], cx
mov edx, dword [0x1006f9d0]
mov dword [ebp - 0x50], edx
push ebx
push 0x824
push 0x824
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 3
call fcn.10001d80
push eax
mov eax, dword [ebp - 0x5c]
push 0
push 0x10061ee4
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov edi, dword [ebp - 0x50]
cmp dword [edi - 0xc], 1
lea ebx, [edi - 0xc]
jle 0x10020937
add edi, 0xfffffff4
cmp edi, dword [0x1006f9cc]
je 0x10020904
push ebx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x100208fb
push ebx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete___void__]
add esp, 4
mov ecx, dword [0x1006f9d0]
mov dword [ebp - 0x50], ecx
mov edx, dword [ebx + 4]
push edx
lea ecx, [ebp - 0x50]
call fcn.10001e40
mov edi, dword [ebp - 0x50]
test eax, eax
je 0x10020937
mov eax, dword [ebx + 4]
mov ecx, dword [edi - 4]
lea eax, [eax + eax + 2]
lea ecx, [ecx + ecx + 2]
cmp ecx, eax
jb 0x10020937
push eax
add ebx, 0xc
push ebx
push edi
call sub.MSVCR100.dll_memcpy
add esp, 0xc
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
push edi
call ebx
mov edx, dword [ebp - 0x58]
push edx
mov dword [edi - 8], eax
xor ecx, ecx
push 0xffffffffffffffff
mov word [edi + eax*2], cx
mov eax, dword [ebp - 0x5c]
push 0x10063454
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
xor ecx, ecx
mov dword [ebp - 0x64], eax
cmp dword [esi - 8], ecx
je 0x10020a6c
cmp dword [edi - 8], ecx
je 0x10020a6c
dec eax
cmp eax, 0xb
ja 0x10020a6c
mov eax, 7
xor edx, edx
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x3c], ecx
mov word [ebp - 0x4c], dx
mov dword [ebp - 0x1c], eax
xor eax, eax
mov dword [ebp - 0x20], ecx
mov word [ebp - 0x30], ax
push ecx
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 5
call fcn.10001d80
mov ecx, eax
lea esi, [ecx + 2]
mov edi, edi
mov dx, word [ecx]
add ecx, 2
test dx, dx
jne 0x100209b0
sub ecx, esi
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x4c]
call fcn.10025ce0
push 0
lea ecx, [ebp - 0x50]
call fcn.10001d80
mov ecx, eax
lea edx, [ecx + 2]
jmp 0x100209e0
mov si, word [ecx]
add ecx, 2
test si, si
jne 0x100209e0
sub ecx, edx
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x30]
call fcn.10025ce0
lea ecx, [ebp - 0x54]
call fcn.10001ee0
mov esi, dword [ebp - 0x54]
push esi
call ebx
xor ecx, ecx
mov dword [esi - 8], eax
mov word [esi + eax*2], cx
lea ecx, [ebp - 0x50]
call fcn.10001ee0
mov edi, dword [ebp - 0x50]
push edi
call ebx
mov ecx, dword [ebp - 0x68]
mov dword [edi - 8], eax
xor edx, edx
mov word [edi + eax*2], dx
mov eax, dword [ebp - 0x64]
lea edx, [ebp - 0x64]
mov dword [ebp - 0x14], eax
call fcn.10024610
push 0xffffffffffffffff
push 0
lea ecx, [ebp - 0x4c]
mov ebx, eax
push ecx
mov ecx, ebx
call fcn.10024fd0
push 0xffffffffffffffff
push 0
lea edx, [ebp - 0x30]
push edx
lea ecx, [ebx + 0x1c]
call fcn.10024fd0
mov eax, dword [ebp - 0x14]
lea ecx, [ebp - 0x4c]
push ecx
mov dword [ebx + 0x38], eax
mov byte [ebp - 4], 3
call fcn.10020b40
mov byte [ebp - 4], 2
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
lea edx, [edi - 0xc]
cmp edx, dword [0x1006f9cc]
je 0x10020a95
add edi, 0xfffffff4
push edi
call ebx
test eax, eax
jg 0x10020a95
push edi
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete___void__]
add esp, 4
lea eax, [esi - 0xc]
mov byte [ebp - 4], 1
cmp eax, dword [0x1006f9cc]
je 0x10020ab8
add esi, 0xfffffff4
push esi
call ebx
test eax, eax
jg 0x10020ab8
push esi
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete___void__]
add esp, 4
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x5c]
lea ecx, [eax - 0xc]
cmp ecx, dword [0x1006f9cc]
je 0x10020ade
lea esi, [eax - 0xc]
push esi
call ebx
test eax, eax
jg 0x10020ade
push esi
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete___void__]
add esp, 4
mov eax, dword [ebp - 0x60]
inc eax
mov dword [ebp - 0x60], eax
cmp eax, 0xc
jle 0x100207d0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x58]
lea edx, [eax - 0xc]
cmp edx, dword [0x1006f9cc]
je 0x10020b1b
lea esi, [eax - 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x10020b1b
push esi
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete___void__]
add esp, 4
mov eax, 1
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.1004c4fe
mov esp, ebp
pop ebp
ret