Function at 0x1005d88
Capabilities:
Delete registry value
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
xor ebx, ebx
push esi
mov esi, dword [ebp + 8]
cmp esi, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x1005dcc
push 0x57
call fcn.01002093
mov eax, dword [sym.imp.msvcrt.dll__iob]
push 0x20000
add eax, 0x40
push eax
call fcn.0100b4f9
push 0x57
pop eax
jmp 0x100605b
push edi
push 1
push 0xce
call fcn.0100b4a7
cmp dword [esi + 0x14], 1
mov dword [ebp - 0x18], eax
jne 0x1005ded
mov edi, dword [esi + 0x40]
push ebx
push 0xcc
jmp 0x1005e1c
mov eax, dword [esi + 0x44]
cmp eax, ebx
je 0x100603d
push ebx
push eax
call fcn.01009813
test eax, eax
jne 0x1005e12
push ebx
push 0x1f5
call fcn.0100b4a7
mov edi, eax
jmp 0x1005e15
mov edi, dword [esi + 0x44]
push 2
push 0xcd
call fcn.0100b4a7
mov dword [ebp + 8], eax
push dword [esi + 0x10]
push dword [ebp - 0x18]
push edi
push dword [ebp + 8]
call fcn.01001c89
cmp eax, 2
jg 0x1005e24
jne 0x1005e5f
mov esi, 0x4c7
push esi
call fcn.01002093
mov eax, dword [sym.imp.msvcrt.dll__iob]
push 0x20000
add eax, 0x20
push eax
call fcn.0100b4f9
mov eax, esi
jmp 0x100605a
lea eax, [ebp - 8]
push eax
push 0xf003f
push ebx
push dword [esi + 0x3c]
push dword [esi + 4]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, eax
cmp edi, ebx
jne 0x1005e93
call fcn.0100b5ae
cmp eax, ebx
mov dword [ebp - 0x18], eax
jne 0x1005eb3
lea eax, [ebp - 8]
push eax
call fcn.01001b65
push 0xe
pop edi
push edi
call fcn.01002093
mov eax, dword [sym.imp.msvcrt.dll__iob]
push 0x20001
add eax, 0x40
push eax
call fcn.0100b4f9
mov eax, edi
jmp 0x100605a
mov eax, dword [esi + 0x44]
cmp eax, ebx
je 0x1005ecb
push eax
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov edi, eax
jmp 0x1005ff6
cmp dword [esi + 0x14], 1
jne 0x1005ff6
push ebx
push ebx
push ebx
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x14]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov edi, eax
cmp edi, ebx
jne 0x1005ff6
cmp dword [ebp - 0x14], ebx
je 0x1005ff6
inc dword [ebp - 0xc]
mov eax, dword [ebp - 0xc]
lea eax, [eax + eax + 4]
push eax
call fcn.010099e1
cmp eax, ebx
mov dword [ebp - 0x10], eax
jne 0x1005f21
push 0xe
pop edi
jmp 0x1005ff6
xor edi, edi
xor esi, esi
cmp dword [ebp - 0x14], ebx
mov dword [ebp + 8], ebx
jbe 0x1005f74
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 4], eax
add eax, eax
cmp eax, ebx
je 0x1005f42
mov byte [ecx], bl
inc ecx
dec eax
jne 0x1005f3c
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x10]
push edi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
mov esi, eax
cmp esi, ebx
jne 0x1005fbd
push ebx
push dword [ebp - 0x10]
push dword [ebp - 0x18]
call fcn.0100ba41
cmp eax, 0xffffffff
jne 0x1005fc5
push 0xe
pop esi
mov dword [ebp + 8], esi
lea eax, [ebp - 0x10]
push eax
call fcn.01009f4b
push dword [ebp - 0x18]
call fcn.0100b64e
cmp esi, 0xe
mov edi, eax
je 0x1005ff3
cmp edi, ebx
je 0x1005ff3
xor esi, esi
cmp edi, ebx
mov dword [ebp - 4], ebx
mov dword [ebp + 8], ebx
jbe 0x1005ff3
push esi
push dword [ebp - 0x18]
call fcn.0100bc80
push eax
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
cmp eax, ebx
je 0x1005fd1
cmp dword [ebp + 8], ebx
jne 0x1005fd4
mov dword [ebp + 8], eax
jmp 0x1005fd4
cmp dword [ebp + 8], ebx
jne 0x1005fc5
mov dword [ebp + 8], esi
inc edi
cmp edi, dword [ebp - 0x14]
jb 0x1005f2d
jmp 0x1005f74
inc dword [ebp - 4]
inc esi
cmp esi, edi
jb 0x1005f9c
cmp dword [ebp - 4], ebx
je 0x1005ff3
cmp edi, dword [ebp - 0x14]
jne 0x1005fec
cmp dword [ebp - 4], edi
jne 0x1005fec
xor edi, edi
jmp 0x1005ff6
mov edi, 0x80030201
jmp 0x1005ff6
mov edi, dword [ebp + 8]
lea eax, [ebp - 8]
push eax
call fcn.01001b65
cmp edi, ebx
je 0x1006025
cmp edi, 0x80030201
jne 0x1005e93
push ebx
push 0x8d
call fcn.0100b4a7
push eax
call fcn.0100965b
jmp 0x1005e99
push ebx
call fcn.01002093
mov eax, dword [sym.imp.msvcrt.dll__iob]
push 0x20000
add eax, 0x20
jmp 0x1005ea6
push 0x57
call fcn.01002093
mov eax, dword [sym.imp.msvcrt.dll__iob]
push 0x20000
add eax, 0x40
push eax
call fcn.0100b4f9
push 0x57
pop eax
pop edi
pop esi
pop ebx
leave
ret 4