Function at 0x594e6c
Capabilities:
Delete registry value
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff84
push ebx
push esi
push edi
xor eax, eax
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x64], eax
mov dword [ebp - 0x60], eax
mov dword [ebp - 4], eax
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], eax
xor eax, eax
push ebp
push 0x595689
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x5dba5c]
mov eax, dword [eax + 0x2c]
mov eax, dword [eax + 8]
dec eax
test eax, eax
jl 0x59563f
inc eax
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x30], 0
mov eax, dword [0x5dba5c]
mov eax, dword [eax + 0x2c]
mov edx, dword [ebp - 0x30]
call fcn.0043e738
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x44]
mov eax, dword [eax + 0x10]
push eax
mov eax, dword [ebp - 0x44]
mov eax, dword [eax + 0x14]
push eax
mov eax, dword [ebp - 0x44]
mov eax, dword [eax + 0x18]
push eax
mov eax, dword [ebp - 0x44]
mov ecx, dword [eax + 0xc]
mov edx, dword [0x5db9ec]
mov edx, dword [edx]
mov eax, dword [0x5dc090]
mov eax, dword [eax]
call fcn.005b6828
test al, al
je 0x595633
mov edx, dword [ebp - 0x30]
mov al, 0xb
call fcn.005bc45c
mov eax, dword [ebp - 0x44]
mov eax, dword [eax + 0x20]
call fcn.005b6190
mov eax, dword [ebp - 0x44]
mov eax, dword [eax + 0x38]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 1
jne 0x594f37
mov eax, dword [0x5dc0b0]
mov eax, dword [eax]
mov dword [ebp - 0x18], eax
lea edx, [ebp - 0x10]
mov eax, dword [ebp - 0x44]
mov eax, dword [eax]
call fcn.005ba134
lea edx, [ebp - 4]
mov eax, dword [ebp - 0x44]
mov eax, dword [eax + 4]
call fcn.005ba134
mov eax, dword [0x5dbfcc]
movzx eax, byte [eax]
mov byte [ebp - 0x29], al
mov eax, dword [ebp - 0x44]
test byte [eax + 0x40], 4
je 0x594f70
cmp byte [ebp - 0x29], 1
je 0x594f70
mov byte [ebp - 0x29], 1
mov eax, dword [ebp - 0x44]
test byte [eax + 0x40], 8
je 0x594f97
mov eax, dword [0x5dba44]
cmp byte [eax], 0
jne 0x594f8d
mov eax, 0x5956a4
call fcn.0054c87c
cmp byte [ebp - 0x29], 2
je 0x594f97
mov byte [ebp - 0x29], 2
mov byte [ebp - 0x31], 0
xor edx, edx
push ebp
push 0x5954f4
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 0x44]
test byte [eax + 0x3f], 0x40
je 0x594fd4
mov eax, dword [ebp - 0x10]
call fcn.00594cac
test al, al
je 0x594fd4
mov eax, dword [ebp - 0x10]
call fcn.0040a87c
mov ecx, eax
movzx eax, byte [ebp - 0x29]
mov edx, dword [ebp - 0x18]
call fcn.0050fd30
mov eax, dword [ebp - 0x44]
test byte [eax + 0x3f], 0x40
je 0x594fea
mov eax, dword [ebp - 0x44]
cmp byte [eax + 0x3e], 0
je 0x5954ea
mov eax, dword [ebp - 0x44]
test byte [eax + 0x3f], 0x80
je 0x595042
mov eax, dword [ebp - 0x44]
cmp byte [eax + 0x3e], 0
jne 0x595042
push 0
push 2
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x10]
call fcn.0040a87c
mov ecx, eax
movzx eax, byte [ebp - 0x29]
mov edx, dword [ebp - 0x18]
call fcn.0050fc70
test eax, eax
jne 0x5954ea
mov eax, dword [ebp - 4]
call fcn.0040a87c
push eax
mov eax, dword [ebp - 0x1c]
push eax
call sub.advapi32.dll_RegDeleteValueW
mov eax, dword [ebp - 0x1c]
push eax
call sub.advapi32.dll_RegCloseKey
jmp 0x5954ea
mov eax, dword [ebp - 0x44]
movzx eax, word [eax + 0x3c]
cmp ax, 0xffff
je 0x595062
movsx eax, ax
push eax
movzx eax, byte [ebp - 0x29]
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x18]
call fcn.00594cd8
mov eax, dword [ebp - 0x44]
test byte [eax + 0x40], 2
jne 0x5950e3
push 0
push 0
push 0
push 3
push 0
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x20]
push eax
mov eax, dword [ebp - 0x10]
call fcn.0040a87c
mov ecx, eax
movzx eax, byte [ebp - 0x29]
mov edx, dword [ebp - 0x18]
call fcn.0050fc38
mov ebx, eax
test ebx, ebx
jne 0x5950ca
cmp dword [ebp - 0x20], 1
jne 0x595133
mov eax, dword [ebp - 0x44]
cmp word [eax + 0x3c], 0xffff
je 0x595133
mov eax, dword [ebp - 0x44]
movsx eax, word [eax + 0x3c]
push eax
movzx eax, byte [ebp - 0x29]
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x18]
call fcn.00594cd8
jmp 0x595133
mov eax, dword [ebp - 0x44]
test byte [eax + 0x40], 1
jne 0x595133
push ebx
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x18]
mov al, 1
call fcn.0058e81c
jmp 0x595133
mov eax, dword [ebp - 0x44]
cmp byte [eax + 0x3e], 0
je 0x59512e
push 0
push 3
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x10]
call fcn.0040a87c
mov ecx, eax
movzx eax, byte [ebp - 0x29]
mov edx, dword [ebp - 0x18]
call fcn.0050fc70
mov ebx, eax
test ebx, ebx
je 0x595133
cmp ebx, 2
je 0x595133
mov eax, dword [ebp - 0x44]
test byte [eax + 0x40], 1
jne 0x595133
push ebx
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x18]
mov al, 2
call fcn.0058e81c
jmp 0x595133
mov ebx, 2
test ebx, ebx
jne 0x5954ea
xor edx, edx
push ebp
push 0x5954e3
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 0x44]
test byte [eax + 0x3f], 0x80
je 0x595164
mov eax, dword [ebp - 4]
call fcn.0040a87c
push eax
mov eax, dword [ebp - 0x1c]
push eax
call sub.advapi32.dll_RegDeleteValueW
mov eax, dword [ebp - 0x44]
cmp byte [eax + 0x3e], 0
je case.0x5951a7.0
mov eax, dword [ebp - 0x44]
test byte [eax + 0x3f], 1
je 0x595194
mov eax, dword [ebp - 4]
call fcn.0040a87c
mov edx, eax
mov eax, dword [ebp - 0x1c]
call fcn.0050fc18
test al, al
jne case.0x5951a7.0
mov eax, dword [ebp - 0x44]
movzx eax, byte [eax + 0x3e]
movzx edx, al
cmp edx, 6
ja case.0x5951a7.0
jmp dword [edx*4 + 0x5951ae]
mov ebx, 1
mov edx, eax
sub dl, 2
je 0x5951dd
sub dl, 3
je 0x5951e4
jmp 0x5951e9
mov ebx, 2
jmp 0x5951e9
mov ebx, 7
cmp al, 5
je 0x59528d
mov eax, dword [ebp - 0x44]
mov edx, dword [eax + 8]
mov ecx, 1
mov eax, 0x59572c
call fcn.0040adf0
test eax, eax
je 0x595223
mov eax, dword [ebp - 4]
call fcn.0040a87c
mov edx, eax
lea ecx, [ebp - 0xc]
mov eax, dword [ebp - 0x1c]
call fcn.0050fc00
test al, al
jne 0x59522b
lea eax, [ebp - 0xc]
call fcn.00409840
mov eax, dword [ebp - 0x44]
test byte [eax + 0x3f], 0x20
je 0x595263
push 0
push 0
lea eax, [ebp - 0x24]
push eax
push 0
mov eax, dword [ebp - 4]
call fcn.0040a87c
push eax
mov eax, dword [ebp - 0x1c]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x595263
cmp dword [ebp - 0x24], 1
je 0x595260
cmp dword [ebp - 0x24], 2
jne 0x595263
mov ebx, dword [ebp - 0x24]
lea eax, [ebp - 8]
push eax
mov eax, 0x59574c
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x48], eax
lea edx, [ebp - 0x4c]
mov eax, dword [ebp - 0x44]
mov eax, dword [eax + 8]
mov ecx, 1
call fcn.005ba158
jmp 0x595322
mov eax, dword [ebp - 0x44]
mov edx, dword [eax + 8]
mov ecx, 1
mov eax, 0x59572c
call fcn.0040adf0
test eax, eax
je 0x5952bf
mov eax, dword [ebp - 4]
call fcn.0040a87c
mov edx, eax
lea ecx, [ebp - 0xc]
mov eax, dword [ebp - 0x1c]
call fcn.0050fc0c
test al, al
jne 0x5952c7
lea eax, [ebp - 0xc]
call fcn.00409840
lea eax, [ebp - 8]
push eax
mov eax, 0x59574c
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x58], eax
mov eax, 0x595768
mov dword [ebp - 0x54], eax
mov eax, 0x595780
mov dword [ebp - 0x50], eax
lea edx, [ebp - 0x5c]
mov eax, dword [ebp - 0x44]
mov eax, dword [eax + 8]
mov ecx, 3
call fcn.005ba158
cmp dword [ebp - 8], 0
je 0x595322
mov eax, dword [ebp - 8]
call fcn.00409d60
mov edx, dword [ebp - 8]
cmp word [edx + eax*2 - 2], 0
je 0x595322
lea eax, [ebp - 8]
mov edx, 0x595780
call fcn.0040aa74
mov eax, dword [ebp - 8]
call fcn.00409d60
inc eax
add eax, eax
push eax
mov eax, dword [ebp - 8]
call fcn.0040a87c
push eax
push ebx
push 0
mov eax, dword [ebp - 4]
call fcn.0040a87c
push eax
mov eax, dword [ebp - 0x1c]
push eax
call sub.advapi32.dll_RegSetValueExW
mov ebx, eax
test ebx, ebx
je case.0x5951a7.0
mov eax, dword [ebp - 0x44]
test byte [eax + 0x40], 1
jne case.0x5951a7.0
push ebx
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x18]
xor eax, eax
call fcn.0058e81c
jmp case.0x5951a7.0
lea edx, [ebp - 0x60]
mov eax, dword [ebp - 0x44]
mov eax, dword [eax + 8]
call fcn.005ba134
mov eax, dword [ebp - 0x60]
call fcn.0041d2fc
mov dword [ebp - 0x28], eax
push 4
lea eax, [ebp - 0x28]
push eax
push 4
push 0
mov eax, dword [ebp - 4]
call fcn.0040a87c
push eax
mov eax, dword [ebp - 0x1c]
push eax
call sub.advapi32.dll_RegSetValueExW
mov ebx, eax
test ebx, ebx
je case.0x5951a7.0
mov eax, dword [ebp - 0x44]
test byte [eax + 0x40], 1
jne case.0x5951a7.0
push ebx
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x18]
xor eax, eax
call fcn.0058e81c
jmp case.0x5951a7.0
lea edx, [ebp - 0x64]
mov eax, dword [ebp - 0x44]
mov eax, dword [eax + 8]
call fcn.005ba134
mov eax, dword [ebp - 0x64]
lea edx, [ebp - 0x3c]
call fcn.00512368
test al, al
jne 0x5953fc
mov eax, 0x595790
call fcn.0054c87c
push 8
lea eax, [ebp - 0x3c]
push eax
push 0xb
push 0
mov eax, dword [ebp - 4]
call fcn.0040a87c
push eax
mov eax, dword [ebp - 0x1c]
push eax
call sub.advapi32.dll_RegSetValueExW
mov ebx, eax
test ebx, ebx
je case.0x5951a7.0
mov eax, dword [ebp - 0x44]
test byte [eax + 0x40], 1
jne case.0x5951a7.0
push ebx
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x18]
xor eax, eax
call fcn.0058e81c
jmp case.0x5951a7.0
lea eax, [ebp - 0x14]
call fcn.00409864
mov eax, dword [ebp - 0x44]
mov eax, dword [eax + 8]
call fcn.00409d60
mov ebx, eax
test ebx, ebx
jle 0x595487
mov esi, 1
lea eax, [ebp - 0x68]
mov edx, dword [ebp - 0x44]
mov edx, dword [edx + 8]
movzx edx, word [edx + esi*2 - 2]
mov ecx, 0
call fcn.00409f6c
mov edx, dword [ebp - 0x68]
lea eax, [ebp - 0x14]
call fcn.0040a070
inc esi
dec ebx
jne 0x595460
mov eax, dword [ebp - 0x14]
call fcn.00409d78
push eax
mov eax, dword [ebp - 0x14]
call fcn.0040a2ec
push eax
push 3
push 0
mov eax, dword [ebp - 4]
call fcn.0040a87c
push eax
mov eax, dword [ebp - 0x1c]
push eax
call sub.advapi32.dll_RegSetValueExW
mov ebx, eax
test ebx, ebx
je case.0x5951a7.0
mov eax, dword [ebp - 0x44]
test byte [eax + 0x40], 1
jne case.0x5951a7.0
push ebx
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x18]
xor eax, eax
call fcn.0058e81c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5954ea
mov eax, dword [ebp - 0x1c]
push eax
call sub.advapi32.dll_RegCloseKey
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x59554a
cmp byte [ebp - 0x31], 0
jne 0x594f97
mov eax, dword [ebp - 0x44]
test byte [eax + 0x3f], 8
je 0x59558c
mov eax, dword [ebp - 0x10]
call fcn.00594cac
test al, al
je 0x59558c
mov eax, dword [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x7c], eax
lea eax, [ebp - 0x7c]
push eax
push 0
movzx ecx, byte [ebp - 0x29]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov dx, 0x86
call fcn.005667b0
mov eax, dword [ebp - 0x44]
test byte [eax + 0x3f], 0x10
je 0x5955c4
mov eax, dword [ebp - 0x10]
call fcn.00594cac
test al, al
je 0x5955c4
mov eax, dword [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x7c], eax
lea eax, [ebp - 0x7c]
push eax
push 0
movzx ecx, byte [ebp - 0x29]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov dx, 0x88
call fcn.005667b0
mov eax, dword [ebp - 0x44]
test byte [eax + 0x3f], 2
je 0x5955f6
mov eax, dword [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x48], eax
lea eax, [ebp - 0x4c]
push eax
push 1
movzx ecx, byte [ebp - 0x29]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov dx, 0x89
call fcn.005667b0
mov eax, dword [ebp - 0x44]
test byte [eax + 0x3f], 4
je 0x595628
mov eax, dword [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x48], eax
lea eax, [ebp - 0x4c]
push eax
push 1
movzx ecx, byte [ebp - 0x29]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 4]
mov dx, 0x87
call fcn.005667b0
mov eax, dword [ebp - 0x44]
mov eax, dword [eax + 0x1c]
call fcn.005b61d4
inc dword [ebp - 0x30]
dec dword [ebp - 0x40]
jne 0x594ebf
mov eax, 0x3e8
call fcn.0058de44
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x595690
lea eax, [ebp - 0x78]
call fcn.00409840
lea eax, [ebp - 0x68]
call fcn.00409864
lea eax, [ebp - 0x64]
mov edx, 2
call fcn.004098a0
lea eax, [ebp - 0x14]
call fcn.00409864
lea eax, [ebp - 0x10]
mov edx, 4
call fcn.004098a0
ret