Function at 0x402680
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x814
mov eax, dword [0x579ec0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x814]
push eax
push ebx
mov esi, ecx
push 0
mov ecx, edi
call fcn.004012f0
mov eax, dword [ebp + 0x10]
sub eax, 2
je 0x402836
dec eax
jne 0x402932
lea ecx, [ebp - 0x808]
push ecx
push ebx
push 1
mov ecx, edi
call fcn.004012f0
test eax, eax
jne 0x402932
mov edx, dword [ebp - 0x814]
push edx
mov ecx, esi
call fcn.00402200
mov ebx, eax
test ebx, ebx
je 0x4027d5
mov eax, dword [ebp + 0xc]
push eax
mov ecx, edi
call fcn.00401340
mov ecx, dword [ebp - 0x808]
push ecx
push 0
cmp eax, 2
jle 0x4027b4
call fcn.00403450
add esp, 8
lea edx, [ebp - 0x80c]
push edx
push 2
push 0
mov esi, eax
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push esi
mov ebx, eax
call fcn.00406873
add esp, 4
test ebx, ebx
jne 0x402932
mov ecx, dword [ebp + 0xc]
lea eax, [ebp - 0x810]
push eax
push ecx
mov ebx, 2
push ebx
mov ecx, edi
call fcn.004012f0
test eax, eax
jne 0x4027a2
lea esp, [esp]
mov edx, dword [ebp - 0x810]
push edx
push 0
call fcn.00403450
add esp, 8
mov esi, eax
mov eax, dword [ebp - 0x80c]
push esi
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push esi
call fcn.00406873
mov edx, dword [ebp + 0xc]
add esp, 4
lea ecx, [ebp - 0x810]
push ecx
push edx
inc ebx
push ebx
mov ecx, edi
call fcn.004012f0
test eax, eax
je 0x402760
mov eax, dword [ebp - 0x80c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x402932
call fcn.00403450
add esp, 8
mov edi, eax
push edi
push ebx
mov ecx, esi
call fcn.00402350
push edi
call fcn.00406873
add esp, 4
jmp 0x402932
mov edx, dword [ebp - 0x814]
push edx
push 0
call fcn.00403450
mov esi, eax
push esi
lea eax, [ebp - 0x804]
push 0x52eea0
push eax
call fcn.00401900
add esp, 0x14
call fcn.00406889
test eax, eax
je 0x40280e
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0x74]
call eax
jmp 0x402810
xor eax, eax
mov edx, dword [eax + 0x20]
push 0x30
push 0x52ee98
lea ecx, [ebp - 0x804]
push ecx
push edx
call dword [sym.imp.USER32.dll_MessageBoxW]
push esi
call fcn.00406873
add esp, 4
jmp 0x402932
lea eax, [ebp - 0x808]
push eax
push ebx
push 1
mov ecx, edi
call fcn.004012f0
test eax, eax
jne 0x402932
mov ecx, dword [ebp - 0x814]
push ecx
mov dword [ebp - 0x80c], 3
call fcn.00506a65
add esp, 4
test eax, eax
je 0x402876
mov dword [ebp - 0x80c], 0x10003
mov ebx, dword [ebp - 0x808]
push ebx
mov ecx, esi
call fcn.00402500
mov dword [ebp - 0x810], eax
test eax, eax
js 0x402922
mov eax, dword [ebp + 0xc]
lea edx, [ebp - 0x808]
push edx
push eax
push 2
mov ecx, edi
call fcn.004012f0
test eax, eax
jne 0x402932
mov ecx, dword [esi + 0x32c]
mov edx, dword [ebp - 0x810]
push ecx
push 0x57b380
push edx
call fcn.00401a20
add esp, 0xc
test eax, eax
je 0x402932
mov edi, 0x57b380
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4028d3
mov ax, word [0x52ee94]
mov word [edi], ax
mov eax, dword [ebp - 0x808]
mov ecx, eax
lea esp, [esp]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x4028f0
mov edi, 0x57b380
sub eax, ecx
mov esi, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x402901
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
mov ebx, 0x57b380
rep movsb byte es:[edi], byte [esi]
mov dword [ebp - 0x808], ebx
mov ecx, dword [ebp - 0x80c]
push ecx
push ebx
call fcn.00401df0
add esp, 8
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.0050629a
mov esp, ebp
pop ebp
ret 0xc