Function at 0x405123
Capabilities:
Delete registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x225c
call fcn.004106d0
mov eax, dword [0x411074]
xor eax, esp
mov dword [esp + 0x2258], eax
push ebx
mov eax, ecx
mov ecx, dword [ebp + 0xc]
push esi
mov dword [esp + 0x10], ecx
xor ecx, ecx
push edi
mov edi, dword [ebp + 8]
mov ebx, ecx
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], ecx
mov ecx, eax
push edi
mov dword [esp + 0x14], eax
mov dword [esp + 0x24], ebx
call fcn.00404fc9
mov esi, eax
test esi, esi
js 0x4056b8
jmp 0x405675
push 0x401eb8
push edi
mov dword [esp + 0x20], 1
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
neg eax
push 0x401e8c
sbb esi, esi
inc esi
push edi
mov dword [esp + 0x14], esi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x4051b6
test esi, esi
je 0x405238
mov ecx, dword [esp + 0x10]
push edi
call fcn.00404fc9
mov esi, eax
test esi, esi
js 0x4056ad
xor esi, esi
cmp dword [ebp + 0x10], esi
je 0x40523a
push 0x5c
pop edx
mov ecx, edi
mov dword [esp + 0x30], esi
mov dword [esp + 0x34], esi
mov dword [esp + 0x38], esi
call fcn.00404844
test eax, eax
jne 0x4056a8
push edi
call fcn.00404d87
test eax, eax
je 0x40520f
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x30]
push edi
mov dword [esp + 0x34], eax
call fcn.00404db8
mov dword [esp + 0x30], esi
cmp dword [esp + 0xc], esi
je 0x40523a
mov ecx, dword [esp + 0x10]
push edi
call fcn.00404fc9
mov esi, eax
test esi, esi
js 0x4056ad
mov ecx, dword [esp + 0x10]
push edi
call fcn.00404d20
jmp 0x405463
xor esi, esi
push 0x401ea4
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x405262
mov ecx, dword [esp + 0x10]
push edi
mov dword [esp + 0x1c], esi
call fcn.00404fc9
mov esi, eax
test esi, esi
js 0x4056ad
push 0x401e84
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x405366
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x260]
push eax
call fcn.00404fc9
mov esi, eax
test esi, esi
js 0x4056ad
mov ecx, dword [esp + 0x10]
push edi
call fcn.00404fc9
mov esi, eax
test esi, esi
js 0x4056ad
push 0x3d
pop eax
cmp word [edi], ax
jne 0x4056a8
cmp dword [ebp + 0x10], 0
je 0x4052ed
mov ecx, dword [esp + 0x10]
xor eax, eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x3c], eax
lea eax, [esp + 0x260]
push edi
push eax
lea eax, [esp + 0x44]
push eax
call fcn.00404901
mov esi, eax
xor eax, eax
mov dword [esp + 0x3c], eax
jmp 0x405465
cmp dword [ebp + 0x14], 0
jne 0x40534d
cmp dword [esp + 0x18], 0
je 0x40534d
lea eax, [esp + 0xc]
xor ecx, ecx
push eax
push 0x20006
push ecx
push ecx
push dword [esp + 0x24]
mov dword [esp + 0x20], ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40569d
mov esi, dword [esp + 0xc]
lea eax, [esp + 0x260]
push eax
push esi
mov dword [esp + 0x20], esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
je 0x405342
cmp eax, 2
jne 0x405683
test esi, esi
je 0x40534d
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x10]
push edi
call fcn.00404d20
mov esi, eax
test esi, esi
js 0x4056ad
jmp 0x405675
push 0x5c
pop edx
mov ecx, edi
call fcn.00404844
test eax, eax
jne 0x4056a8
cmp dword [ebp + 0x10], eax
je 0x4054c2
mov esi, dword [esp + 0x14]
lea eax, [esp + 0xc]
push eax
push 0x2001f
xor ecx, ecx
push ecx
push edi
push esi
mov dword [esp + 0x20], ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4053b9
test ebx, ebx
je 0x4053ad
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebx, dword [esp + 0xc]
mov dword [esp + 0x20], ebx
test eax, eax
je 0x405431
lea eax, [esp + 0xc]
xor ecx, ecx
push eax
push 0x20019
push ecx
push edi
push esi
mov dword [esp + 0x20], ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4053ed
test ebx, ebx
je 0x4053e1
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebx, dword [esp + 0xc]
mov dword [esp + 0x20], ebx
test eax, eax
je 0x405431
lea eax, [esp + 0x54]
xor ecx, ecx
push eax
lea eax, [esp + 0x10]
mov dword [esp + 0x10], ecx
push eax
push ecx
push 0x2001f
push ecx
push ecx
push ecx
push edi
push esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x40569d
test ebx, ebx
je 0x405421
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebx, dword [esp + 0xc]
mov dword [esp + 0x20], ebx
test eax, eax
jne 0x40569d
mov ecx, dword [esp + 0x10]
push edi
call fcn.00404fc9
mov esi, eax
test esi, esi
js 0x4056ad
push 0x3d
pop eax
cmp word [edi], ax
jne 0x40546d
mov ecx, dword [esp + 0x10]
xor eax, eax
push edi
push eax
lea eax, [esp + 0x28]
push eax
call fcn.00404901
mov ebx, dword [esp + 0x20]
mov esi, eax
test esi, esi
js 0x4056ad
push 0x7b
pop eax
cmp word [edi], ax
jne 0x405675
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, word [esp + 0x2c]
jne 0x40547e
sub ecx, edx
sar ecx, 1
cmp ecx, 1
jne 0x405675
mov ecx, dword [esp + 0x10]
xor eax, eax
push eax
push dword [ebp + 0x10]
push ebx
push edi
call fcn.00405123
mov esi, eax
test esi, esi
js 0x4056ad
mov ecx, dword [esp + 0x10]
push edi
call fcn.00404fc9
jmp 0x405357
mov esi, dword [ebp + 0x14]
test esi, esi
jne 0x40550a
lea eax, [esp + 0xc]
xor ecx, ecx
push eax
push 0x20019
push ecx
push edi
push dword [esp + 0x24]
mov dword [esp + 0x20], ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [esp + 0x1c], eax
test eax, eax
jne 0x405511
mov dword [esp + 0x1c], eax
test ebx, ebx
je 0x405500
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x1c], eax
mov ebx, dword [esp + 0xc]
mov dword [esp + 0x20], ebx
jmp 0x405511
push 2
pop eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0xc], esi
test eax, eax
je 0x405521
mov dword [esp + 0xc], 1
push 0xffffffffffffffff
push edi
lea eax, [esp + 0x60]
push 0x104
push eax
call dword [sym.imp.msvcrt.dll_wcsncpy_s]
add esp, 0x10
mov ecx, eax
call fcn.00404ced
mov ecx, dword [esp + 0x10]
push edi
call fcn.00404fc9
mov esi, eax
test esi, esi
js 0x4056ad
mov ecx, dword [esp + 0x10]
push edi
call fcn.00404d20
mov esi, eax
test esi, esi
js 0x4056ad
push 0x7b
pop eax
cmp word [edi], ax
jne 0x4055c0
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, word [esp + 0x2c]
jne 0x405573
sub ecx, edx
sar ecx, 1
cmp ecx, 1
jne 0x4055c0
push dword [esp + 0xc]
mov ecx, dword [esp + 0x14]
xor eax, eax
push eax
push ebx
push edi
call fcn.00405123
mov esi, eax
test esi, esi
jns 0x4055ac
cmp dword [esp + 0xc], 0
je 0x4056ad
mov ecx, dword [esp + 0x10]
push edi
call fcn.00404fc9
mov esi, eax
test esi, esi
js 0x4056ad
mov ecx, dword [esp + 0x1c]
cmp ecx, 2
je 0x405675
test ecx, ecx
je 0x4055e0
cmp dword [ebp + 0x14], 0
je 0x40569f
jmp 0x405675
cmp dword [ebp + 0x14], 0
je 0x405619
push ebx
call fcn.00404eed
test eax, eax
je 0x405619
lea eax, [esp + 0x58]
push eax
call fcn.00404d87
test eax, eax
je 0x405675
cmp dword [esp + 0x18], 0
je 0x405675
lea eax, [esp + 0x58]
push eax
lea ecx, [esp + 0x24]
call fcn.00404db8
mov ebx, dword [esp + 0x20]
jmp 0x405675
push ebx
call fcn.00404eed
mov dword [esp + 0xc], eax
test ebx, ebx
je 0x405640
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ecx, ecx
mov ebx, ecx
mov dword [esp + 0x20], ebx
test eax, eax
jne 0x40569d
mov eax, dword [esp + 0xc]
jmp 0x405642
xor ecx, ecx
cmp dword [esp + 0x18], 0
je 0x405675
test eax, eax
jne 0x405675
mov eax, dword [esp + 0x14]
mov dword [esp + 0x48], eax
lea eax, [esp + 0x58]
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], ecx
lea ecx, [esp + 0x48]
push eax
call fcn.00404f24
xor ecx, ecx
mov dword [esp + 0x48], ecx
test eax, eax
jne 0x40569d
push 0x7d
pop eax
cmp word [edi], ax
jne 0x405181
jmp 0x4056ad
mov ecx, eax
call fcn.00404fb9
mov esi, eax
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4056ad
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4056ad
mov ecx, eax
call fcn.00404fb9
mov esi, eax
jmp 0x4056ad
mov esi, 0x80020009
test ebx, ebx
je 0x4056b8
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x2264]
mov eax, esi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0040ff30
mov esp, ebp
pop ebp
ret 0x10