Function at 0x403c20
Capabilities:
Delete registry value
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x413df6
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x2264
call fcn.00412250
mov eax, dword [0x41e008]
xor eax, esp
mov dword [esp + 0x2260], eax
push ebx
push esi
push edi
mov eax, dword [0x41e008]
xor eax, esp
push eax
lea eax, [esp + 0x2278]
mov dword fs:[0], eax
mov eax, ecx
mov dword [esp + 0x14], eax
mov ecx, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], 0
mov ecx, dword [ebp + 0x14]
mov dword [esp + 0x60], ecx
mov ecx, eax
push edi
mov dword [esp + 0x2284], 0
call fcn.00403a90
mov esi, eax
test esi, esi
js 0x4042ad
cmp word [edi], 0x7d
je 0x40429c
jmp 0x403cc0
push 0x41a9f0
push edi
mov dword [esp + 0x3c], 1
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
neg eax
push 0x41aa00
sbb ebx, ebx
push edi
inc ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x403cf1
test ebx, ebx
je 0x403dea
mov ecx, dword [esp + 0x14]
push edi
call fcn.00403a90
mov esi, eax
test esi, esi
js 0x40429c
cmp dword [ebp + 0x10], 0
je 0x403dea
movzx eax, word [edi]
mov ecx, edi
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], 0
mov dword [esp + 0x30], 0
test ax, ax
je 0x403d52
cmp ax, 0x5c
je 0x403d4a
push ecx
call dword [sym.imp.USER32.dll_CharNextW]
mov ecx, eax
movzx eax, word [ecx]
test ax, ax
jne 0x403d31
jmp 0x403d52
test ecx, ecx
jne 0x404245
mov esi, 0x41b150
push dword [esi]
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x403da9
add esi, 4
cmp esi, str.RegOpenKeyTransactedW
jl 0x403d57
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x28]
push edi
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], 0
mov dword [esp + 0x34], 0
call fcn.004037b0
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], 0
mov dword [esp + 0x30], 0
test ebx, ebx
je 0x403de2
mov ebx, dword [esp + 0x14]
mov ecx, ebx
push edi
call fcn.00403a90
mov esi, eax
test esi, esi
js 0x404255
push edi
mov ecx, ebx
call fcn.00403650
mov esi, eax
test esi, esi
js 0x404255
mov dword [esp + 0x2c], 0
jmp 0x40400e
mov dword [esp + 0x2c], 0
push 0x41aa18
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
mov ebx, dword [esp + 0x14]
test eax, eax
jne 0x403e14
push edi
mov ecx, ebx
mov dword [esp + 0x38], eax
call fcn.00403a90
mov esi, eax
test esi, esi
js 0x40429c
push 0x41aa2c
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x403f62
lea eax, [esp + 0x26c]
mov ecx, ebx
push eax
call fcn.00403a90
mov esi, eax
test esi, esi
js 0x40429c
push edi
mov ecx, ebx
call fcn.00403a90
mov esi, eax
test esi, esi
js 0x40429c
cmp word [edi], 0x3d
jne 0x40424e
cmp dword [ebp + 0x10], 0
je 0x403ecf
mov eax, dword [esp + 0x18]
mov ecx, ebx
mov byte [esp + 0x2280], 1
mov dword [esp + 0x38], eax
lea eax, [esp + 0x26c]
push edi
push eax
lea eax, [esp + 0x40]
mov dword [esp + 0x44], 0
push eax
mov dword [esp + 0x4c], 0
call fcn.004031c0
mov esi, eax
mov dword [esp + 0x38], 0
mov dword [esp + 0x3c], 0
mov dword [esp + 0x40], 0
test esi, esi
js 0x404260
mov byte [esp + 0x2280], 0
mov dword [esp + 0x3c], 0
jmp 0x40400e
cmp dword [ebp + 0x14], 0
jne 0x403f4b
cmp dword [esp + 0x34], 0
je 0x403f4b
push 0x20006
push 0
push dword [esp + 0x20]
lea ecx, [esp + 0x50]
mov dword [esp + 0x50], 0
mov dword [esp + 0x54], 0
mov dword [esp + 0x58], 0
call fcn.00403700
test eax, eax
jne 0x40426b
mov esi, dword [esp + 0x44]
lea eax, [esp + 0x26c]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
je 0x403f30
cmp eax, 2
jne 0x40426b
test esi, esi
je 0x403f43
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x44], 0
mov dword [esp + 0x48], 0
push edi
mov ecx, ebx
call fcn.00403650
mov esi, eax
test esi, esi
js 0x40429c
jmp 0x404239
movzx eax, word [edi]
mov ecx, edi
test ax, ax
je 0x403f91
lea esp, [esp]
cmp ax, 0x5c
je 0x403f89
push ecx
call dword [sym.imp.USER32.dll_CharNextW]
mov ecx, eax
movzx eax, word [ecx]
test ax, ax
jne 0x403f70
jmp 0x403f91
test ecx, ecx
jne 0x40424e
cmp dword [ebp + 0x10], 0
je 0x40406a
mov esi, dword [esp + 0x18]
lea ecx, [esp + 0x1c]
push 0x2001f
push edi
push esi
call fcn.00403700
test eax, eax
je 0x403fdd
push 0x20019
push edi
push esi
lea ecx, [esp + 0x28]
call fcn.00403700
test eax, eax
je 0x403fdd
sub esp, 0x14
lea ecx, [esp + 0x30]
push edi
push esi
call fcn.00402eb0
test eax, eax
jne 0x404293
push edi
mov ecx, ebx
call fcn.00403a90
mov esi, eax
test esi, esi
js 0x40429c
cmp word [edi], 0x3d
jne 0x40400e
push edi
push 0
lea eax, [esp + 0x24]
mov ecx, ebx
push eax
call fcn.004031c0
mov esi, eax
test esi, esi
js 0x40429c
cmp word [edi], 0x7b
jne 0x404239
mov ecx, edi
lea edx, [ecx + 2]
lea ecx, [ecx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x404020
sub ecx, edx
sar ecx, 1
cmp ecx, 1
jne 0x404239
push 0
push dword [ebp + 0x10]
mov ecx, ebx
push dword [esp + 0x24]
push edi
call fcn.00403c20
mov esi, eax
test esi, esi
js 0x40429c
push edi
mov ecx, ebx
call fcn.00403a90
mov esi, eax
test esi, esi
js 0x40429c
jmp 0x404239
cmp dword [ebp + 0x14], 0
jne 0x40408b
push 0x20019
push edi
push dword [esp + 0x20]
lea ecx, [esp + 0x28]
call fcn.00403700
mov ebx, eax
test ebx, ebx
jne 0x404090
jmp 0x404097
mov ebx, 2
mov dword [ebp + 0x14], 1
push 0xffffffffffffffff
push edi
lea eax, [esp + 0x6c]
push 0x104
push eax
call fcn.004063ea
push eax
call fcn.004035b0
mov ecx, dword [esp + 0x28]
add esp, 0x14
push edi
call fcn.00403a90
mov esi, eax
test esi, esi
js 0x40429c
mov ecx, dword [esp + 0x14]
push edi
call fcn.00403650
mov esi, eax
test esi, esi
js 0x40429c
cmp word [edi], 0x7b
jne 0x404130
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4040e5
sub ecx, edx
sar ecx, 1
cmp ecx, 1
jne 0x404130
push dword [ebp + 0x14]
mov ecx, dword [esp + 0x18]
push 0
push dword [esp + 0x24]
push edi
call fcn.00403c20
mov esi, eax
test esi, esi
jns 0x40411c
cmp dword [ebp + 0x14], 0
je 0x40429c
mov ecx, dword [esp + 0x14]
push edi
call fcn.00403a90
mov esi, eax
test esi, esi
js 0x40429c
mov eax, dword [esp + 0x60]
mov dword [ebp + 0x14], eax
cmp ebx, 2
je 0x404239
test ebx, ebx
je 0x404153
test eax, eax
jne 0x404239
mov ecx, ebx
jmp 0x404295
test eax, eax
je 0x404194
push dword [esp + 0x1c]
call fcn.00403900
test eax, eax
je 0x404194
lea eax, [esp + 0x64]
push eax
call fcn.004036c0
test eax, eax
je 0x404239
cmp dword [esp + 0x34], 0
je 0x404239
lea eax, [esp + 0x64]
push eax
lea ecx, [esp + 0x20]
call fcn.004037b0
jmp 0x404239
push 0
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [esp + 0x78]
mov dword [esp + 0x78], 0
push eax
push 0
push 0
push 0
push dword [esp + 0x48]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
je 0x4041c7
xor ebx, ebx
jmp 0x4041d1
xor eax, eax
cmp eax, dword [esp + 0x5c]
sbb ebx, ebx
neg ebx
mov ecx, dword [esp + 0x1c]
xor eax, eax
test ecx, ecx
je 0x4041e8
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ecx, ecx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], 0
test eax, eax
jne 0x404293
cmp dword [esp + 0x34], eax
je 0x404239
test ebx, ebx
jne 0x404239
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x50]
mov dword [esp + 0x50], eax
lea eax, [esp + 0x64]
push eax
mov dword [esp + 0x58], ebx
mov dword [esp + 0x5c], ebx
call fcn.004039a0
mov dword [esp + 0x50], ebx
mov dword [esp + 0x54], ebx
mov dword [esp + 0x58], ebx
test eax, eax
jne 0x40427f
lea ecx, [esp + 0x50]
call fcn.00403980
cmp word [edi], 0x7d
jne 0x403cc0
jmp 0x40429c
lea ecx, [esp + 0x28]
call fcn.00403980
mov esi, 0x80020009
jmp 0x40429c
lea ecx, [esp + 0x28]
call fcn.00403980
jmp 0x40429c
lea ecx, [esp + 0x38]
call fcn.00403980
jmp 0x40429c
mov ecx, eax
call fcn.00403a80
lea ecx, [esp + 0x44]
mov esi, eax
call fcn.00403980
jmp 0x40429c
mov ecx, eax
call fcn.00403a80
lea ecx, [esp + 0x50]
mov esi, eax
call fcn.00403980
jmp 0x40429c
mov ecx, eax
call fcn.00403a80
mov esi, eax
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x4042ab
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [esp + 0x2278]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x2260]
xor ecx, esp
call fcn.004063db
mov esp, ebp
pop ebp
ret 0x10