Function at 0x41d9a0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x504b31
mov eax, dword fs:[0]
push eax
sub esp, 0x218
mov eax, dword [0x54a730]
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 esi, ecx
lea ecx, [esi + 0x44]
call fcn.00413ac0
mov ecx, dword [ebp + 0xc]
test eax, eax
je 0x41db2b
test ecx, ecx
je 0x41db2b
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.004da4f0
add esp, 0xc
lea eax, [ebp - 0x218]
push dword [esi + 0x38]
push 0x103
push eax
push 0x50ef34
push 0x50f8a0
push str.ADBlockMasterSetup_officialwebsite.exe
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x21c]
call fcn.0040d8c0
lea eax, [ebp - 0x21c]
mov dword [ebp - 4], 0
push eax
lea ecx, [esi + 0x44]
call fcn.0041c6e0
mov edx, dword [ebp - 0x21c]
or edi, 0xffffffff
mov dword [ebp - 4], 0xffffffff
add edx, 0xfffffff0
mov eax, edi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x41da74
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [esi + 0x44]
call fcn.00418200
mov eax, dword [eax]
cmp dword [eax - 0xc], 0
jne 0x41db15
push str.update_
lea eax, [esi + 0x34]
mov dword [ebp - 0x21c], 0
push eax
lea eax, [ebp - 0x21c]
push eax
call fcn.0040dfa0
push str.ADBlockMasterSetup_officialwebsite.exe
lea eax, [ebp - 0x21c]
mov dword [ebp - 4], 1
push eax
lea eax, [ebp - 0x224]
push eax
call fcn.0040dfa0
add esp, 0x18
push eax
lea ecx, [esi + 0x44]
mov byte [ebp - 4], 2
call fcn.0041c6d0
mov edx, dword [ebp - 0x224]
mov eax, edi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x41daf3
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [ebp - 0x21c]
mov dword [ebp - 4], 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], edi
dec edi
test edi, edi
jg 0x41db15
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [esi + 0x44]
call fcn.0041c3a0
mov ecx, dword [ebp + 0xc]
test eax, eax
je 0x41db2b
mov dword [esi + 0x28], 3
mov eax, dword [esi + 0x28]
cmp eax, 2
je 0x41dc2e
cmp eax, 3
je 0x41dc2e
test ecx, ecx
je 0x41db55
mov dword [esi + 0x28], 2
mov edi, 2
jmp 0x41dc30
cmp byte [esi + 0x24], 0
je 0x41dc27
mov ecx, dword [0x550818]
test ecx, ecx
jne 0x41dc06
push 0x54a200
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [0x550818], 0
jne 0x41dbf5
push 0x54
call fcn.00499e54
mov edi, eax
add esp, 4
mov dword [ebp - 0x224], edi
test edi, edi
je 0x41dbe2
push 0x54
push 0
push edi
call fcn.004da4f0
mov dword [edi], vtable.StatsUtils::Stats.0
xor eax, eax
mov dword [edi + 0x14], 0
add esp, 0xc
mov dword [edi + 0x18], 7
mov word [edi + 4], ax
mov dword [edi + 0x2c], eax
mov dword [edi + 0x30], 7
mov word [edi + 0x1c], ax
mov dword [edi + 0x34], eax
lea eax, [edi + 0x3c]
push eax
mov dword [edi + 0x38], vtable._BaseModule::CCriticalSection.0
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
jmp 0x41dbe4
xor edi, edi
xor ecx, ecx
lea eax, [ebp - 0x220]
lock or dword [eax], ecx
mov dword [0x550818], edi
push 0x54a200
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [0x550818]
sub esp, 0x28
mov eax, esp
push 0
push str.update
push 1
push 0
push str.down_fail
mov dword [eax + 0x24], 0
call fcn.004235c0
mov edi, 1
jmp 0x41dc30
xor edi, edi
lea ecx, [esi + 0x44]
call fcn.00413ac0
test eax, eax
je 0x41dc66
mov eax, dword [esi + 0x28]
lea ecx, [esi + 0x44]
mov dword [ebp - 0x224], eax
call fcn.00418200
mov ecx, dword [esi + 0x20]
test ecx, ecx
je 0x41dc7a
push dword [esi + 0x2c]
push edi
push 0x64
push dword [ebp - 0x224]
push dword [eax]
call ecx
jmp 0x41dc7a
mov eax, dword [esi + 0x20]
test eax, eax
je 0x41dc7a
push dword [esi + 0x2c]
push edi
push 0x64
push dword [esi + 0x28]
push 0
call eax
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.00499e20
mov esp, ebp
pop ebp
ret 0xc