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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10053c60
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 [0x1006f9d0]
mov dword [ebp - 0x60], 1
mov dword [ebp - 0x54], eax
push 0x104
push 0x104
lea ecx, [ebp - 0x54]
mov dword [ebp - 4], 0
call fcn.10001d80
push eax
call fcn.1003ed00
add esp, 8
lea ecx, [ebp - 0x54]
call fcn.10001ee0
mov esi, dword [ebp - 0x54]
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_recourl.ini
mov word [esi + eax*2], cx
call edi
push str._tencent_tbh_temp_recourl.ini
push eax
lea ecx, [ebp - 0x54]
call fcn.1000b370
mov ebx, dword [ebp - 0x54]
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x1002032d
lea edx, [ebx - 0xc]
mov dword [ebp - 4], 0xffffffff
cmp edx, dword [0x1006f9cc]
je 0x10020326
lea esi, [ebx - 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x10020326
push esi
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete___void__]
add esp, 4
xor eax, eax
jmp 0x100206b3
mov dword [ebp - 0x5c], 1
jmp 0x10020343
mov ebx, dword [ebp - 0x54]
mov eax, dword [0x1006f9d0]
mov dword [ebp - 0x58], eax
mov ecx, dword [ebp - 0x5c]
push ecx
lea edx, [ebp - 0x58]
push str.item_d
push edx
mov byte [ebp - 4], 1
call fcn.1000b260
mov eax, dword [0x1006f9d0]
add esp, 0xc
mov dword [ebp - 0x50], eax
push ebx
push 0x104
push 0x104
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 2
call fcn.10001d80
mov ecx, dword [ebp - 0x58]
push eax
push 0
push str.title
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov esi, dword [ebp - 0x50]
cmp dword [esi - 0xc], 1
lea edi, [esi - 0xc]
jle 0x100203fd
add esi, 0xfffffff4
cmp esi, dword [0x1006f9cc]
je 0x100203ca
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x100203c1
push edi
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete___void__]
add esp, 4
mov edx, dword [0x1006f9d0]
mov dword [ebp - 0x50], edx
mov eax, dword [edi + 4]
push eax
lea ecx, [ebp - 0x50]
call fcn.10001e40
mov esi, dword [ebp - 0x50]
test eax, eax
je 0x100203fd
mov eax, dword [edi + 4]
mov ecx, dword [esi - 4]
lea eax, [eax + eax + 2]
lea ecx, [ecx + ecx + 2]
cmp ecx, eax
jb 0x100203fd
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 - 0x4c], edx
push ebx
push 0x824
push 0x824
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 3
call fcn.10001d80
push eax
mov eax, dword [ebp - 0x58]
push 0
push 0x10061ee4
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov edi, dword [ebp - 0x4c]
cmp dword [edi - 0xc], 1
lea ebx, [edi - 0xc]
jle 0x100204a7
add edi, 0xfffffff4
cmp edi, dword [0x1006f9cc]
je 0x10020474
push ebx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x1002046b
push ebx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete___void__]
add esp, 4
mov ecx, dword [0x1006f9d0]
mov dword [ebp - 0x4c], ecx
mov edx, dword [ebx + 4]
push edx
lea ecx, [ebp - 0x4c]
call fcn.10001e40
mov edi, dword [ebp - 0x4c]
test eax, eax
je 0x100204a7
mov eax, dword [ebx + 4]
mov ecx, dword [edi - 4]
lea eax, [eax + eax + 2]
lea ecx, [ecx + ecx + 2]
cmp ecx, eax
jb 0x100204a7
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
xor ecx, ecx
mov dword [edi - 8], eax
mov word [edi + eax*2], cx
cmp dword [esi - 8], ecx
je 0x10020608
cmp dword [edi - 8], ecx
je 0x10020608
push ecx
lea ecx, [ebp - 0x4c]
call fcn.10001d80
xor edi, edi
push edi
lea ecx, [ebp - 0x50]
mov esi, eax
call fcn.10001d80
lea edx, [ebp - 0x64]
mov dword [ebp - 0x68], eax
push edx
lea eax, [ebp - 0x68]
push eax
lea ecx, [ebp - 0x48]
push ecx
mov dword [ebp - 0x64], esi
call fcn.100278e0
lea edx, [ebp - 0x48]
push edx
mov byte [ebp - 4], 4
call fcn.100248a0
mov byte [ebp - 4], 5
cmp dword [ebp - 0x18], 8
jb 0x1002051c
mov eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
xor ecx, ecx
mov esi, 7
mov byte [ebp - 4], 3
cmp dword [ebp - 0x34], 8
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x1c], edi
mov word [ebp - 0x2c], cx
jb 0x10020544
mov edx, dword [ebp - 0x48]
push edx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
xor eax, eax
lea ecx, [ebp - 0x50]
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x38], edi
mov word [ebp - 0x48], ax
call fcn.10001ee0
mov edi, dword [ebp - 0x50]
push edi
call ebx
xor ecx, ecx
mov dword [edi - 8], eax
mov word [edi + eax*2], cx
lea ecx, [ebp - 0x4c]
call fcn.10001ee0
mov esi, dword [ebp - 0x4c]
push esi
call ebx
mov dword [esi - 8], eax
xor edx, edx
mov word [esi + eax*2], dx
mov byte [ebp - 4], 2
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
lea eax, [esi - 0xc]
cmp eax, dword [0x1006f9cc]
je 0x100205a7
add esi, 0xfffffff4
push esi
call ebx
test eax, eax
jg 0x100205a7
push esi
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete___void__]
add esp, 4
lea ecx, [edi - 0xc]
mov byte [ebp - 4], 1
cmp ecx, dword [0x1006f9cc]
je 0x100205ca
lea esi, [edi - 0xc]
push esi
call ebx
test eax, eax
jg 0x100205ca
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 - 0x58]
lea edx, [eax - 0xc]
cmp edx, dword [0x1006f9cc]
je 0x100205f0
lea esi, [eax - 0xc]
push esi
call ebx
test eax, eax
jg 0x100205f0
push esi
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete___void__]
add esp, 4
mov eax, dword [ebp - 0x5c]
inc eax
mov dword [ebp - 0x5c], eax
cmp eax, 0xc
jle 0x10020340
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
jmp 0x10020687
mov byte [ebp - 4], 2
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
lea eax, [edi - 0xc]
mov dword [ebp - 0x60], ecx
cmp eax, dword [0x1006f9cc]
je 0x10020634
add edi, 0xfffffff4
push edi
call ebx
test eax, eax
jg 0x10020634
push edi
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete___void__]
add esp, 4
lea ecx, [esi - 0xc]
mov byte [ebp - 4], 1
cmp ecx, dword [0x1006f9cc]
je 0x10020657
add esi, 0xfffffff4
push esi
call ebx
test eax, eax
jg 0x10020657
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 - 0x58]
lea edx, [eax - 0xc]
cmp edx, dword [0x1006f9cc]
je 0x1002067d
lea esi, [eax - 0xc]
push esi
call ebx
test eax, eax
jg 0x1002067d
push esi
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete___void__]
add esp, 4
mov edi, 0x10074708
call fcn.10025a60
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x54]
lea ecx, [eax - 0xc]
cmp ecx, dword [0x1006f9cc]
je 0x100206b0
lea esi, [eax - 0xc]
push esi
call ebx
test eax, eax
jg 0x100206b0
push esi
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete___void__]
add esp, 4
mov eax, dword [ebp - 0x60]
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