Function at 0x403420
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40d4d8
push 0x404540
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xffffffac
push ebx
push esi
push edi
mov dword [ebp - 0x1c], 0x30
mov eax, dword [ebp - 0x1c]
push eax
call fcn.004038d2
add esp, 4
mov dword [ebp - 0x40], eax
mov ecx, dword [ebp - 0x40]
mov dword [ebp - 0x24], ecx
mov edx, dword [ebp - 0x24]
mov dword [ebp - 0x20], edx
mov dword [ebp - 4], 0
lea eax, [ebp - 0x34]
push eax
mov ecx, dword [ebp + 8]
push ecx
push 0
push 0x40d46c
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 0x2c], eax
mov edx, dword [ebp + 8]
and edx, 0x100
je 0x4034b7
cmp dword [ebp - 0x2c], 5
jne 0x4034b7
mov dword [ebp - 0x4c], 0
push 0xffffffffffffffff
lea eax, [ebp - 0x10]
push eax
call fcn.00404372
add esp, 8
mov eax, dword [ebp - 0x4c]
jmp 0x4036e9
xor ecx, ecx
cmp dword [ebp - 0x2c], 0
sete cl
mov byte [ebp - 0x39], cl
movzx edx, byte [ebp - 0x39]
test edx, edx
jne 0x403519
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0x34]
push ecx
push 0
mov edx, dword [ebp + 8]
push edx
push 0
push 0
push 0
push str.CLSIDFA89DABE_8CFB_D46F_F19F_FAA4EF85DA1E
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x403519
push 0x250
call fcn.00402a70
add esp, 4
mov dword [ebp - 0x50], eax
push 0xffffffffffffffff
lea eax, [ebp - 0x10]
push eax
call fcn.00404372
add esp, 8
mov eax, dword [ebp - 0x50]
jmp 0x4036e9
mov ecx, dword [ebp - 0x1c]
push ecx
call fcn.004038d2
add esp, 4
mov dword [ebp - 0x44], eax
mov edx, dword [ebp - 0x44]
mov dword [ebp - 0x38], edx
lea eax, [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 0x38]
push ecx
lea edx, [ebp - 0x28]
push edx
push 0
push 0
mov eax, dword [ebp - 0x34]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40355b
cmp dword [ebp - 0x28], 3
jne 0x40355b
mov dword [ebp - 0x54], 1
jmp 0x403562
mov dword [ebp - 0x54], 0
mov cl, byte [ebp - 0x54]
mov byte [ebp - 0x39], cl
movzx edx, byte [ebp - 0x39]
test edx, edx
je 0x403608
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 0x38]
push ecx
mov edx, dword [ebp - 0x24]
push edx
call fcn.004038e0
add esp, 0xc
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 0x38]
push ecx
call fcn.00403200
add esp, 8
mov byte [ebp - 0x3a], 0
lea edx, [ebp - 0x3a]
push edx
mov eax, dword [ebp - 0x38]
push eax
call fcn.00402f80
add esp, 8
test eax, eax
je 0x4035d6
push 0x25b
call fcn.00402a70
add esp, 4
mov dword [ebp - 0x58], eax
push 0xffffffffffffffff
lea ecx, [ebp - 0x10]
push ecx
call fcn.00404372
add esp, 8
mov eax, dword [ebp - 0x58]
jmp 0x4036e9
movzx edx, byte [ebp - 0x3a]
test edx, edx
je 0x403606
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 0x38]
push ecx
mov edx, dword [ebp - 0x24]
push edx
call fcn.004038e0
add esp, 0xc
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 0x24]
push ecx
call fcn.00403100
add esp, 8
mov byte [ebp - 0x39], 0
jmp 0x40364e
mov edx, dword [ebp - 0x20]
push edx
call fcn.00402ef0
add esp, 4
test eax, eax
je 0x40363e
push 0x263
call fcn.00402a70
add esp, 4
mov dword [ebp - 0x5c], eax
push 0xffffffffffffffff
lea eax, [ebp - 0x10]
push eax
call fcn.00404372
add esp, 8
mov eax, dword [ebp - 0x5c]
jmp 0x4036e9
mov ecx, dword [ebp - 0x1c]
push ecx
mov edx, dword [ebp - 0x24]
push edx
call fcn.00403100
add esp, 8
movzx eax, byte [ebp - 0x39]
test eax, eax
jne 0x403695
mov ecx, dword [ebp - 0x1c]
push ecx
mov edx, dword [ebp - 0x24]
push edx
push 3
push 0
push 0
mov eax, dword [ebp - 0x34]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x403695
push 0x268
call fcn.00402a70
add esp, 4
mov dword [ebp - 0x60], eax
push 0xffffffffffffffff
lea ecx, [ebp - 0x10]
push ecx
call fcn.00404372
add esp, 8
mov eax, dword [ebp - 0x60]
jmp 0x4036e9
mov edx, dword [ebp - 0x34]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x4036c6
push 0x26a
call fcn.00402a70
add esp, 4
mov dword [ebp - 0x64], eax
push 0xffffffffffffffff
lea eax, [ebp - 0x10]
push eax
call fcn.00404372
add esp, 8
mov eax, dword [ebp - 0x64]
jmp 0x4036e9
mov dword [ebp - 4], 0xffffffff
call fcn.004036d4
jmp 0x4036e7
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret