Function at 0x537914
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov byte [ebp - 0xd], cl
mov ebx, edx
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x537b5d
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 0x14], eax
lea edx, [ebp - 0x24]
mov eax, ebx
call fcn.0041d61c
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x53796b
sub eax, 4
mov eax, dword [eax]
test eax, eax
jne 0x537976
xor ebx, ebx
jmp 0x537b20
lea eax, [ebp - 8]
mov edx, ebx
call fcn.00406e88
mov eax, dword [ebp - 8]
cmp word [eax], 0x5c
jne 0x537996
lea eax, [ebp - 8]
call fcn.00406fe8
mov word [eax], 0x20
lea eax, [ebp - 0x30]
mov edx, dword [ebp - 8]
call fcn.004076b8
mov eax, dword [ebp - 0x30]
lea ecx, [ebp - 0x2c]
mov edx, 1
call fcn.00450848
mov eax, dword [ebp - 0x2c]
mov edx, 0x537b74
call fcn.0040751c
jne 0x5379db
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x5379cc
sub ebx, 4
mov ebx, dword [ebx]
lea eax, [ebp - 8]
call fcn.00406fe8
mov word [eax + ebx*2 - 2], 0x20
lea edx, [ebp - 0x34]
mov eax, dword [ebp - 8]
call fcn.0041d61c
mov edx, dword [ebp - 0x34]
lea eax, [ebp - 8]
call fcn.00406e88
cmp byte [ebp - 0xd], 1
jne 0x5379fe
mov edi, 0xf013f
jmp 0x537a03
mov edi, 0xf003f
lea eax, [ebp - 0x14]
push eax
push edi
push 0
mov eax, dword [ebp - 8]
call fcn.004075c4
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegOpenKeyExW_1
test eax, eax
sete bl
test bl, bl
je 0x537b20
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x1c]
push eax
push 0
push 0
push 0
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_RegQueryInfoKeyW
cmp dword [ebp - 0x1c], 0
je 0x537ada
mov esi, dword [ebp - 0x1c]
dec esi
cmp esi, 0
jb 0x537ada
mov eax, dword [ebp - 0x20]
inc eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 4]
mov edx, dword [ebp - 0x18]
call fcn.00407740
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp - 4]
call fcn.004075c4
push eax
push esi
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_RegEnumKeyExW
mov eax, dword [ebp - 4]
call fcn.004075c4
call fcn.0041e964
mov edx, eax
lea eax, [ebp - 4]
call fcn.00407740
push dword [ebp - 8]
push 0x537b84
push dword [ebp - 4]
lea eax, [ebp - 0x38]
mov edx, 3
call fcn.004078a0
mov edx, dword [ebp - 0x38]
movzx ecx, byte [ebp - 0xd]
mov eax, dword [ebp - 0xc]
call fcn.00537914
mov ebx, eax
test bl, bl
je 0x537ada
dec esi
cmp esi, 0xffffffff
jne 0x537a5f
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_RegCloseKey_1
test bl, bl
je 0x537b20
mov eax, dword [ebp - 8]
call fcn.004075c4
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegDeleteKeyW
test eax, eax
je 0x537b1e
cmp byte [ebp - 0xd], 1
jne 0x537b20
mov eax, dword [ebp - 8]
call fcn.004075c4
mov edx, eax
mov ecx, edi
mov eax, dword [ebp - 0xc]
call fcn.00537b88
test eax, eax
sete bl
jmp 0x537b20
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x537b64
lea eax, [ebp - 0x38]
mov edx, 2
call fcn.00406ac0
lea eax, [ebp - 0x30]
mov edx, 2
call fcn.00406b20
lea eax, [ebp - 0x24]
call fcn.00406a60
lea eax, [ebp - 8]
mov edx, 2
call fcn.00406ac0
ret