Function at 0x5ae4e0
Capabilities:
Delete file
Delete registry key
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x657f38
mov eax, dword fs:[0]
push eax
sub esp, 0x50
push ebx
push esi
push edi
mov eax, dword [0x7496c8]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov dword [ebp - 0x28], esi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x20], ebx
lea ecx, [ebp - 0x14]
call fcn.00402500
mov byte [ebp - 4], 1
cmp dword [esi + 0x4e0], ebx
jne 0x5ae54b
mov eax, dword [esi + 0xacc]
push eax
mov ecx, dword [esi + 0xac8]
push ecx
push str.SoftwareDownloadManagerGrabberStsProjects_ld_ld_
lea edx, [ebp - 0x14]
push edx
call fcn.00402f80
add esp, 0x10
xor edi, edi
cmp dword [esi + 0x4c], ebx
je 0x5ae55f
cmp word [esi + 0x518], bx
jne 0x5ae6bd
mov eax, dword [esi + 0x4e0]
cmp eax, ebx
je 0x5ae602
cmp dword [esi + 0x498], ebx
jne 0x5ae586
push eax
lea ecx, [esi + 0x20]
call fcn.005c2b90
test al, al
je 0x5ae65d
push ebx
push ebx
lea eax, [ebp - 0x18]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
mov ecx, dword [esi + 0x498]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
mov eax, dword [ebp - 0x18]
inc eax
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.005e76b2
add esp, 4
mov edi, eax
cmp edi, ebx
je 0x5ae65d
cmp word [esi + 0x518], bx
jne 0x5ae6bd
cmp dword [esi + 0x4e0], ebx
je 0x5ae67a
mov eax, dword [esi + 0x498]
cmp eax, ebx
je 0x5ae6c8
mov ecx, dword [ebp - 0x18]
lea edx, [ecx + ecx + 2]
mov dword [ebp - 0x1c], edx
lea ecx, [ebp - 0x1c]
push ecx
jmp 0x5ae69f
cmp dword [esi + 0xac8], ebx
je 0x5ae65d
cmp dword [esi + 0xacc], ebx
je 0x5ae65d
lea edx, [ebp - 0x20]
push edx
push 0xf003f
push ebx
mov eax, dword [ebp - 0x14]
push eax
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x5ae65d
mov dword [ebp - 0x18], ebx
push ebx
push ebx
lea ecx, [ebp - 0x18]
push ecx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
mov edx, dword [ebp - 0x20]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
cmp dword [ebp - 0x18], ebx
jne 0x5ae5a1
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x14]
call fcn.00402570
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [esi + 0xac8], ebx
je 0x5ae6c8
cmp dword [esi + 0xacc], ebx
je 0x5ae6c8
mov eax, dword [ebp - 0x20]
cmp eax, ebx
je 0x5ae6c8
mov edx, dword [ebp - 0x18]
lea ecx, [edx + edx + 2]
mov dword [ebp - 0x1c], ecx
lea edx, [ebp - 0x1c]
push edx
push edi
push ebx
push ebx
push str.LogFileName
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x5ae6c8
push edi
call fcn.00616da3
add esp, 4
jmp 0x5ae6c8
lea ecx, [esi + 0x514]
call fcn.00560790
mov eax, dword [0x74ea5c]
cmp eax, ebx
jne 0x5ae6d6
mov eax, 0x74ea60
push eax
call fcn.00615fe3
add esp, 4
mov eax, dword [esi + 0x4c]
cmp eax, ebx
jne 0x5ae77e
cmp dword [esi + 0x4e0], ebx
je 0x5ae732
mov eax, dword [esi + 0x498]
cmp eax, ebx
je 0x5ae79b
mov ecx, dword [ebp - 0x18]
lea edx, [ecx + ecx + 2]
mov dword [ebp - 0x1c], edx
lea ecx, [ebp - 0x1c]
push ecx
push edi
push ebx
push ebx
push str.LocalPath
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x5ae79b
push edi
call fcn.005ac9c0
push edi
call fcn.00617f24
add esp, 8
jmp 0x5ae79b
cmp dword [esi + 0xac8], ebx
je 0x5ae79b
cmp dword [esi + 0xacc], ebx
je 0x5ae79b
mov eax, dword [ebp - 0x20]
cmp eax, ebx
je 0x5ae79b
mov edx, dword [ebp - 0x18]
lea ecx, [edx + edx + 2]
mov dword [ebp - 0x1c], ecx
lea edx, [ebp - 0x1c]
push edx
push edi
push ebx
push ebx
push str.LocalPath
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x5ae79b
cmp byte [esi + 0xae3], bl
jne 0x5ae77b
push edi
call fcn.005ac9c0
add esp, 4
push edi
jmp 0x5ae793
cmp byte [esi + 0xae3], bl
jne 0x5ae78f
push eax
call fcn.005ac9c0
add esp, 4
mov eax, dword [esi + 0x4c]
push eax
call fcn.00617f24
add esp, 4
cmp edi, ebx
je 0x5ae7a8
push edi
call fcn.005e76a7
add esp, 4
cmp dword [esi + 0x4e0], ebx
je 0x5ae7ba
push ebx
mov ecx, esi
call fcn.005ab740
jmp 0x5ae821
cmp dword [esi + 0xac8], ebx
je 0x5ae821
cmp dword [esi + 0xacc], ebx
je 0x5ae821
mov eax, dword [ebp - 0x20]
cmp eax, ebx
je 0x5ae7d8
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x24]
call fcn.00402500
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x14]
push ecx
push str._sChList
lea edx, [ebp - 0x24]
push edx
call fcn.00402f80
add esp, 0xc
mov eax, dword [ebp - 0x24]
push eax
push 0x80000001
mov edi, dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
call edi
mov ecx, dword [ebp - 0x14]
push ecx
push 0x80000001
call edi
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x24]
call fcn.00402570
cmp dword [esi + 0x4e0], ebx
je 0x5ae8eb
mov eax, dword [esi + 0x3a0]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x5ae836
sub eax, edx
je 0x5ae877
mov eax, dword [esi + 0x3a0]
cmp dword [eax - 0xc], ebx
jge 0x5ae856
push 0x80070057
call fcn.00401090
mov al, byte [eax]
cmp al, 0x35
je 0x5ae8b9
mov eax, dword [esi + 0x3a0]
cmp dword [eax - 0xc], ebx
jge 0x5ae871
push 0x80070057
call fcn.00401090
mov al, byte [eax]
cmp al, 0x36
je 0x5ae8b9
mov eax, dword [esi + 0x3a4]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x5ae880
sub eax, edx
je 0x5ae8eb
mov eax, dword [esi + 0x3a4]
cmp dword [eax - 0xc], ebx
jge 0x5ae8a0
push 0x80070057
call fcn.00401090
cmp byte [eax], 0x35
je 0x5ae8b9
cmp dword [eax - 0xc], ebx
jge 0x5ae8b4
push 0x80070057
call fcn.00401090
cmp byte [eax], 0x36
jne 0x5ae8eb
lea ecx, [ebp - 0x5c]
call fcn.004ac300
mov byte [ebp - 4], 3
push ebx
mov edx, dword [esi + 0x4e0]
push edx
lea ecx, [ebp - 0x5c]
call fcn.004c3bb0
mov eax, dword [ebp - 0x58]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x5c]
call fcn.004ac360
mov byte [esi + 0x92c], bl
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x14]
call fcn.00402570
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret