Function at 0x401a30
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push 0xffffffffffffffff
push 0x417821
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x11c
push ebx
push ebp
push esi
xor esi, esi
push edi
xor ebx, ebx
mov dword [esp + 0x20], esi
lea eax, [esp + 0x1c]
mov dword [esp + 0x134], ebx
push eax
call fcn.00401590
mov eax, dword [eax]
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
add esp, 4
lea ecx, [esp + 0x18]
mov dword [esp + 0x18], ebx
push ecx
push 0xf003f
push ebx
push eax
push 0x80000002
call edi
cmp eax, ebx
jne 0x401a9a
mov esi, dword [esp + 0x18]
xor eax, eax
mov dword [esp + 0x20], esi
cmp eax, ebx
lea ecx, [esp + 0x1c]
sete byte [esp + 0x17]
call fcn.00411035
mov al, byte [esp + 0x17]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
cmp al, bl
je 0x401b79
mov dword [esp + 0x10], ebx
lea edx, [esp + 0x1c]
mov byte [esp + 0x134], 1
push edx
push 0x2001f
push ebx
push 0x41e760
push esi
mov dword [esp + 0x30], ebx
call edi
cmp eax, ebx
jne 0x401b69
lea ecx, [esp + 0x10]
call fcn.004023f0
mov ecx, dword [esp + 0x1c]
cmp eax, ebx
mov dword [esp + 0x10], ecx
jne 0x401b69
lea eax, [esp + 0x24]
lea edx, [esp + 0x18]
push eax
push ebx
push ebx
push ebx
lea eax, [esp + 0x3c]
push edx
push eax
push ebx
push ecx
mov dword [esp + 0x38], 0x100
call ebp
test eax, eax
jne 0x401b54
lea ecx, [esp + 0x2c]
push ecx
lea ecx, [esp + 0x14]
call fcn.00402410
cmp eax, ebx
jne 0x401b69
lea edx, [esp + 0x24]
lea eax, [esp + 0x18]
push edx
mov edx, dword [esp + 0x14]
push ebx
push ebx
push ebx
lea ecx, [esp + 0x3c]
push eax
push ecx
push ebx
push edx
mov dword [esp + 0x38], 0x100
call ebp
test eax, eax
je 0x401b1c
lea ecx, [esp + 0x10]
call fcn.004023f0
push 0x41e760
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
lea ecx, [esp + 0x10]
mov byte [esp + 0x134], bl
call fcn.004023f0
lea eax, [esp + 0x18]
push eax
call fcn.00401620
mov eax, dword [eax]
add esp, 4
lea ecx, [esp + 0x1c]
mov dword [esp + 0x1c], ebx
push ecx
push 0xf003f
push ebx
push eax
push 0x80000002
call edi
cmp eax, ebx
jne 0x401bba
xor eax, eax
cmp esi, ebx
je 0x401bb0
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [esp + 0x1c]
cmp eax, ebx
mov dword [esp + 0x20], esi
lea ecx, [esp + 0x18]
sete byte [esp + 0x17]
call fcn.00411035
cmp byte [esp + 0x17], bl
je 0x401c8e
mov dword [esp + 0x10], ebx
lea edx, [esp + 0x1c]
mov byte [esp + 0x134], 2
push edx
push 0x2001f
push ebx
push 0x421d40
push esi
mov dword [esp + 0x30], ebx
call edi
cmp eax, ebx
jne 0x401c7e
lea ecx, [esp + 0x10]
call fcn.004023f0
mov ecx, dword [esp + 0x1c]
cmp eax, ebx
mov dword [esp + 0x10], ecx
jne 0x401c7e
lea eax, [esp + 0x24]
lea edx, [esp + 0x18]
push eax
push ebx
push ebx
push ebx
lea eax, [esp + 0x3c]
push edx
push eax
mov edi, 0x100
push ebx
push ecx
mov dword [esp + 0x38], edi
call ebp
test eax, eax
jne 0x401c69
lea ecx, [esp + 0x2c]
push ecx
lea ecx, [esp + 0x14]
call fcn.00402410
cmp eax, ebx
jne 0x401c7e
lea edx, [esp + 0x24]
lea eax, [esp + 0x18]
push edx
mov edx, dword [esp + 0x14]
push ebx
push ebx
push ebx
lea ecx, [esp + 0x3c]
push eax
push ecx
push ebx
push edx
mov dword [esp + 0x38], edi
call ebp
test eax, eax
je 0x401c35
lea ecx, [esp + 0x10]
call fcn.004023f0
push 0x421d40
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
lea ecx, [esp + 0x10]
mov byte [esp + 0x134], bl
call fcn.004023f0
cmp esi, ebx
je 0x401c99
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x12c]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x128
ret