Function at 0x4024d0
Capabilities:
Get common file path
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x51c441
mov eax, dword fs:[0]
push eax
sub esp, 0x440
mov eax, dword [0x565540]
xor eax, esp
mov dword [esp + 0x438], eax
push ebx
push esi
push edi
mov eax, dword [0x565540]
xor eax, esp
push eax
lea eax, [esp + 0x450]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [esp + 0x10], ebx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x20], vtable.nsPIMultipleInstance::CPIMultipleInstance.0
call fcn.00404603
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x402548
push 0x80004005
call fcn.00402130
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x24], eax
push 1
push 0x547744
lea ecx, [esp + 0x2c]
mov dword [esp + 0x460], ebx
call fcn.00401fe0
mov dword [esp + 0x458], 1
call fcn.00402900
mov ecx, 0x56d214
call fcn.00402e80
mov ecx, eax
call fcn.00402f00
lea ecx, [esp + 0x30]
push ecx
lea ecx, [esp + 0x24]
call fcn.00401490
mov byte [esp + 0x458], 2
mov ecx, dword [eax]
mov esi, dword [0x56d214]
lea eax, [ecx - 0x10]
add esi, 0xfffffff0
cmp eax, esi
je 0x402603
cmp dword [esi + 0xc], ebx
lea edi, [esi + 0xc]
jl 0x4025f4
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x4025f4
push eax
call fcn.00402160
mov ebx, eax
add esp, 4
or eax, 0xffffffff
lock xadd dword [edi], eax
dec eax
test eax, eax
jg 0x4025e7
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
add ebx, 0x10
mov dword [0x56d214], ebx
xor ebx, ebx
jmp 0x402603
mov eax, dword [ecx - 0xc]
push eax
push ecx
mov ecx, 0x56d214
call fcn.00401fe0
mov byte [esp + 0x458], 1
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
or edi, 0xffffffff
lea ecx, [eax + 0xc]
mov edx, edi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40262d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, 0x208
push esi
lea ecx, [esp + 0x240]
push ebx
push ecx
mov dword [esp + 0x24], esi
mov dword [esp + 0x20], esi
call fcn.004f95d0
add esp, 0xc
push esi
lea edx, [esp + 0x38]
push ebx
push edx
call fcn.004f95d0
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
add esp, 0xc
lea eax, [esp + 0x10]
push eax
push 0x20219
push ebx
push 0x547770
push reloc.OLEAUT32.dll_SysReAllocString
call esi
test eax, eax
jne 0x402770
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea ecx, [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x38]
push edx
lea eax, [esp + 0x34]
push eax
push ebx
push str.InstallPath
push ecx
call esi
lea edx, [esp + 0x14]
push edx
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x240]
push eax
lea ecx, [esp + 0x30]
push ecx
push ebx
push str.DataPath
push edx
call esi
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x34]
push ecx
mov edx, SysReAllocString
mov eax, 0x104
mov ecx, 0x56d218
call fcn.00402350
lea edx, [esp + 0x23c]
push edx
mov edx, SysReAllocString
mov eax, 0x104
mov ecx, 0x56d420
call fcn.00402350
mov eax, 0x56d218
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x402710
sub eax, edx
sar eax, 1
je 0x402745
mov eax, 0x56d420
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x402730
sub eax, edx
sar eax, 1
jne 0x4028a2
mov dword [esp + 0x458], edi
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edi
dec edi
test edi, edi
jg 0x402769
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
jmp 0x4028d2
lea ecx, [esp + 0x10]
push ecx
push 0x20219
push ebx
push str.SOFTWAREWow6432NodeSOMANSAPrivacy_i_4.0Directory
push reloc.OLEAUT32.dll_SysReAllocString
call esi
test eax, eax
jne 0x402850
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea edx, [esp + 0x18]
push edx
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x38]
push eax
lea ecx, [esp + 0x34]
push ecx
push ebx
push str.InstallPath
push edx
call esi
lea eax, [esp + 0x14]
push eax
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x240]
push ecx
lea edx, [esp + 0x30]
push edx
push ebx
push str.DataPath
push eax
call esi
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea edx, [esp + 0x34]
push edx
mov edx, SysReAllocString
mov eax, 0x104
mov ecx, 0x56d218
call fcn.00402350
lea eax, [esp + 0x23c]
push eax
mov edx, SysReAllocString
mov eax, 0x104
mov ecx, 0x56d420
call fcn.00402350
mov eax, 0x56d218
lea edx, [eax + 2]
jmp 0x402820
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x402820
sub eax, edx
sar eax, 1
je 0x402745
mov eax, 0x56d420
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x402840
jmp 0x40273b
mov edi, dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
push 0x56d420
push ebx
push ebx
push 0x23
push ebx
call edi
test eax, eax
jne 0x402875
push str.SomansaPrivacy_i
mov esi, 0x56d420
call fcn.004022a0
call fcn.00402a70
push 0x56d218
push ebx
push ebx
cmp eax, 1
jne 0x40288a
push 0x2a
jmp 0x40288c
push 0x26
push ebx
call edi
cmp eax, ebx
jne 0x4028a2
push str.Privacy_i
mov esi, 0x56d218
call fcn.004022a0
mov dword [esp + 0x458], 0xffffffff
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4028cd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [esp + 0x450]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x438]
xor ecx, esp
call fcn.004f7029
mov esp, ebp
pop ebp
ret