Function at 0x40499b
Capabilities:
Access peb ldr_data
Delete registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4325af
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, 0x2254
call fcn.0041cfb0
push ebx
push esi
xor esi, esi
push edi
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], esi
mov eax, dword [ebp + 0x14]
mov edi, dword [ebp + 8]
mov dword [esp + 0x30], eax
mov eax, edi
mov dword [esp + 0x226c], esi
call fcn.00404059
mov ebx, eax
cmp ebx, esi
jl 0x404efe
cmp word [edi], 0x7d
je 0x404efc
push 0x437f20
push edi
mov dword [esp + 0x28], 1
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
neg eax
sbb ebx, ebx
push 0x437eec
inc ebx
push edi
mov dword [esp + 0x24], ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x404a37
cmp ebx, esi
je 0x404ae0
mov ecx, dword [esp + 0xc]
mov eax, edi
call fcn.00404059
mov ebx, eax
cmp ebx, esi
jl 0x404eec
cmp dword [ebp + 0x10], esi
je 0x404ae0
push 0x5c
mov eax, edi
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], esi
call fcn.0040400a
pop ecx
test eax, eax
jne 0x404ec1
push edi
call fcn.004044ea
test eax, eax
je 0x404aa2
mov eax, dword [ebp + 0xc]
push edi
lea ecx, [esp + 0x28]
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], esi
call fcn.004039d4
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], esi
cmp dword [esp + 0x1c], esi
je 0x404adc
mov ecx, dword [esp + 0xc]
mov eax, edi
call fcn.00404059
mov ebx, eax
cmp ebx, esi
jl 0x404eec
mov edi, dword [ebp + 8]
mov ecx, dword [esp + 0xc]
call fcn.0040454e
mov ebx, eax
cmp ebx, esi
jl 0x404eec
mov dword [esp + 0x28], esi
jmp 0x404cb7
mov dword [esp + 0x28], esi
push 0x437f08
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x404b09
mov ecx, dword [esp + 0xc]
mov eax, edi
mov dword [esp + 0x20], esi
call fcn.00404059
mov ebx, eax
cmp ebx, esi
jl 0x404eec
push 0x437ee0
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x404c29
mov ecx, dword [esp + 0xc]
lea eax, [esp + 0x260]
call fcn.00404059
mov ebx, eax
cmp ebx, esi
jl 0x404eec
mov ecx, dword [esp + 0xc]
mov eax, edi
call fcn.00404059
mov ebx, eax
cmp ebx, esi
jl 0x404eec
cmp word [edi], 0x3d
jne 0x404ec1
cmp dword [ebp + 0x10], esi
je 0x404bb0
mov eax, dword [ebp + 0xc]
mov byte [esp + 0x226c], 1
mov dword [esp + 0x40], eax
push edi
lea eax, [esp + 0x264]
push eax
lea eax, [esp + 0x48]
push eax
push dword [esp + 0x18]
mov dword [esp + 0x54], esi
mov dword [esp + 0x58], esi
call fcn.0040417f
mov ebx, eax
mov dword [esp + 0x40], esi
mov dword [esp + 0x44], esi
mov dword [esp + 0x48], esi
cmp ebx, esi
jl 0x404eec
mov byte [esp + 0x226c], 0
mov dword [esp + 0x44], esi
jmp 0x404cb7
cmp dword [ebp + 0x14], esi
jne 0x404c18
cmp dword [esp + 0x20], esi
je 0x404c18
push esi
push dword [ebp + 0xc]
mov eax, 0x20006
lea ebx, [esp + 0x3c]
mov dword [esp + 0x3c], esi
mov dword [esp + 0x40], esi
mov dword [esp + 0x44], esi
call fcn.0040243f
xor edi, edi
cmp eax, edi
jne 0x404f15
mov esi, dword [esp + 0x34]
lea eax, [esp + 0x260]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
cmp eax, edi
je 0x404c03
cmp eax, 2
jne 0x404ed8
cmp esi, edi
je 0x404c12
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x34], edi
mov dword [esp + 0x38], edi
xor esi, esi
mov edi, dword [ebp + 8]
mov ecx, dword [esp + 0xc]
call fcn.0040454e
jmp 0x404cf5
push 0x5c
mov eax, edi
call fcn.0040400a
pop ecx
test eax, eax
jne 0x404ec1
cmp dword [ebp + 0x10], esi
je 0x404d11
push edi
push dword [ebp + 0xc]
mov eax, 0x2001f
lea ebx, [esp + 0x18]
call fcn.0040243f
test eax, eax
je 0x404c7f
push edi
push dword [ebp + 0xc]
mov eax, 0x20019
call fcn.0040243f
test eax, eax
je 0x404c7f
push edi
push dword [ebp + 0xc]
mov eax, ebx
call fcn.0040397d
test eax, eax
jne 0x404f28
mov ecx, dword [esp + 0xc]
mov eax, edi
call fcn.00404059
mov ebx, eax
test ebx, ebx
js 0x404eea
cmp word [edi], 0x3d
jne 0x404cb5
push edi
push 0
lea eax, [esp + 0x18]
push eax
push dword [esp + 0x18]
call fcn.0040417f
mov ebx, eax
test ebx, ebx
js 0x404eea
xor esi, esi
cmp dword [ebp + 0x10], esi
je 0x404cff
cmp word [edi], 0x7b
jne 0x404cff
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 1
jne 0x404cff
mov ecx, dword [esp + 0xc]
push esi
push dword [ebp + 0x10]
push dword [esp + 0x18]
push edi
call fcn.0040499b
mov ebx, eax
cmp ebx, esi
jl 0x404eec
mov ecx, dword [esp + 0xc]
mov eax, edi
call fcn.00404059
mov ebx, eax
cmp ebx, esi
jl 0x404eec
mov edi, dword [ebp + 8]
cmp word [edi], 0x7d
jne 0x404a02
jmp 0x404eec
cmp dword [ebp + 0x14], esi
jne 0x404d30
push edi
push dword [ebp + 0xc]
mov eax, 0x20019
lea ebx, [esp + 0x18]
call fcn.0040243f
mov dword [esp + 0x1c], eax
xor esi, esi
jmp 0x404d38
mov dword [esp + 0x1c], 2
cmp dword [esp + 0x1c], esi
je 0x404d45
mov dword [ebp + 0x14], 1
push 0xffffffffffffffff
push edi
lea eax, [esp + 0x60]
push 0x104
push eax
call fcn.0040eda8
push eax
call fcn.0040224d
mov ecx, dword [esp + 0x20]
add esp, 0x14
mov eax, edi
call fcn.00404059
mov ebx, eax
cmp ebx, esi
jl 0x404eec
mov edi, dword [ebp + 8]
mov ecx, dword [esp + 0xc]
call fcn.0040454e
mov ebx, eax
cmp ebx, esi
jl 0x404eec
cmp word [edi], 0x7b
jne 0x404dd3
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 1
jne 0x404dd3
push dword [ebp + 0x14]
mov ecx, dword [esp + 0x10]
push esi
push dword [esp + 0x18]
push edi
call fcn.0040499b
mov ebx, eax
cmp ebx, esi
jge 0x404dbe
cmp dword [ebp + 0x14], esi
je 0x404eec
mov ecx, dword [esp + 0xc]
mov eax, edi
call fcn.00404059
mov ebx, eax
cmp ebx, esi
jl 0x404eec
cmp dword [esp + 0x1c], 2
mov eax, dword [esp + 0x30]
mov dword [ebp + 0x14], eax
je 0x404cff
mov eax, dword [esp + 0x1c]
cmp eax, esi
je 0x404e03
cmp dword [esp + 0x30], esi
jne 0x404cff
call fcn.004032d1
mov ebx, eax
jmp 0x404eec
cmp dword [esp + 0x30], esi
je 0x404e45
push dword [esp + 0x10]
call fcn.00404519
test eax, eax
je 0x404e45
lea eax, [esp + 0x58]
push eax
call fcn.004044ea
test eax, eax
je 0x404cff
cmp dword [esp + 0x20], esi
je 0x404cff
lea eax, [esp + 0x58]
push eax
lea ecx, [esp + 0x14]
call fcn.004039d4
jmp 0x404cff
push dword [esp + 0x10]
call fcn.00404519
mov edi, eax
xor eax, eax
cmp dword [esp + 0x10], esi
je 0x404e66
push dword [esp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], esi
cmp eax, esi
jne 0x404f44
cmp dword [esp + 0x20], esi
je 0x404cff
cmp edi, esi
jne 0x404cff
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x4c], eax
lea eax, [esp + 0x58]
push eax
lea edi, [esp + 0x50]
mov dword [esp + 0x54], esi
mov dword [esp + 0x58], esi
call fcn.0040390f
mov dword [esp + 0x4c], esi
mov dword [esp + 0x50], esi
mov dword [esp + 0x54], esi
cmp eax, esi
jne 0x404df7
mov edi, dword [ebp + 8]
mov dword [esp + 0x50], esi
jmp 0x404cb7
cmp dword [esp + 0x10], esi
je 0x404ed1
push dword [esp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 0x80020009
jmp 0x404efe
call fcn.004032d1
mov ebx, eax
cmp esi, edi
je 0x404eea
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor esi, esi
cmp dword [esp + 0x10], esi
je 0x404efc
push dword [esp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov ecx, dword [esp + 0x2264]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 0x10
call fcn.004032d1
mov ebx, eax
cmp dword [esp + 0x34], edi
je 0x404eea
push dword [esp + 0x34]
jmp 0x404ee4
call fcn.004032d1
cmp dword [esp + 0x10], 0
mov esi, eax
je 0x404f40
push dword [esp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x404efe
call fcn.004032d1
mov edi, eax
cmp dword [esp + 0x10], esi
je 0x404f5b
push dword [esp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
jmp 0x404efe