Function at 0x5d3170
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d4b0d
mov eax, dword fs:[0]
push eax
sub esp, 0x244
mov eax, dword [0x5e12a4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea ecx, [ebp - 0x22c]
call fcn.00406ca0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x228]
call fcn.00406ca0
mov byte [ebp - 4], 1
push 0xfa
lea ecx, [ebp - 0x228]
call fcn.00406ce0
mov eax, dword [ebp - 0x228]
push eax
push 0x5dabb0
lea ecx, [ebp - 0x22c]
push ecx
call fcn.0040c040
add esp, 0xc
mov dword [ebp - 0x234], 0
push 0x104
lea edx, [ebp - 0x21c]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea ecx, [ebp - 0x230]
call fcn.00406ca0
mov byte [ebp - 4], 2
lea eax, [ebp - 0x21c]
push eax
push str.__s_____1_
lea ecx, [ebp - 0x230]
push ecx
call fcn.0040c040
add esp, 0xc
mov dword [ebp - 0x238], 0
lea edx, [ebp - 0x238]
push edx
lea eax, [ebp - 0x220]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
lea ecx, [ebp - 0x22c]
call fcn.00406bd0
push eax
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov dword [ebp - 0x234], eax
cmp dword [ebp - 0x234], 0
jne 0x5d33d2
push 0x104
lea ecx, [ebp - 0x228]
call fcn.00406bd0
push eax
push 1
push 0
push 0
mov ecx, dword [ebp - 0x220]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [ebp - 0x234], eax
cmp dword [ebp - 0x234], 0
je 0x5d332d
cmp dword [ebp + 0xc], 0
je 0x5d32e8
push 0
push 0x10
push 0xe3
push 0xdd
mov edx, dword [ebp + 8]
push edx
call fcn.0043e460
add esp, 0x14
cmp dword [ebp + 8], 0
je 0x5d32e8
push 0
push 0x3f3
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_CheckDlgButton]
mov dword [ebp - 0x23c], 0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x230]
call fcn.00406cc0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x228]
call fcn.00406cc0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x22c]
call fcn.00406cc0
mov eax, dword [ebp - 0x23c]
jmp 0x5d3668
push 0x104
lea ecx, [ebp - 0x21c]
push ecx
push 2
push 0
push str.Icon
mov edx, dword [ebp - 0x220]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [ebp - 0x234], eax
mov eax, dword [ebp - 0x220]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x234], 0
je 0x5d33d0
cmp dword [ebp + 0xc], 0
je 0x5d338b
push 0
push 0x10
push 0xe3
push 0xde
mov ecx, dword [ebp + 8]
push ecx
call fcn.0043e460
add esp, 0x14
mov dword [ebp - 0x240], 0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x230]
call fcn.00406cc0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x228]
call fcn.00406cc0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x22c]
call fcn.00406cc0
mov eax, dword [ebp - 0x240]
jmp 0x5d3668
jmp 0x5d344e
cmp dword [ebp + 0xc], 0
je 0x5d3409
push 0
push 0x10
push 0xe3
push 0xdc
mov edx, dword [ebp + 8]
push edx
call fcn.0043e460
add esp, 0x14
cmp dword [ebp + 8], 0
je 0x5d3409
push 0
push 0x3f3
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_CheckDlgButton]
mov dword [ebp - 0x244], 0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x230]
call fcn.00406cc0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x228]
call fcn.00406cc0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x22c]
call fcn.00406cc0
mov eax, dword [ebp - 0x244]
jmp 0x5d3668
lea ecx, [ebp - 0x224]
call fcn.00406ca0
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x228]
push ecx
push str._shell_scommand
lea edx, [ebp - 0x224]
push edx
call fcn.0040c040
add esp, 0xc
lea eax, [ebp - 0x238]
push eax
lea ecx, [ebp - 0x220]
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
lea ecx, [ebp - 0x224]
call fcn.00406bd0
push eax
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov dword [ebp - 0x234], eax
cmp dword [ebp - 0x234], 0
jne 0x5d3591
push 0x104
lea ecx, [ebp - 0x230]
call fcn.00406bd0
push eax
push 1
push 0
push 0
mov edx, dword [ebp - 0x220]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [ebp - 0x234], eax
mov eax, dword [ebp - 0x220]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x234], 0
je 0x5d358c
cmp dword [ebp + 0xc], 0
je 0x5d3538
push 0
push 0x10
push 0xe3
push 0xe2
mov ecx, dword [ebp + 8]
push ecx
call fcn.0043e460
add esp, 0x14
cmp dword [ebp + 8], 0
je 0x5d3538
push 0
push 0x3f3
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.USER32.dll_CheckDlgButton]
mov dword [ebp - 0x248], 0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x224]
call fcn.00406cc0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x230]
call fcn.00406cc0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x228]
call fcn.00406cc0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x22c]
call fcn.00406cc0
mov eax, dword [ebp - 0x248]
jmp 0x5d3668
jmp 0x5d3619
cmp dword [ebp + 0xc], 0
je 0x5d35c8
push 0
push 0x10
push 0xe3
push 0xdc
mov eax, dword [ebp + 8]
push eax
call fcn.0043e460
add esp, 0x14
cmp dword [ebp + 8], 0
je 0x5d35c8
push 0
push 0x3f3
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.USER32.dll_CheckDlgButton]
mov dword [ebp - 0x24c], 0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x224]
call fcn.00406cc0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x230]
call fcn.00406cc0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x228]
call fcn.00406cc0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x22c]
call fcn.00406cc0
mov eax, dword [ebp - 0x24c]
jmp 0x5d3668
mov dword [ebp - 0x250], 1
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x224]
call fcn.00406cc0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x230]
call fcn.00406cc0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x228]
call fcn.00406cc0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x22c]
call fcn.00406cc0
mov eax, dword [ebp - 0x250]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0040f6b8
mov esp, ebp
pop ebp
ret