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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
push ebx
push esi
push edi
xor edi, edi
xor esi, esi
inc dword [0x40da04]
mov eax, dword [0x40da04]
mov dword [ebp - 0xc], edi
cmp eax, dword [0x40da2c]
mov dword [ebp - 0x14], edi
jae 0x402dcd
mov esi, dword [0x40da00]
push esi
call fcn.00401d69
mov dword [0x40da00], eax
mov word [esi + 4], di
mov eax, dword [0x40da40]
push esi
xor dword [esi + 0xe], eax
mov eax, dword [0x40d9ec]
and byte [eax], 0
call fcn.00402585
push dword [0x40d9f0]
mov dword [ebp - 4], eax
call fcn.00405bb0
add esp, 0xc
test byte [esi + 0xd], 1
je 0x4029b8
push dword [0x40d9f0]
push dword [0x40d9e4]
call fcn.00407ab0
pop ecx
pop ecx
mov eax, dword [0x40da04]
xor edx, edx
inc eax
imul eax, eax, 0x64
div dword [0x40da2c]
cmp byte [esi + 0xb], 2
mov dword [ebp - 0x18], eax
je 0x402d1a
cmp dword [ebp - 4], edi
push 1
pop ebx
je 0x402a2c
cmp byte [esi + 8], 3
jne 0x4029e8
xor ebx, ebx
jmp 0x402a3b
push edi
mov dword [ebp - 0x10], edi
push dword [0x40d9f0]
call section..text
mov edi, eax
pop ecx
cmp edi, 0xffffffff
pop ecx
je 0x402a24
push edi
call fcn.0040114d
cmp eax, dword [esi + 0x12]
pop ecx
jne 0x402a1d
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
push edi
call fcn.004039ed
add esp, 0xc
push edi
call fcn.0040121f
pop ecx
mov eax, dword [ebp - 0x10]
cmp eax, dword [esi + 0xe]
je 0x4029e4
test byte [esi + 0xd], 6
je 0x402a3b
push esi
call fcn.004027ca
pop ecx
mov ebx, eax
xor edi, edi
lea ecx, [ebp - 0x198]
mov dword [0x40da34], edi
call fcn.004073d3
cmp ebx, edi
je 0x402bef
push dword [0x40d9f0]
call fcn.00405ef2
push dword [0x40d9f0]
push dword [0x40d9ec]
call fcn.00407ab0
push str..__A
push dword [0x40d9ec]
call fcn.00405c8b
push edi
push dword [0x40d9ec]
call section..text
add esp, 0x1c
or ebx, 0xffffffff
cmp eax, ebx
je 0x402ac8
push eax
call fcn.0040121f
push dword [0x40d9ec]
call fcn.00407a30
mov ecx, dword [0x40d9ec]
inc byte [eax + ecx - 1]
push edi
push dword [0x40d9ec]
lea eax, [eax + ecx - 1]
call section..text
add esp, 0x10
jmp 0x402a94
push dword [0x40d9ec]
call fcn.0040104d
mov edi, eax
pop ecx
cmp edi, ebx
jne 0x402b00
push dword [0x40d9ec]
mov dword [0x40da34], 0x11
call fcn.00401ee7
pop ecx
lea ecx, [ebp - 0x198]
call fcn.004073df
jmp 0x402dc7
push dword [esi + 0x16]
lea ecx, [ebp - 0x198]
push dword [0x40d058]
push edi
call fcn.0040745c
mov al, byte [esi + 0xd]
test al, 8
je 0x402b36
test al, 6
lea eax, [esi + 0x2e]
jne 0x402b26
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
test byte [esi + 0xd], 1
pop ecx
jne 0x402b95
push 0
push dword [0x40d9ec]
call section..text
mov edi, eax
pop ecx
cmp edi, ebx
pop ecx
jne 0x402b6a
push dword [0x40d9ec]
mov dword [0x40da34], 0x10
jmp 0x402bd9
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 8]
push eax
push edi
call fcn.004039ed
push edi
call fcn.0040121f
mov eax, dword [ebp - 8]
add esp, 0x10
cmp eax, dword [esi + 0xe]
je 0x402b95
mov dword [0x40da34], 0x15
jmp 0x402bd3
cmp dword [ebp - 4], 0
push dword [0x40d9ec]
je 0x402bba
push dword [0x40d9f0]
call fcn.004040d2
pop ecx
mov dword [0x40da18], 1
pop ecx
jmp 0x402bc2
push esi
call fcn.00402e02
pop ecx
pop ecx
cmp word [esi + 4], 0x1b
jne 0x402c05
mov dword [0x40da34], 0x16
push dword [0x40d9f0]
call fcn.00401ee7
pop ecx
lea ecx, [ebp - 0x198]
call fcn.004073df
jmp 0x402dcd
push dword [esi + 0x16]
lea ecx, [ebp - 0x198]
push dword [0x40d058]
push 0xffffffffffffffff
call fcn.0040745c
lea ecx, [ebp - 0x198]
call fcn.004073df
xor ebx, ebx
cmp dword [0x40da34], ebx
jne 0x402dcd
test byte [esi + 0xd], 1
je 0x402c28
mov word [esi + 4], bx
cmp byte [esi + 8], 0
je 0x402cb7
cmp byte [esi + 0xa], 1
jne 0x402cb7
lea eax, [ebp - 0xc]
push eax
push 0xf003f
push ebx
push str.SoftwareMicrosoftWindowsCurrentVersionSharedDLLs
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x402cb7
push 1
pop edi
push 4
mov dword [ebp - 4], edi
pop eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x10]
push eax
push ebx
push dword [0x40d9f0]
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x402c8a
inc dword [ebp - 4]
jmp 0x402c94
mov dword [ebp - 4], edi
mov dword [ebp - 0x10], 4
push dword [ebp - 8]
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x10]
push ebx
push dword [0x40d9f0]
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp byte [esi + 8], 3
jne 0x402cdc
push dword [0x40d9f0]
call dword [sym.imp.GDI32.dll_AddFontResourceA]
test eax, eax
je 0x402cdc
push ebx
push ebx
push 0x1d
push pe_overlay
call dword [sym.imp.USER32.dll_SendMessageA]
cmp byte [esi + 0xc], 1
jne 0x402ce8
mov dword [0x40da0c], esi
cmp byte [esi + 0xc], 2
jne 0x402d1a
push dword [0x40d9f0]
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, 0x20
jb 0x402d1a
push str.DllRegisterServer
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x402d13
call eax
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp byte [esi + 9], 1
jne 0x402d26
mov dword [0x40da14], esi
cmp byte [esi + 9], 2
jne 0x402d32
mov dword [0x40da10], esi
push 4
push esi
call fcn.00402550
mov edi, eax
pop ecx
pop ecx
cmp byte [edi], 0
je 0x402db7
push 5
push esi
call fcn.00402550
pop ecx
mov ebx, eax
pop ecx
lea eax, [ebp - 8]
push eax
push 0
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
jne 0x402db7
lea eax, [ebp - 0x220]
push eax
push dword [ebp - 8]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListA]
test eax, eax
je 0x402db7
lea eax, [ebp - 0x220]
push eax
call fcn.00405cca
lea eax, [ebp - 0x220]
push edi
push eax
call fcn.00407ac0
lea eax, [ebp - 0x220]
push str..lnk
push eax
call fcn.00407ac0
push 0
lea eax, [ebp - 0x220]
push ebx
push eax
push dword [0x40d9f0]
call fcn.0040162b
add esp, 0x24
push dword [ebp - 0x18]
call fcn.00405b8f
pop ecx
mov dword [ebp - 0xc], 1
cmp dword [ebp - 0xc], 0
jne 0x402dde
mov eax, dword [0x40d9ec]
cmp byte [eax], 0
je 0x402dde
push eax
call fcn.00407eac
pop ecx
test esi, esi
je 0x402dea
mov eax, dword [0x40da40]
xor dword [esi + 0xe], eax
cmp dword [ebp - 0x14], 0
pop edi
pop esi
pop ebx
je 0x402dfd
lea eax, [ebp - 0x14]
push eax
call fcn.00405d7d
pop ecx
mov eax, dword [ebp - 0xc]
leave
ret