Function at 0x404d60
Capabilities:
Delete registry key
Delete registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x411526
mov eax, dword fs:[0]
push eax
sub esp, 0x438
mov eax, dword [0x417060]
xor eax, esp
mov dword [esp + 0x430], eax
push ebx
push esi
push edi
mov eax, dword [0x417060]
xor eax, esp
push eax
lea eax, [esp + 0x448]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
xor ebx, ebx
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], eax
mov dword [esp + 0x18], ebx
mov edx, dword [ebp + 0x14]
mov eax, edi
mov dword [esp + 0x450], ebx
mov dword [esp + 0x28], edx
call fcn.00404c10
mov esi, eax
cmp esi, ebx
jl 0x405234
cmp word [edi], 0x7d
je 0x405232
lea ecx, [ecx]
mov esi, dword [0x412058]
push 0x41401c
push edi
mov dword [esp + 0x2c], 1
call esi
mov ebx, eax
neg ebx
push 0x413fe8
sbb ebx, ebx
push edi
add ebx, 1
call esi
test eax, eax
je 0x404e13
test ebx, ebx
je 0x404f0f
mov ecx, dword [esp + 0x1c]
mov eax, edi
call fcn.00404c10
mov esi, eax
test esi, esi
jl 0x405223
cmp dword [ebp + 0x10], 0
je 0x404f0f
movzx ecx, word [edi]
test cx, cx
mov eax, edi
je 0x404e5e
movzx ecx, cx
cmp cx, 0x5c
je 0x404e56
push eax
call dword [0x412200]
movzx ecx, word [eax]
test cx, cx
jne 0x404e3f
jmp 0x404e5e
test eax, eax
jne 0x4052fc
mov esi, 0x414310
mov eax, dword [esi]
push eax
push edi
call dword [0x412058]
test eax, eax
je 0x404e8e
add esi, 4
cmp esi, 0x414340
jl 0x404e63
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x14], ecx
push edi
lea ecx, [esp + 0x18]
call fcn.004059c0
test ebx, ebx
je 0x404f0f
mov ecx, dword [esp + 0x1c]
mov eax, edi
call fcn.00404c10
mov esi, eax
test esi, esi
jl 0x405223
mov ecx, dword [esp + 0x1c]
call fcn.00405910
mov esi, eax
test esi, esi
jl 0x405223
cmp word [edi], 0x7b
jne 0x404f00
push edi
call dword [0x412134]
cmp eax, 1
jne 0x404f00
mov eax, dword [ebp + 0x10]
mov ecx, dword [esp + 0x18]
mov ebx, dword [esp + 0x1c]
push 0
push eax
push ecx
push edi
mov ecx, ebx
call fcn.00404d60
mov esi, eax
test esi, esi
jl 0x405223
mov eax, edi
mov ecx, ebx
call fcn.00404c10
mov esi, eax
test esi, esi
jl 0x405223
cmp word [edi], 0x7d
jne 0x404de0
jmp 0x405223
push 0x414004
push edi
call dword [0x412058]
test eax, eax
jne 0x404f38
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x24], eax
mov eax, edi
call fcn.00404c10
mov esi, eax
test esi, esi
jl 0x405223
mov ebx, dword [esp + 0x1c]
push 0x413fdc
push edi
call dword [0x412058]
test eax, eax
jne 0x405037
lea eax, [esp + 0x234]
mov ecx, ebx
call fcn.00404c10
mov esi, eax
test esi, esi
jl 0x405223
mov eax, edi
mov ecx, ebx
call fcn.00404c10
mov esi, eax
test esi, esi
jl 0x405223
cmp word [edi], 0x3d
jne 0x4052fc
cmp dword [ebp + 0x10], 0
je 0x404fc8
mov edx, dword [esp + 0x20]
lea eax, [esp + 0x234]
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x454], 1
mov dword [esp + 0x18], edx
push ecx
mov ecx, edi
mov edx, ebx
call fcn.00405390
mov esi, eax
test esi, esi
jl 0x405223
mov byte [esp + 0x450], 0
jmp 0x404eba
cmp dword [ebp + 0x14], 0
jne 0x405029
cmp dword [esp + 0x24], 0
je 0x405029
mov eax, dword [esp + 0x20]
lea edx, [esp + 0x14]
push edx
push 0x20006
push 0
push 0
push eax
mov dword [esp + 0x28], 0
call dword [0x412018]
test eax, eax
jne 0x40521c
mov ebx, dword [esp + 0x14]
lea ecx, [esp + 0x234]
push ecx
push ebx
call dword [0x412010]
test eax, eax
je 0x40501e
cmp eax, 2
jne 0x405315
test ebx, ebx
je 0x405029
push ebx
call dword [0x412008]
mov ecx, dword [esp + 0x1c]
call fcn.00405910
jmp 0x404ef6
movzx ecx, word [edi]
test cx, cx
mov eax, edi
je 0x405063
movzx ecx, cx
cmp cx, 0x5c
je 0x40505b
push eax
call dword [0x412200]
movzx ecx, word [eax]
test cx, cx
jne 0x405044
jmp 0x405063
test eax, eax
jne 0x4052fc
cmp dword [ebp + 0x10], 0
je 0x40512f
mov ebx, dword [esp + 0x20]
mov esi, dword [0x412018]
lea edx, [esp + 0x14]
push edx
push 0x2001f
push 0
push edi
push ebx
mov dword [esp + 0x28], 0
call esi
test eax, eax
jne 0x4050ae
mov ecx, dword [esp + 0x18]
test ecx, ecx
je 0x4050a2
push ecx
call dword [0x412008]
test eax, eax
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x18], ecx
je 0x4050f9
lea edx, [esp + 0x14]
push edx
push 0x20019
push 0
push edi
push ebx
mov dword [esp + 0x28], 0
call esi
test eax, eax
jne 0x4050e5
mov ecx, dword [esp + 0x18]
test ecx, ecx
je 0x4050d9
push ecx
call dword [0x412008]
test eax, eax
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x18], ecx
je 0x4050f9
push ebx
mov edx, edi
lea esi, [esp + 0x1c]
call fcn.00405340
test eax, eax
jne 0x40521c
mov ebx, dword [esp + 0x1c]
mov eax, edi
mov ecx, ebx
call fcn.00404c10
mov esi, eax
test esi, esi
jl 0x405223
cmp word [edi], 0x3d
jne 0x404eba
push 0
lea edx, [esp + 0x1c]
push edx
mov ecx, edi
mov edx, ebx
call fcn.00405390
jmp 0x404eb0
cmp dword [ebp + 0x14], 0
jne 0x40525a
mov ecx, dword [esp + 0x20]
lea eax, [esp + 0x14]
push eax
push 0x20019
push 0
push edi
push ecx
mov dword [esp + 0x28], 0
call dword [0x412018]
test eax, eax
jne 0x405174
mov ecx, dword [esp + 0x18]
test ecx, ecx
je 0x40516c
push ecx
call dword [0x412008]
mov edx, dword [esp + 0x14]
mov dword [esp + 0x18], edx
test eax, eax
mov dword [esp + 0x14], eax
je 0x405183
mov dword [ebp + 0x14], 1
push 0xffffffffffffffff
push edi
lea eax, [esp + 0x34]
push 0x104
push eax
call fcn.00406a8e
push eax
call fcn.00401160
add esp, 0x14
mov eax, edi
mov ecx, ebx
call fcn.00404c10
mov esi, eax
test esi, esi
jl 0x405223
mov ecx, ebx
call fcn.00405910
mov esi, eax
test esi, esi
jl 0x405223
cmp word [edi], 0x7b
jne 0x4051fa
push edi
call dword [0x412134]
cmp eax, 1
jne 0x4051fa
mov ecx, dword [ebp + 0x14]
mov edx, dword [esp + 0x18]
push ecx
push 0
push edx
push edi
mov ecx, ebx
call fcn.00404d60
mov esi, eax
test esi, esi
jge 0x4051eb
cmp dword [ebp + 0x14], 0
je 0x405223
mov eax, edi
mov ecx, ebx
call fcn.00404c10
mov esi, eax
test esi, esi
jl 0x405223
mov ecx, dword [esp + 0x14]
cmp ecx, 2
mov eax, dword [esp + 0x28]
mov dword [ebp + 0x14], eax
je 0x404f00
test ecx, ecx
je 0x405267
test eax, eax
jne 0x404f00
mov eax, ecx
call fcn.00405b70
mov esi, eax
mov eax, dword [esp + 0x18]
test eax, eax
je 0x405232
push eax
call dword [0x412008]
mov eax, esi
mov ecx, dword [esp + 0x448]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x430]
xor ecx, esp
call fcn.0040663d
mov esp, ebp
pop ebp
ret 0x10
mov dword [esp + 0x14], 2
jmp 0x40517c
test eax, eax
mov ebx, dword [esp + 0x18]
je 0x4052a7
mov ecx, ebx
call fcn.00405b10
test eax, eax
je 0x4052a7
lea ebx, [esp + 0x2c]
call fcn.00405980
test eax, eax
je 0x404f00
cmp dword [esp + 0x24], 0
je 0x404f00
mov eax, ebx
push eax
lea ecx, [esp + 0x1c]
call fcn.004059c0
jmp 0x404f00
mov ecx, ebx
call fcn.00405b10
test ebx, ebx
mov dword [esp + 0x14], eax
je 0x4052c9
push ebx
call dword [0x412008]
test eax, eax
mov dword [esp + 0x18], 0
jne 0x405330
cmp dword [esp + 0x24], 0
je 0x404f00
cmp dword [esp + 0x14], 0
jne 0x404f00
mov edx, dword [esp + 0x20]
lea ecx, [esp + 0x2c]
push ecx
push edx
call dword [section..rdata]
test eax, eax
jne 0x40521c
jmp 0x404f00
mov eax, dword [esp + 0x18]
test eax, eax
je 0x40530b
push eax
call dword [0x412008]
mov eax, 0x80020009
jmp 0x405234
call fcn.00405b70
test ebx, ebx
mov esi, eax
je 0x405223
push ebx
call dword [0x412008]
jmp 0x405223
call fcn.00405b70
jmp 0x405234