Function at 0x41a800
Capabilities:
Query or enumerate registry value
Read .ini file
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x4deac2
mov eax, dword fs:[0]
push eax
sub esp, 0x13c
mov eax, dword [0x504f68]
xor eax, esp
mov dword [esp + 0x138], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x504f68]
xor eax, esp
push eax
lea eax, [esp + 0x150]
mov dword fs:[0], eax
mov ebp, ecx
mov eax, dword [ebp + 0x30]
lea esi, [ebp + 0x30]
sub eax, 0x10
mov ecx, 1
sub ecx, dword [eax + 0xc]
mov eax, dword [eax + 8]
sub eax, 0x40
or eax, ecx
jge 0x41a864
mov ecx, 0x40
mov eax, esi
call fcn.00408a80
mov ecx, dword [esi]
call fcn.0040f5c0
mov eax, dword [esi]
mov ecx, dword [eax - 8]
test eax, eax
je 0x41a886
push ecx
push eax
call fcn.004b8fc1
add esp, 8
test eax, eax
jl 0x41abec
mov ecx, dword [esi]
cmp eax, dword [ecx - 8]
jg 0x41abec
mov dword [ecx - 0xc], eax
mov ecx, dword [esi]
xor edx, edx
mov word [ecx + eax*2], dx
mov eax, dword [ebp]
mov edx, dword [eax + 0x84]
mov ecx, ebp
call edx
mov esi, dword [ebp]
mov eax, dword [esi + 0x44]
mov ecx, ebp
call eax
mov edx, dword [esi + 0x80]
push eax
mov ecx, ebp
call edx
test al, al
jne 0x41a8ec
mov ecx, dword [esp + 0x150]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x138]
xor ecx, esp
call fcn.004b3721
add esp, 0x148
ret 4
mov ecx, dword [ebp + 0x28]
lea eax, [esp + 0x20]
push eax
call fcn.0040e520
mov dword [esp + 0x158], 0
mov edx, dword [ebp]
mov eax, dword [edx + 0xb0]
mov ecx, ebp
call eax
mov edx, dword [ebp]
mov esi, eax
mov eax, dword [edx + 0xa8]
mov ecx, ebp
call eax
lea ecx, [esp + 0x20]
push ecx
mov edx, esi
mov ecx, eax
lea esi, [esp + 0x18]
call fcn.0040e6d0
lea edi, [ebp + 0xc]
mov byte [esp + 0x158], 1
call fcn.0040a150
mov byte [esp + 0x158], 0
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x41a96a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [ebp]
mov eax, dword [edx + 0xb4]
mov ecx, ebp
call eax
mov edx, dword [ebp]
mov esi, eax
mov eax, dword [edx + 0xa8]
mov ecx, ebp
call eax
mov ecx, dword [esp + 0x80]
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
push ecx
push 0
push esi
push eax
call ebx
test eax, eax
mov eax, dword [ebp]
setg dl
mov byte [ebp + 0x38], dl
mov edx, dword [eax + 0xb8]
mov ecx, ebp
call edx
mov esi, eax
mov eax, dword [ebp]
mov edx, dword [eax + 0xa8]
mov ecx, ebp
call edx
lea ecx, [esp + 0x20]
push ecx
mov edx, esi
mov ecx, eax
lea esi, [esp + 0x18]
call fcn.0040e6d0
lea edi, [ebp + 0x34]
mov byte [esp + 0x158], 2
call fcn.0040a150
mov byte [esp + 0x158], 0
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x41aa08
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp byte [esp + 0x160], 0
je 0x41aa72
mov edx, dword [ebp]
mov eax, dword [edx + 0xbc]
mov ecx, ebp
call eax
mov edx, dword [ebp]
mov esi, eax
mov eax, dword [edx + 0xa8]
mov ecx, ebp
call eax
mov ecx, dword [esp + 0x80]
push ecx
push 0
push esi
push eax
call ebx
mov edx, dword [ebp]
mov dword [ebp + 0x3c], eax
inc eax
push eax
mov eax, dword [edx + 0xbc]
mov ecx, ebp
call eax
mov edx, dword [ebp]
push eax
mov eax, dword [edx + 0xa8]
mov ecx, ebp
call eax
push eax
lea ecx, [esp + 0x2c]
push ecx
call fcn.0040e740
test eax, eax
jne 0x41aa72
mov dword [ebp + 0x3c], 0xffffffff
lea edx, [esp + 0x14]
push edx
call fcn.00484a10
add esp, 4
lea ebx, [ebp + 0x10]
mov edi, ebx
mov byte [esp + 0x158], 3
call fcn.0040a150
mov byte [esp + 0x158], 0
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41aab9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor ecx, ecx
push 0xc6
push ecx
lea edx, [esp + 0x8e]
push edx
mov dword [esp + 0x24], 0x64
mov word [esp + 0x90], cx
call fcn.004b4970
add esp, 0xc
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x88]
push ecx
lea edx, [esp + 0x24]
push edx
push 0x4ed9d8
push str.SoftwareMicrosoft
push SysReAllocStringLen
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x41ab1b
lea edi, [ebp + 0x14]
lea edx, [esp + 0x84]
call fcn.00408720
mov eax, dword [ebp + 0x14]
cmp dword [eax - 0xc], 0
lea edi, [ebp + 0x14]
jne 0x41abcb
lea ecx, [esp + 0x14]
call fcn.00484c80
mov byte [esp + 0x158], 4
call fcn.0040a150
mov byte [esp + 0x158], 0
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41ab69
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [edi]
mov ecx, dword [eax - 0xc]
add ecx, ecx
push ecx
push eax
push 1
push 0x4ed9d8
push str.SoftwareMicrosoft
push SysReAllocStringLen
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
test eax, eax
je 0x41abcb
lea esi, [esp + 0x14]
call fcn.00484bf0
mov byte [esp + 0x158], 5
call fcn.0040a150
mov byte [esp + 0x158], 0
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x41abcb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebx]
cmp dword [ecx - 0xc], 0
jne 0x41abdc
mov eax, edi
mov edi, ebx
call fcn.0040a150
lea esi, [esp + 0x20]
call fcn.0040e5e0
mov al, 1
jmp 0x41a8c2
push 0x80070057
call fcn.00403da0
int3