Function at 0x403350
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x41c2b4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
mov edi, ecx
mov ebx, edx
test edi, edi
je 0x4035bc
cmp dword [ebp + 0xc], 0x168
jb 0x4035bc
push esi
push 0x168
call fcn.004055dc
mov esi, eax
add esp, 4
test esi, esi
jne 0x4033a5
pop esi
pop edi
mov eax, 0x2206
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00405593
mov esp, ebp
pop ebp
ret
push 0x168
push 0
push esi
call fcn.004084a0
push 0x168
push edi
push 0x168
push esi
call fcn.004056a5
mov ecx, dword [esi]
push 0x10
push 0x18
lea eax, [ebp - 0x1c]
push eax
push ecx
call fcn.0040665f
lea edx, [ebp - 0x1c]
push edx
push str.rd__targetKey
push str._s____s
mov edx, 0x41e170
call fcn.00402160
mov ecx, dword [esi + 0x68]
push 0xa
push 0x18
lea eax, [ebp - 0x1c]
push eax
push ecx
call fcn.0040665f
add esp, 0x48
lea edx, [ebp - 0x1c]
push edx
push str.rd__dwOption
push str._s____s
mov edx, 0x41e170
call fcn.00402160
mov ecx, dword [esi + 0x6c]
push 0x10
push 0x18
lea eax, [ebp - 0x1c]
push eax
push ecx
call fcn.0040665f
lea edx, [ebp - 0x1c]
push edx
push str.rd__samDesired
push str._s____s
mov edx, 0x41e170
call fcn.00402160
mov ecx, dword [esi + 0x98]
push 0xa
push 0x18
lea eax, [ebp - 0x1c]
push eax
push ecx
call fcn.0040665f
lea edx, [ebp - 0x1c]
push edx
push str.rd__dataType
push str._s____s
mov edx, 0x41e170
call fcn.00402160
mov ecx, dword [esi + 0x164]
add esp, 0x44
push 0xa
push 0x18
lea eax, [ebp - 0x1c]
push eax
push ecx
call fcn.0040665f
lea edx, [ebp - 0x1c]
push edx
push str.rd__dataLength
push str._s____s
mov edx, 0x41e170
call fcn.00402160
mov eax, dword [ebp + 8]
add eax, 0xfffffff5
add esp, 0x1c
cmp eax, 3
ja case.default.0x4034ad
jmp dword [eax*4 + 0x4035d4]
mov eax, dword [esi + 0x6c]
mov ecx, dword [esi + 0x68]
mov edx, dword [esi]
lea ebx, [ebp - 0x24]
push ebx
lea ebx, [ebp - 0x20]
push ebx
push 0
push eax
push ecx
push 0
push 0
lea edi, [esi + 4]
push edi
push edx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x4034e1
cmp dword [ebp - 0x24], 2
jne 0x403514
mov eax, dword [esi + 0x164]
mov edx, dword [esi + 0x98]
push eax
lea ecx, [esi + 0x9c]
push ecx
push edx
mov edx, dword [esi]
lea eax, [esi + 0x70]
push eax
mov ecx, edi
call fcn.004020b0
add esp, 0x10
test eax, eax
je 0x40352a
mov ecx, dword [ebp - 0x20]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop edi
mov eax, 0x2258
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00405593
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 0x20]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop edi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00405593
mov esp, ebp
pop ebp
ret
mov ecx, dword [esi]
lea eax, [esi + 4]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
pop esi
pop edi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00405593
mov esp, ebp
pop ebp
ret
lea edx, [esi + 0x70]
push edx
mov edx, dword [esi]
lea ecx, [esi + 4]
call fcn.00402010
add esp, 4
pop esi
pop edi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00405593
mov esp, ebp
pop ebp
ret
mov edx, dword [esi]
lea eax, [ebp + 0x10]
push eax
lea ecx, [esi + 0x70]
push ebx
push ecx
lea ecx, [esi + 4]
call fcn.00402060
add esp, 0xc
test eax, eax
jne 0x403514
pop esi
pop edi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00405593
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
mov eax, 0x2258
pop ebx
call fcn.00405593
mov esp, ebp
pop ebp
ret