Function at 0x100b66b0
Capabilities:
Check if file exists
Get common file path
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1012cb4d
mov eax, dword fs:[0]
push eax
sub esp, 0xc30
mov eax, dword [0x10167c60]
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 ebx, ecx
call fcn.100088b0
mov ecx, eax
test ecx, ecx
je 0x100b6be3
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0xc30], eax
mov dword [ebp - 4], 0
call fcn.100088b0
mov ecx, eax
test ecx, ecx
je 0x100b6bed
mov eax, dword [ecx]
call dword [eax + 0xc]
lea esi, [eax + 0x10]
mov dword [ebp - 0xc3c], esi
mov eax, dword [ebx + 0x1c]
mov byte [ebp - 4], 1
cmp dword [eax - 0xc], 0
je 0x100b67b5
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, 0xa28
or eax, ecx
jge 0x100b675c
push 0xa28
lea ecx, [ebp - 0xc3c]
call fcn.1000b310
mov esi, dword [ebp - 0xc3c]
cmp dword [esi - 8], 0xa28
jl 0x100b6bf7
xor eax, eax
mov dword [esi - 0xc], 0xa28
push eax
mov word [esi + 0x1450], ax
lea eax, [ebp - 0xc34]
push 0xa28
push eax
push esi
push dword [ebx + 0x1c]
call fcn.100b5500
push dword [esi - 8]
push esi
call fcn.100efbd7
add esp, 0x1c
test eax, eax
js 0x100b6bf7
cmp eax, dword [esi - 8]
jg 0x100b6bf7
xor ecx, ecx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], cx
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.100e67c0
add esp, 0xc
call fcn.100088b0
mov ecx, eax
test ecx, ecx
je 0x100b6c01
mov eax, dword [ecx]
call dword [eax + 0xc]
lea edi, [eax + 0x10]
mov dword [ebp - 0xc2c], edi
push 0x104
lea eax, [ebp - 0x218]
mov byte [ebp - 4], 2
push eax
push 0x10000000
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea ecx, [ebp - 0xc25]
call fcn.100b50a0
push eax
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x100b68e4
call fcn.100088b0
mov ecx, eax
test ecx, ecx
je 0x100b6c0b
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0xc24], eax
lea eax, [ebp - 0x218]
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp - 0xc24]
call fcn.10016a90
test al, al
jne 0x100b68a2
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100b6880
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0xc24]
call fcn.1000b940
lea eax, [ebp - 0xc2c]
mov byte [ebp - 4], 4
push eax
lea eax, [ebp - 0xc24]
push eax
call fcn.1002f9f0
mov edx, dword [ebp - 0xc24]
add esp, 8
mov byte [ebp - 4], 2
add edx, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x100b68de
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, dword [ebp - 0xc2c]
push 0x208
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.100e67c0
add esp, 0xc
lea eax, [ebp - 0x420]
push 0
push 0x1a
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea ecx, [ebp - 0xc25]
call fcn.100b4fc0
push eax
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push 0x800
lea eax, [ebp - 0xc20]
push 0
push eax
call fcn.100e67c0
add esp, 0xc
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x100b6975
lea eax, [ebp - 0x420]
push eax
push 0x400
lea eax, [ebp - 0xc20]
push eax
push 0x101308ac
push str.static
push str.black_list
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov eax, dword [ebx + 0x14]
sub eax, 0
je 0x100b6a5a
sub eax, 1
jne 0x100b6a7e
call fcn.100088b0
mov ecx, eax
test ecx, ecx
je 0x100b6c15
mov eax, dword [ecx]
call dword [eax + 0xc]
lea edi, [eax + 0x10]
mov dword [ebp - 0xc24], edi
mov eax, dword [edi - 8]
mov ecx, 1
sub ecx, dword [edi - 4]
sub eax, 0xa28
or eax, ecx
mov byte [ebp - 4], 5
jge 0x100b69d5
push 0xa28
lea ecx, [ebp - 0xc24]
call fcn.1000b310
mov edi, dword [ebp - 0xc24]
push 0
push 0xa28
lea eax, [ebp - 0xc34]
push eax
push edi
push dword [ebx + 0x24]
call fcn.100b5500
push dword [edi - 8]
push edi
call fcn.100efbd7
add esp, 0x1c
test eax, eax
js 0x100b6bf7
cmp eax, dword [edi - 8]
jg 0x100b6bf7
mov dword [edi - 0xc], eax
xor ecx, ecx
mov word [edi + eax*2], cx
lea eax, [ebp - 0xc20]
push eax
push edi
push dword [ebx + 0x20]
push esi
push dword [ebx + 0x18]
push dword [ebp - 0xc2c]
call fcn.100b6ec0
push eax
lea eax, [ebp - 0xc30]
push eax
call fcn.100086f0
add esp, 0x20
mov byte [ebp - 4], 2
add edi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x100b6a7e
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x100b6a7e
lea eax, [ebp - 0xc20]
push eax
push dword [ebx + 0x20]
push esi
push dword [ebx + 0x18]
push edi
call fcn.100b6cc0
push eax
lea eax, [ebp - 0xc30]
push eax
call fcn.100086f0
add esp, 0x1c
push dword [ebp - 0xc30]
call dword [sym.imp.WININET.dll_DeleteUrlCacheEntryW]
call fcn.100088b0
mov ecx, eax
test ecx, ecx
je 0x100b6c1f
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0xc38], eax
push dword [ebx + 0x10]
lea eax, [ebp - 0xc38]
mov byte [ebp - 4], 6
push 0x1388
push eax
lea eax, [ebp - 0xc30]
push eax
call fcn.1003e710
add esp, 0x10
test eax, eax
je 0x100b6b45
push ecx
mov dword [ebp - 0xc34], esp
mov edi, dword [ebp - 0xc38]
add edi, 0xfffffff0
mov ecx, dword [edi]
mov eax, dword [ecx]
call dword [eax + 0x10]
cmp dword [edi + 0xc], 0
mov ecx, eax
lea eax, [edi + 0xc]
jl 0x100b6af8
cmp ecx, dword [edi]
jne 0x100b6af8
lock inc dword [eax]
jmp 0x100b6b33
mov eax, dword [ecx]
push 1
push dword [edi + 4]
call dword [eax]
mov ecx, eax
mov dword [ebp - 0xc24], ecx
test ecx, ecx
je 0x100b6c29
mov eax, dword [edi + 4]
mov dword [ecx + 4], eax
lea eax, [edi + 0x10]
mov edx, dword [edi + 4]
inc edx
push edx
push eax
push edx
lea eax, [ecx + 0x10]
push eax
call fcn.1000bf10
mov edi, dword [ebp - 0xc24]
add esp, 0x10
mov ecx, dword [ebp - 0xc34]
lea eax, [edi + 0x10]
mov dword [ecx], eax
mov ecx, ebx
call fcn.100b5920
mov edx, dword [ebp - 0xc38]
or ebx, 0xffffffff
mov byte [ebp - 4], 2
add edx, 0xfffffff0
mov eax, ebx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x100b6b69
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0xc2c]
mov eax, ebx
mov byte [ebp - 4], 1
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x100b6b8a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
add esi, 0xfffffff0
mov eax, ebx
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x100b6ba5
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0xc30]
mov dword [ebp - 4], 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x100b6bc7
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
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.100c495f
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.10008520
push 0x80004005
call fcn.10008520
push 0x80070057
call fcn.10008520
push 0x80004005
call fcn.10008520
push 0x80004005
call fcn.10008520
push 0x80004005
call fcn.10008520
push 0x80004005
call fcn.10008520
call fcn.1000baf0
int3