Function at 0x1001df70
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10053342
mov eax, dword fs:[0]
push eax
mov eax, 0x10d8
call fcn.1004cae0
mov eax, dword [0x1006f184]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov esi, ecx
xor ecx, ecx
mov dword [ebp - 0x10d8], esi
mov dword [ebp - 0x10e0], eax
cmp cx, word [0x10074908]
jne 0x1001e007
push 0x104
push 0x10074908
call fcn.1003ed00
mov edi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
add esp, 8
push str.tencent_tbh
push 0x10074908
call edi
push 0x10061164
push 0x10074908
call edi
push 0x10074908
call fcn.1003ee00
add esp, 4
push str.visitHistory.ini
push 0x10074908
call edi
xor edx, edx
cmp edx, 0x10074908
je 0x1001e061
xor eax, eax
cmp ax, word [0x10074908]
je 0x1001e061
push 0x20000
call dword [sym.imp.MSVCR100.dll_void____cdecl_operator_new___unsigned_int_]
mov edi, eax
xor ebx, ebx
add esp, 4
mov dword [ebp - 0x10dc], edi
cmp edi, ebx
je 0x1001e061
push 0x10074908
push 0xfffc
push edi
push 0x10061cc4
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
xor ecx, ecx
cmp cx, word [edi]
jne 0x1001e081
push edi
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete___void__]
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 ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.1004c4fe
mov esp, ebp
pop ebp
ret 4
mov dword [ebp - 0x10d0], edi
jmp 0x1001e09c
mov esi, dword [ebp - 0x10d8]
mov edi, dword [ebp - 0x10d0]
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x1001e0a1
sub eax, edx
sar eax, 1
je 0x1001e34e
push 0x1046
lea eax, [ebp - 0x105a]
xor edx, edx
push ebx
push eax
mov word [ebp - 0x105c], dx
call sub.MSVCR100.dll_memset
add esp, 0xc
push 0x10074908
push 0x820
lea ecx, [ebp - 0x105c]
push ecx
push 0x10061cc4
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov esi, 7
xor edx, edx
mov eax, edi
mov dword [ebp - 0x1064], esi
mov dword [ebp - 0x1068], ebx
mov word [ebp - 0x1078], dx
lea ecx, [eax + 2]
mov dx, word [eax]
add eax, 2
cmp dx, bx
jne 0x1001e111
sub eax, ecx
sar eax, 1
push eax
push edi
lea ecx, [ebp - 0x1078]
call fcn.10025ce0
lea eax, [ebp - 0x1078]
push 0x1006337c
push eax
mov edi, 0x100611e4
mov dword [ebp - 4], ebx
call fcn.1001a9a0
lea ecx, [ebp - 0x1078]
push ecx
call fcn.1001aa50
add esp, 0xc
xor edx, edx
lea eax, [ebp - 0x105c]
mov dword [ebp - 0x1080], esi
mov dword [ebp - 0x1084], ebx
mov word [ebp - 0x1094], dx
lea ecx, [eax + 2]
mov dx, word [eax]
add eax, 2
cmp dx, bx
jne 0x1001e173
sub eax, ecx
sar eax, 1
push eax
lea eax, [ebp - 0x105c]
push eax
lea ecx, [ebp - 0x1094]
call fcn.10025ce0
lea ecx, [ebp - 0x1094]
push ecx
mov byte [ebp - 4], 1
call fcn.1001aa50
xor edx, edx
add esp, 4
mov dword [ebp - 0x10b8], esi
mov dword [ebp - 0x10bc], ebx
mov word [ebp - 0x10cc], dx
xor eax, eax
mov dword [ebp - 0x109c], esi
mov dword [ebp - 0x10a0], ebx
mov word [ebp - 0x10b0], ax
push 0xffffffffffffffff
push ebx
lea ecx, [ebp - 0x1094]
push ecx
lea ecx, [ebp - 0x10cc]
mov byte [ebp - 4], 3
call fcn.10024ec0
push 0xffffffffffffffff
push ebx
lea edx, [ebp - 0x1078]
push edx
lea ecx, [ebp - 0x10b0]
call fcn.10024ec0
sub esp, 0x38
mov esi, esp
mov dword [ebp - 0x10d4], esp
push 0xffffffffffffffff
push ebx
lea ecx, [ebp - 0x10cc]
mov edi, 7
xor eax, eax
push ecx
mov dword [esi + 0x14], edi
mov dword [esi + 0x10], ebx
mov ecx, esi
mov dword [ebp - 0x10d4], esi
mov word [esi], ax
call fcn.10024fd0
push 0xffffffffffffffff
lea ecx, [esi + 0x1c]
mov byte [ebp - 4], 4
push ebx
lea eax, [ebp - 0x10b0]
xor edx, edx
mov dword [ecx + 0x14], edi
mov dword [ecx + 0x10], ebx
push eax
mov word [ecx], dx
call fcn.10024fd0
mov esi, dword [ebp - 0x10e0]
mov ecx, esi
mov byte [ebp - 4], 3
call fcn.1001ab40
add esp, 0x38
cmp al, bl
jne 0x1001e279
lea ecx, [ebp - 0x10cc]
push ecx
mov ecx, esi
call fcn.10024bf0
mov edx, dword [ebp - 0x10d0]
mov eax, edx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x1001e284
sub eax, esi
sar eax, 1
lea edi, [edx + eax*2 + 2]
mov dword [ebp - 0x10d0], edi
mov esi, 8
mov byte [ebp - 4], 5
cmp dword [ebp - 0x109c], esi
jb 0x1001e2be
mov edx, dword [ebp - 0x10b0]
push edx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov byte [ebp - 4], 1
cmp dword [ebp - 0x10b8], esi
jb 0x1001e2da
mov eax, dword [ebp - 0x10cc]
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov byte [ebp - 4], bl
cmp dword [ebp - 0x1080], esi
jb 0x1001e2f5
mov ecx, dword [ebp - 0x1094]
push ecx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
xor edx, edx
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x1080], 7
mov dword [ebp - 0x1084], ebx
mov word [ebp - 0x1094], dx
cmp dword [ebp - 0x1064], esi
jb 0x1001e32d
mov eax, dword [ebp - 0x1078]
push eax
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete_void__]
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x1064], 7
mov dword [ebp - 0x1068], ebx
mov word [ebp - 0x1078], cx
cmp edi, ebx
jne 0x1001e090
mov edx, dword [ebp - 0x10dc]
push edx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete___void__]
add esp, 4
mov eax, 1
jmp 0x1001e063