Function at 0x405245
Capabilities:
Delete registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x226c
call fcn.00410f00
mov eax, dword [0x412074]
xor eax, esp
mov dword [esp + 0x2268], 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 + 0x28], ecx
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], ecx
mov ecx, eax
push edi
mov dword [esp + 0x10], eax
mov dword [esp + 0x20], ebx
call fcn.004050f7
mov esi, eax
test esi, esi
js 0x405371
push 0x7d
pop eax
cmp word [edi], ax
je 0x405362
push 0x401ed0
push edi
mov dword [esp + 0x18], 1
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
neg eax
push 0x401ea4
sbb esi, esi
inc esi
push edi
mov dword [esp + 0x20], esi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x4052df
test esi, esi
je 0x40538a
mov ecx, dword [esp + 0xc]
push edi
call fcn.004050f7
mov esi, eax
test esi, esi
js 0x405362
xor esi, esi
cmp dword [ebp + 0x10], esi
je 0x40538c
push 0x5c
pop edx
mov ecx, edi
mov dword [esp + 0x3c], esi
mov dword [esp + 0x40], esi
mov dword [esp + 0x44], esi
call fcn.00404948
test eax, eax
jne 0x4057dd
push edi
call fcn.00404ea7
test eax, eax
je 0x405338
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x3c]
push edi
mov dword [esp + 0x40], eax
call fcn.00404f26
mov dword [esp + 0x3c], esi
cmp dword [esp + 0x18], esi
je 0x40538c
mov ecx, dword [esp + 0xc]
push edi
call fcn.004050f7
mov esi, eax
test esi, esi
js 0x405362
mov ecx, dword [esp + 0xc]
push edi
call fcn.00404e3a
mov esi, eax
test esi, esi
jns 0x40558d
mov ebx, dword [esp + 0x1c]
test ebx, ebx
je 0x405371
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x2274]
mov eax, esi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00410680
mov esp, ebp
pop ebp
ret 0x10
xor esi, esi
push 0x401ebc
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x4053b0
mov ecx, dword [esp + 0xc]
push edi
mov dword [esp + 0x14], esi
call fcn.004050f7
mov esi, eax
test esi, esi
js 0x405362
push 0x401e9c
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x4054bd
mov ecx, dword [esp + 0xc]
lea eax, [esp + 0x270]
push eax
call fcn.004050f7
mov esi, eax
test esi, esi
js 0x405362
mov ecx, dword [esp + 0xc]
push edi
call fcn.004050f7
mov esi, eax
test esi, esi
js 0x405362
push 0x3d
pop eax
cmp word [edi], ax
jne 0x4057dd
cmp dword [ebp + 0x10], 0
je 0x40543f
mov ecx, dword [esp + 0xc]
xor eax, eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x48], eax
lea eax, [esp + 0x270]
push edi
push eax
lea eax, [esp + 0x50]
push eax
call fcn.00404a7b
mov esi, eax
xor eax, eax
mov dword [esp + 0x48], eax
test esi, esi
js 0x405366
jmp 0x40558d
cmp dword [ebp + 0x14], 0
jne 0x4054a4
cmp dword [esp + 0x10], 0
je 0x4054a4
xor esi, esi
lea ecx, [esp + 0x30]
push 0x20006
push esi
push dword [esp + 0x1c]
mov dword [esp + 0x3c], esi
mov dword [esp + 0x40], esi
mov dword [esp + 0x44], esi
call fcn.00404ede
test eax, eax
jne 0x4057b5
mov ebx, dword [esp + 0x30]
lea eax, [esp + 0x270]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
je 0x405495
cmp eax, 2
jne 0x405798
test ebx, ebx
je 0x4054a4
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x30], esi
mov ecx, dword [esp + 0xc]
push edi
call fcn.00404e3a
mov esi, eax
test esi, esi
js 0x405362
jmp 0x405783
push 0x5c
pop edx
mov ecx, edi
call fcn.00404948
test eax, eax
jne 0x4057dd
cmp dword [ebp + 0x10], eax
je 0x4055e2
mov ebx, dword [esp + 0x14]
lea ecx, [esp + 0x1c]
push 0x2001f
push edi
push ebx
call fcn.00404ede
test eax, eax
je 0x405551
push 0x20019
push edi
push ebx
lea ecx, [esp + 0x28]
call fcn.00404ede
test eax, eax
je 0x405551
lea eax, [esp + 0x60]
xor esi, esi
push eax
lea eax, [esp + 0x14]
mov dword [esp + 0x14], esi
push eax
push esi
push 0x2001f
push esi
push esi
push esi
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x405545
mov eax, esi
cmp dword [esp + 0x1c], eax
je 0x40553b
push dword [esp + 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebx, dword [esp + 0x10]
mov dword [esp + 0x1c], ebx
jmp 0x405549
mov ebx, dword [esp + 0x1c]
test eax, eax
jne 0x4057cf
mov ebx, dword [esp + 0xc]
mov ecx, ebx
push edi
call fcn.004050f7
mov esi, eax
test esi, esi
js 0x405362
push 0x3d
pop eax
cmp word [edi], ax
jne 0x405589
push edi
xor eax, eax
mov ecx, ebx
push eax
lea eax, [esp + 0x24]
push eax
call fcn.00404a7b
mov esi, eax
test esi, esi
js 0x405362
mov ebx, dword [esp + 0x1c]
push 0x7b
pop eax
cmp word [edi], ax
jne 0x405783
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, word [esp + 0x28]
jne 0x40559e
sub ecx, edx
sar ecx, 1
cmp ecx, 1
jne 0x405783
xor eax, eax
push eax
push dword [ebp + 0x10]
push ebx
mov ebx, dword [esp + 0x18]
mov ecx, ebx
push edi
call fcn.00405245
mov esi, eax
test esi, esi
js 0x405362
push edi
mov ecx, ebx
call fcn.004050f7
jmp 0x4054ae
cmp dword [ebp + 0x14], 0
jne 0x40560c
push 0x20019
push edi
push dword [esp + 0x1c]
lea ecx, [esp + 0x28]
call fcn.00404ede
mov ebx, dword [ebp + 0x14]
mov dword [esp + 0x18], eax
mov dword [esp + 0x2c], ebx
test eax, eax
jne 0x405614
jmp 0x40561b
mov dword [esp + 0x18], 2
xor ebx, ebx
inc ebx
mov dword [esp + 0x2c], ebx
push 0xffffffffffffffff
push edi
lea eax, [esp + 0x70]
push 0x104
push eax
call dword [sym.imp.msvcrt.dll_wcsncpy_s]
add esp, 0x10
mov ecx, eax
call fcn.00404e01
mov ecx, dword [esp + 0xc]
push edi
call fcn.004050f7
mov esi, eax
test esi, esi
js 0x405362
mov ecx, dword [esp + 0xc]
push edi
call fcn.00404e3a
mov esi, eax
test esi, esi
js 0x405362
push 0x7b
pop eax
cmp word [edi], ax
jne 0x4056bd
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, word [esp + 0x28]
jne 0x40566d
sub ecx, edx
sar ecx, 1
cmp ecx, 1
jne 0x4056bd
mov ecx, dword [esp + 0xc]
xor eax, eax
push ebx
mov ebx, dword [esp + 0x20]
push eax
push ebx
push edi
call fcn.00405245
mov esi, eax
test esi, esi
jns 0x4056a7
cmp dword [esp + 0x2c], 0
je 0x405362
mov ecx, dword [esp + 0xc]
push edi
call fcn.004050f7
mov esi, eax
test esi, esi
js 0x405362
jmp 0x4056c1
mov ebx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
cmp eax, 2
je 0x405783
test eax, eax
je 0x4056ea
cmp dword [ebp + 0x14], 0
jne 0x405783
mov ecx, eax
call fcn.004050e1
mov esi, eax
jmp 0x405362
cmp dword [ebp + 0x14], 0
je 0x40571f
push ebx
call fcn.00405009
test eax, eax
je 0x40571f
lea eax, [esp + 0x68]
push eax
call fcn.00404ea7
test eax, eax
je 0x405783
cmp dword [esp + 0x10], 0
je 0x405783
lea eax, [esp + 0x68]
push eax
lea ecx, [esp + 0x20]
call fcn.00404f26
jmp 0x405783
push ebx
call fcn.00405009
mov dword [esp + 0x18], eax
test ebx, ebx
je 0x40574a
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ecx, ecx
mov ebx, ecx
mov dword [esp + 0x1c], ebx
test eax, eax
jne 0x4057cf
mov eax, dword [esp + 0x18]
jmp 0x40574c
xor ecx, ecx
cmp dword [esp + 0x10], 0
je 0x405783
test eax, eax
jne 0x405783
mov eax, dword [esp + 0x14]
mov dword [esp + 0x54], eax
lea eax, [esp + 0x68]
mov dword [esp + 0x58], ecx
mov dword [esp + 0x5c], ecx
lea ecx, [esp + 0x54]
push eax
call fcn.00405046
xor ecx, ecx
mov dword [esp + 0x54], ecx
test eax, eax
jne 0x4056dc
push 0x7d
pop eax
cmp word [edi], ax
je 0x405362
mov ebx, dword [esp + 0x1c]
jmp 0x4052aa
mov ecx, eax
call fcn.004050e1
mov esi, eax
test ebx, ebx
je 0x405362
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x405362
mov ecx, eax
call fcn.004050e1
cmp dword [esp + 0x30], 0
mov esi, eax
je 0x405362
push dword [esp + 0x30]
jmp 0x4057aa
mov ecx, eax
call fcn.004050e1
mov esi, eax
jmp 0x405366
mov esi, 0x80020009
jmp 0x405366