Function at 0x1002245c
Capabilities:
Read .ini file

Disassembly:
mov eax, 0x1004a113
call fcn.100464e0
sub esp, 0x8c
push ebx
push esi
mov esi, ecx
push edi
lea ecx, [ebp - 0x98]
call fcn.1000b450
mov edi, 0x10060f38
xor ebx, ebx
push edi
mov dword [ebp - 4], ebx
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x2c], 1
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0x10061030
lea ecx, [ebp - 0x98]
mov byte [ebp - 4], 1
call fcn.1000b6a7
push edi
mov byte [ebp - 4], bl
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [ebp - 0x98]
mov dword [ebp - 0x28], ebx
cmp eax, ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
je 0x100226d4
cmp byte [esi + 0x58], bl
jne 0x100226d4
lea ecx, [ebp - 0x34]
mov byte [esi + 0x58], 1
mov dword [esi + 0xc], eax
call fcn.1001bfa9
push dword [esi + 0xc]
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 2
call fcn.1001c2a8
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], bl
call fcn.1001c0ac
mov ecx, esi
call fcn.10023158
mov eax, dword [esi + 8]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x98]
mov dword [ebp - 0x24], eax
call fcn.10015de5
cmp dword [esi + 0x60], ebx
mov dword [ebp - 0x10], eax
mov edi, 0x10061018
jne 0x10022698
push 0x38
call sub.MFC42u.DLL_operatornew
pop ecx
mov ecx, eax
mov dword [ebp - 0x2c], ecx
cmp ecx, ebx
mov byte [ebp - 4], 3
je 0x1002254c
call fcn.1001df59
jmp 0x1002254e
xor eax, eax
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], bl
push ecx
lea ecx, [ebp - 0x48]
push ecx
lea ecx, [ebp - 0x4c]
push ecx
lea ecx, [ebp - 0x64]
push ecx
lea ecx, [ebp - 0x58]
push ecx
lea ecx, [ebp - 0x60]
push ecx
lea ecx, [ebp - 0x5c]
push ecx
mov ecx, eax
mov dword [esi + 0x60], eax
call fcn.1001e053
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x20], eax
cmp ecx, ebx
je 0x10022584
mov dword [ecx + 0x50], eax
push 1
lea eax, [esi + 0x68]
push 1
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
cmp eax, 1
jne 0x100225b4
mov eax, dword [ebp - 0x10]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x98]
mov byte [eax + 3], 0x12
call fcn.1000b5c0
xor eax, eax
jmp 0x100226e6
cmp dword [ebp - 0x20], ebx
jne 0x100225ed
cmp dword [esi + 0x5c], ebx
jne 0x100225ed
push 0x10
call sub.MFC42u.DLL_operatornew
pop ecx
mov dword [ebp - 0x2c], eax
cmp eax, ebx
mov byte [ebp - 4], 4
je 0x100225da
mov ecx, eax
call fcn.100211d5
jmp 0x100225dc
xor eax, eax
cmp eax, ebx
mov byte [ebp - 4], bl
mov dword [esi + 0x5c], eax
je 0x100225ed
mov ecx, eax
call fcn.100291f4
mov ecx, dword [esi + 0x60]
call fcn.1001e187
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x14]
push eax
call fcn.10014742
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 5
mov dword [esp], 0x1005c838
call sub.MFC42u.DLL_CString::operator_1
mov eax, dword [ebp - 0x10]
cmp eax, ebx
je 0x10022637
push dword [ebp - 0x14]
push ebx
push str.TagId
push str.QQPCDownload
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x48], eax
mov eax, ecx
cmp dword [ebp - 0x1c], ebx
je 0x1002268d
cmp dword [ebp - 0x1c], 0x12
je 0x10022685
cmp dword [ebp - 0x20], 1
jne 0x1002266a
cmp eax, ebx
je 0x10022650
mov byte [eax + 3], 0xa
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [0x10060f80], 0x10
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x1002268d
cmp eax, ebx
je 0x10022672
mov byte [eax + 3], 0xf
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [0x10060f80], 0xf
jmp 0x10022661
cmp eax, ebx
je 0x1002268d
mov byte [eax + 3], 0x12
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], bl
call sub.MFC42u.DLL_CString::CString
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebp - 0x20]
mov dword [0x10060fdc], eax
mov eax, dword [ebp - 0x1c]
cmp eax, ebx
mov dword [0x10060f90], eax
jne 0x100226ba
or dword [0x10060f8c], 2
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea eax, [ebp - 0x28]
push 0x1655
push eax
mov ecx, esi
call fcn.10024b68
mov byte [esi + 0x58], bl
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x98]
call fcn.1000b5c0
push 1
pop eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret