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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x224
mov eax, dword [0x411ac0]
or dword [ebp - 0x14], 0xffffffff
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 0x18], edi
and byte [eax], 0
xor esi, esi
inc dword [0x411ae0]
mov eax, dword [0x411ae0]
mov dword [ebp - 8], edi
cmp eax, dword [0x411b08]
jae 0x402eaf
mov esi, dword [0x411adc]
push esi
call fcn.0040199b
mov dword [0x411adc], eax
mov word [esi + 4], di
mov eax, dword [0x411b1c]
push esi
xor dword [esi + 0xe], eax
call fcn.004026eb
push dword [0x411ac4]
mov dword [ebp - 4], eax
call fcn.00406185
add esp, 0xc
test byte [esi + 0xd], 1
je 0x402a9f
push dword [0x411ac4]
push dword [0x411ab8]
call fcn.00408100
pop ecx
pop ecx
mov eax, dword [0x411ae0]
xor edx, edx
inc eax
imul eax, eax, 0x64
div dword [0x411b08]
cmp byte [esi + 0xb], 2
mov dword [ebp - 0x1c], eax
je 0x402ded
cmp dword [ebp - 4], edi
push 1
pop ebx
je 0x402b13
cmp byte [esi + 8], 3
jne 0x402acf
xor ebx, ebx
jmp 0x402b22
push edi
mov dword [ebp - 0x10], edi
push dword [0x411ac4]
call section..text
mov edi, eax
pop ecx
cmp edi, 0xffffffff
pop ecx
je 0x402b0b
push edi
call fcn.0040114d
cmp eax, dword [esi + 0x12]
pop ecx
jne 0x402b04
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
push edi
call fcn.00403e1e
add esp, 0xc
push edi
call fcn.0040121f
pop ecx
mov eax, dword [ebp - 0x10]
cmp eax, dword [esi + 0xe]
je 0x402acb
test byte [esi + 0xd], 6
je 0x402b22
push esi
call fcn.004028c9
pop ecx
mov ebx, eax
xor edi, edi
lea ecx, [ebp - 0x19c]
mov dword [0x411b10], edi
call fcn.004079aa
cmp ebx, edi
je 0x402cf7
push dword [0x411ac4]
call fcn.004064c8
push dword [0x411ac4]
push dword [0x411ac0]
call fcn.00408100
push str..__A
push dword [0x411ac0]
call fcn.00406260
push edi
push dword [0x411ac0]
call section..text
add esp, 0x1c
cmp eax, 0xffffffff
je 0x402bad
push eax
call fcn.0040121f
push dword [0x411ac0]
call fcn.00408080
mov ecx, dword [0x411ac0]
inc byte [eax + ecx - 1]
push edi
push dword [0x411ac0]
lea eax, [eax + ecx - 1]
call section..text
add esp, 0x10
jmp 0x402b78
push dword [0x411ac0]
call fcn.0040104d
mov edi, eax
pop ecx
cmp edi, 0xffffffff
mov dword [ebp - 0x14], edi
jne 0x402bdb
push dword [0x411ac0]
mov dword [0x411b10], 0x11
call fcn.00401ee4
pop ecx
jmp 0x402bf9
push dword [esi + 0x16]
lea ecx, [ebp - 0x19c]
push dword [0x40f058]
push edi
call fcn.00407a69
cmp dword [0x411b90], 2
jne 0x402c09
lea ecx, [ebp - 0x19c]
call fcn.004079ba
jmp 0x402e9a
mov al, byte [esi + 0xd]
test al, 8
je 0x402c2a
test al, 6
lea eax, [esi + 0x2e]
jne 0x402c1a
lea eax, [esi + 0x1a]
lea ecx, [eax + 0x10]
push ecx
lea ecx, [eax + 8]
push ecx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push edi
call fcn.0040121f
or dword [ebp - 0x14], 0xffffffff
pop ecx
test byte [esi + 0xd], 1
jne 0x402c97
cmp dword [0x411ad0], 0
jne 0x402c97
push 0
push dword [0x411ac0]
call section..text
mov edi, eax
pop ecx
cmp edi, 0xffffffff
pop ecx
jne 0x402c6c
push dword [0x411ac0]
mov dword [0x411b10], 0x10
jmp 0x402ce1
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
push edi
call fcn.00403e1e
push edi
call fcn.0040121f
mov eax, dword [ebp - 0xc]
add esp, 0x10
cmp eax, dword [esi + 0xe]
je 0x402c97
mov dword [0x411b10], 0x15
jmp 0x402cdb
cmp dword [ebp - 4], 0
push dword [0x411ac0]
je 0x402cc2
push dword [0x411ac4]
call fcn.00404513
pop ecx
mov dword [0x411af4], 1
pop ecx
mov word [esi + 4], 0x1f4
jmp 0x402cca
push esi
call fcn.00402ee4
pop ecx
pop ecx
cmp word [esi + 4], 0x1b
jne 0x402d16
mov dword [0x411b10], 0x16
push dword [0x411ac4]
call fcn.00401ee4
pop ecx
lea ecx, [ebp - 0x19c]
call fcn.004079ba
jmp 0x402eaf
push dword [esi + 0x16]
lea ecx, [ebp - 0x19c]
push dword [0x40f058]
push 0xffffffffffffffff
call fcn.00407a69
cmp dword [0x411b90], 2
je 0x402ce7
lea ecx, [ebp - 0x19c]
call fcn.004079ba
xor ebx, ebx
cmp dword [0x411b10], ebx
jne 0x402eaf
mov eax, dword [0x411ac0]
and byte [eax], bl
test byte [esi + 0xd], 1
je 0x402d40
mov word [esi + 4], bx
cmp byte [esi + 8], 0
je 0x402dcf
cmp byte [esi + 0xa], 1
jne 0x402dcf
lea eax, [ebp - 8]
push eax
push 0xf003f
push ebx
push str.SoftwareMicrosoftWindowsCurrentVersionSharedDLLs
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x402dcf
push 1
pop edi
push 4
mov dword [ebp - 4], edi
pop eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x10]
push eax
push ebx
push dword [0x411ac4]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x402da2
inc dword [ebp - 4]
jmp 0x402dac
mov dword [ebp - 4], edi
mov dword [ebp - 0x10], 4
push dword [ebp - 0xc]
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x10]
push ebx
push dword [0x411ac4]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp byte [esi + 8], 3
jne 0x402de1
push dword [0x411ac4]
call fcn.004030e4
pop ecx
cmp byte [esi + 0xc], 1
jne 0x402ded
mov dword [0x411ae8], esi
cmp byte [esi + 9], 1
jne 0x402df9
mov dword [0x411af0], esi
cmp byte [esi + 9], 2
jne 0x402e05
mov dword [0x411aec], esi
push 4
push esi
call fcn.004026b6
mov edi, eax
pop ecx
pop ecx
cmp byte [edi], 0
je 0x402e8a
push 5
push esi
call fcn.004026b6
pop ecx
mov ebx, eax
pop ecx
lea eax, [ebp - 0xc]
push eax
push 0
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jne 0x402e8a
lea eax, [ebp - 0x224]
push eax
push dword [ebp - 0xc]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
test eax, eax
je 0x402e8a
lea eax, [ebp - 0x224]
push eax
call fcn.0040629f
lea eax, [ebp - 0x224]
push edi
push eax
call fcn.00408110
lea eax, [ebp - 0x224]
push str..lnk
push eax
call fcn.00408110
push 0
lea eax, [ebp - 0x224]
push ebx
push eax
push dword [0x411ac4]
call fcn.0040162b
add esp, 0x24
push dword [ebp - 0x1c]
call fcn.00406164
pop ecx
mov dword [ebp - 8], 1
cmp dword [ebp - 0x14], 0xffffffff
je 0x402ea9
push dword [ebp - 0x14]
call fcn.0040121f
pop ecx
cmp dword [ebp - 8], 0
jne 0x402ec0
mov eax, dword [0x411ac0]
cmp byte [eax], 0
je 0x402ec0
push eax
call fcn.0040865f
pop ecx
test esi, esi
je 0x402ecc
mov eax, dword [0x411b1c]
xor dword [esi + 0xe], eax
cmp dword [ebp - 0x18], 0
pop edi
pop esi
pop ebx
je 0x402edf
lea eax, [ebp - 0x18]
push eax
call fcn.00406352
pop ecx
mov eax, dword [ebp - 8]
leave
ret