Function at 0x402c20
Capabilities:
Delete registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 4], 5
mov dword [ebp - 0x2c], 0xc
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0xc]
mov dword [ebp - 0x44], ecx
cmp dword [ebp - 0x44], 5
ja case.default.0x402c6d
mov edx, dword [ebp - 0x44]
jmp dword [edx*4 + 0x40331c]
push 4
lea eax, [ebp - 0xc]
push eax
mov ecx, dword [ebp + 8]
call fcn.00403580
movzx ecx, al
test ecx, ecx
jne 0x402c8e
jmp 0x402d2b
mov edx, dword [ebp - 0xc]
push edx
call fcn.00401ba0
add esp, 4
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x402cba
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
mov ecx, dword [ebp + 8]
call fcn.00403580
movzx edx, al
test edx, edx
jne 0x402cbc
jmp 0x402d2b
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 8]
push ecx
push 0
push 0x2021f
push 0
push 0
push 0
mov edx, dword [ebp - 0x14]
push edx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x402cfa
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x24], 1
push 0xc
lea ecx, [ebp - 0x2c]
push ecx
mov ecx, dword [ebp + 8]
call fcn.00403610
mov edx, dword [ebp - 4]
mov dword [ebp - 0x1c], edx
push 4
lea eax, [ebp - 0x1c]
push eax
mov ecx, dword [ebp + 8]
call fcn.00403610
jmp 0x4032cd
push 0xc
lea ecx, [ebp - 0x2c]
push ecx
mov ecx, dword [ebp + 8]
call fcn.00403610
jmp 0x4032cd
push 4
lea edx, [ebp - 0xc]
push edx
mov ecx, dword [ebp + 8]
call fcn.00403580
movzx eax, al
test eax, eax
jne 0x402d58
jmp 0x402e27
mov ecx, dword [ebp - 0xc]
push ecx
call fcn.00401ba0
add esp, 4
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x402d84
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [ebp + 8]
call fcn.00403580
movzx ecx, al
test ecx, ecx
jne 0x402d89
jmp 0x402e27
cmp dword [0x433020], 0
jne 0x402dc4
push str.Advapi32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
je 0x402dc4
push str.RegDeleteKeyExA
mov edx, dword [ebp - 0x30]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x433020], eax
mov eax, dword [ebp - 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp dword [0x433020], 0
je 0x402df6
push 0
push 0x200
mov ecx, dword [ebp - 0x14]
push ecx
push 0x80000002
call dword [0x433020]
neg eax
sbb eax, eax
add eax, 1
mov dword [ebp - 4], eax
jne 0x402df6
mov dword [ebp - 0x24], 1
push 0xc
lea edx, [ebp - 0x2c]
push edx
mov ecx, dword [ebp + 8]
call fcn.00403610
mov eax, dword [ebp - 4]
mov dword [ebp - 0x1c], eax
push 4
lea ecx, [ebp - 0x1c]
push ecx
mov ecx, dword [ebp + 8]
call fcn.00403610
jmp 0x4032cd
push 0xc
lea edx, [ebp - 0x2c]
push edx
mov ecx, dword [ebp + 8]
call fcn.00403610
jmp 0x4032cd
push 4
lea eax, [ebp - 0xc]
push eax
mov ecx, dword [ebp + 8]
call fcn.00403580
movzx ecx, al
test ecx, ecx
jne 0x402e54
jmp 0x402fc3
mov edx, dword [ebp - 0xc]
push edx
call fcn.00401ba0
add esp, 4
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x402e80
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
mov ecx, dword [ebp + 8]
call fcn.00403580
movzx edx, al
test edx, edx
jne 0x402e85
jmp 0x402fc3
push 4
lea eax, [ebp - 0xc]
push eax
mov ecx, dword [ebp + 8]
call fcn.00403580
movzx ecx, al
test ecx, ecx
jne 0x402e9f
jmp 0x402fc3
mov edx, dword [ebp - 0xc]
push edx
call fcn.00401ba0
add esp, 4
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x402ecb
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
mov ecx, dword [ebp + 8]
call fcn.00403580
movzx edx, al
test edx, edx
jne 0x402ed0
jmp 0x402fc3
push 4
lea eax, [ebp - 0xc]
push eax
mov ecx, dword [ebp + 8]
call fcn.00403580
movzx ecx, al
test ecx, ecx
jne 0x402eea
jmp 0x402fc3
mov edx, dword [ebp - 0xc]
push edx
call fcn.00401ba0
add esp, 4
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
je 0x402f16
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x20]
push ecx
mov ecx, dword [ebp + 8]
call fcn.00403580
movzx edx, al
test edx, edx
jne 0x402f1b
jmp 0x402fc3
push 4
lea eax, [ebp - 0x1c]
push eax
mov ecx, dword [ebp + 8]
call fcn.00403580
movzx ecx, al
test ecx, ecx
jne 0x402f35
jmp 0x402fc3
lea edx, [ebp - 0x10]
push edx
lea eax, [ebp - 8]
push eax
push 0
push 0x2021f
push 0
push 0
push 0
mov ecx, dword [ebp - 0x14]
push ecx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x402f92
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp - 0x20]
push eax
mov ecx, dword [ebp - 0x1c]
push ecx
push 0
mov edx, dword [ebp - 0x18]
push edx
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x24], 1
push 0xc
lea edx, [ebp - 0x2c]
push edx
mov ecx, dword [ebp + 8]
call fcn.00403610
mov eax, dword [ebp - 4]
mov dword [ebp - 0x1c], eax
push 4
lea ecx, [ebp - 0x1c]
push ecx
mov ecx, dword [ebp + 8]
call fcn.00403610
jmp 0x4032cd
push 0xc
lea edx, [ebp - 0x2c]
push edx
mov ecx, dword [ebp + 8]
call fcn.00403610
jmp 0x4032cd
push 4
lea eax, [ebp - 0xc]
push eax
mov ecx, dword [ebp + 8]
call fcn.00403580
movzx ecx, al
test ecx, ecx
jne 0x402ff0
jmp 0x4030ec
mov edx, dword [ebp - 0xc]
push edx
call fcn.00401ba0
add esp, 4
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x40301c
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
mov ecx, dword [ebp + 8]
call fcn.00403580
movzx edx, al
test edx, edx
jne 0x403021
jmp 0x4030ec
push 4
lea eax, [ebp - 0xc]
push eax
mov ecx, dword [ebp + 8]
call fcn.00403580
movzx ecx, al
test ecx, ecx
jne 0x40303b
jmp 0x4030ec
mov edx, dword [ebp - 0xc]
push edx
call fcn.00401ba0
add esp, 4
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x403067
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
mov ecx, dword [ebp + 8]
call fcn.00403580
movzx edx, al
test edx, edx
jne 0x40306c
jmp 0x4030ec
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 8]
push ecx
push 0
push 0x2021f
push 0
push 0
push 0
mov edx, dword [ebp - 0x14]
push edx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x4030bb
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov dword [ebp - 4], eax
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x24], 1
push 0xc
lea eax, [ebp - 0x2c]
push eax
mov ecx, dword [ebp + 8]
call fcn.00403610
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x1c], ecx
push 4
lea edx, [ebp - 0x1c]
push edx
mov ecx, dword [ebp + 8]
call fcn.00403610
jmp 0x4032cd
push 0xc
lea eax, [ebp - 0x2c]
push eax
mov ecx, dword [ebp + 8]
call fcn.00403610
jmp 0x4032cd
push 4
lea ecx, [ebp - 0x1c]
push ecx
mov ecx, dword [ebp + 8]
call fcn.00403580
movzx edx, al
test edx, edx
jne 0x403119
jmp 0x403262
cmp dword [ebp - 0x1c], 0
jne 0x403183
push 0x1f4
mov eax, dword [0x43405c]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
movzx ecx, byte [0x433018]
mov dword [ebp - 4], ecx
mov dword [ebp - 0xc], 4
mov dword [ebp - 0x24], 1
push 0xc
lea edx, [ebp - 0x2c]
push edx
mov ecx, dword [ebp + 8]
call fcn.00403610
push 4
lea eax, [ebp - 0xc]
push eax
mov ecx, dword [ebp + 8]
call fcn.00403610
mov ecx, dword [ebp - 0xc]
push ecx
lea edx, [ebp - 4]
push edx
mov ecx, dword [ebp + 8]
call fcn.00403610
jmp 0x4032cd
cmp dword [0x433010], 0
je 0x40324d
mov dword [ebp - 0x34], 0
jmp 0x4031a2
mov eax, dword [ebp - 0x34]
add eax, 1
mov dword [ebp - 0x34], eax
mov ecx, dword [0x433014]
shr ecx, 4
cmp dword [ebp - 0x34], ecx
jae 0x40324b
mov edx, dword [ebp - 0x34]
shl edx, 4
mov eax, dword [0x433010]
mov ecx, dword [eax + edx]
cmp ecx, dword [ebp - 0x1c]
jne 0x403246
mov edx, dword [ebp - 0x34]
shl edx, 4
mov eax, dword [0x433010]
cmp dword [eax + edx + 8], 0
je 0x40322e
mov ecx, dword [ebp - 0x34]
shl ecx, 4
mov edx, dword [0x433010]
mov eax, dword [edx + ecx + 0xc]
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x24], 1
push 0xc
lea ecx, [ebp - 0x2c]
push ecx
mov ecx, dword [ebp + 8]
call fcn.00403610
push 4
lea edx, [ebp - 0xc]
push edx
mov ecx, dword [ebp + 8]
call fcn.00403610
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x34]
shl ecx, 4
mov edx, dword [0x433010]
mov eax, dword [edx + ecx + 8]
push eax
mov ecx, dword [ebp + 8]
call fcn.00403610
jmp 0x40323c
push 0xc
lea ecx, [ebp - 0x2c]
push ecx
mov ecx, dword [ebp + 8]
call fcn.00403610
jmp 0x4032cd
jmp 0x403199
jmp 0x40325b
push 0xc
lea edx, [ebp - 0x2c]
push edx
mov ecx, dword [ebp + 8]
call fcn.00403610
jmp 0x403262
push 0xc
lea eax, [ebp - 0x2c]
push eax
mov ecx, dword [ebp + 8]
call fcn.00403610
jmp 0x4032cd
cmp dword [0x43301c], 0
je 0x4032ab
mov ecx, dword [0x43301c]
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x24], 1
push 0xc
lea edx, [ebp - 0x2c]
push edx
mov ecx, dword [ebp + 8]
call fcn.00403610
push 4
lea eax, [ebp - 0x1c]
push eax
mov ecx, dword [ebp + 8]
call fcn.00403610
jmp 0x4032cd
jmp 0x4032af
push 0xc
lea ecx, [ebp - 0x2c]
push ecx
mov ecx, dword [ebp + 8]
call fcn.00403610
jmp 0x4032cd
push 0xc
lea edx, [ebp - 0x2c]
push edx
mov ecx, dword [ebp + 8]
call fcn.00403610
cmp dword [ebp - 0x14], 0
je 0x4032e5
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x38], eax
mov ecx, dword [ebp - 0x38]
push ecx
call fcn.00404327
add esp, 4
cmp dword [ebp - 0x18], 0
je 0x4032fd
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x3c], edx
mov eax, dword [ebp - 0x3c]
push eax
call fcn.00404327
add esp, 4
cmp dword [ebp - 0x20], 0
je 0x403315
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0x40], ecx
mov edx, dword [ebp - 0x40]
push edx
call fcn.00404327
add esp, 4
mov esp, ebp
pop ebp
ret