Function at 0x5ba400
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 0x665628
mov eax, dword fs:[0]
push eax
sub esp, 0x50
push ebx
push esi
push edi
mov eax, dword [0x758898]
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.00402510
mov byte [ebp - 4], 1
cmp dword [esi + 0x4f8], ebx
jne 0x5ba46b
mov eax, dword [esi + 0xae4]
push eax
mov ecx, dword [esi + 0xae0]
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 0x5ba47f
cmp word [esi + 0x530], bx
jne 0x5ba5dd
mov eax, dword [esi + 0x4f8]
cmp eax, ebx
je 0x5ba522
cmp dword [esi + 0x4ac], ebx
jne 0x5ba4a6
push eax
lea ecx, [esi + 0x20]
call fcn.005cee30
test al, al
je 0x5ba57d
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 + 0x4ac]
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.005f4522
add esp, 4
mov edi, eax
cmp edi, ebx
je 0x5ba57d
cmp word [esi + 0x530], bx
jne 0x5ba5dd
cmp dword [esi + 0x4f8], ebx
je 0x5ba59a
mov eax, dword [esi + 0x4ac]
cmp eax, ebx
je 0x5ba5e8
mov ecx, dword [ebp - 0x18]
lea edx, [ecx + ecx + 2]
mov dword [ebp - 0x1c], edx
lea ecx, [ebp - 0x1c]
push ecx
jmp 0x5ba5bf
cmp dword [esi + 0xae0], ebx
je 0x5ba57d
cmp dword [esi + 0xae4], ebx
je 0x5ba57d
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 0x5ba57d
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 0x5ba4c1
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.00402580
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 + 0xae0], ebx
je 0x5ba5e8
cmp dword [esi + 0xae4], ebx
je 0x5ba5e8
mov eax, dword [ebp - 0x20]
cmp eax, ebx
je 0x5ba5e8
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 0x5ba5e8
push edi
call fcn.00623da3
add esp, 4
jmp 0x5ba5e8
lea ecx, [esi + 0x52c]
call fcn.0056ab70
mov eax, dword [0x75dc38]
cmp eax, ebx
jne 0x5ba5f6
mov eax, 0x75dc3c
push eax
call fcn.00622fe3
add esp, 4
mov eax, dword [esi + 0x4c]
cmp eax, ebx
jne 0x5ba69e
cmp dword [esi + 0x4f8], ebx
je 0x5ba652
mov eax, dword [esi + 0x4ac]
cmp eax, ebx
je 0x5ba6bb
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 0x5ba6bb
push edi
call fcn.005b88d0
push edi
call fcn.00624f28
add esp, 8
jmp 0x5ba6bb
cmp dword [esi + 0xae0], ebx
je 0x5ba6bb
cmp dword [esi + 0xae4], ebx
je 0x5ba6bb
mov eax, dword [ebp - 0x20]
cmp eax, ebx
je 0x5ba6bb
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 0x5ba6bb
cmp byte [esi + 0xafb], bl
jne 0x5ba69b
push edi
call fcn.005b88d0
add esp, 4
push edi
jmp 0x5ba6b3
cmp byte [esi + 0xafb], bl
jne 0x5ba6af
push eax
call fcn.005b88d0
add esp, 4
mov eax, dword [esi + 0x4c]
push eax
call fcn.00624f28
add esp, 4
cmp edi, ebx
je 0x5ba6c8
push edi
call fcn.005f4517
add esp, 4
cmp dword [esi + 0x4f8], ebx
je 0x5ba6da
push ebx
mov ecx, esi
call fcn.005b7650
jmp 0x5ba741
cmp dword [esi + 0xae0], ebx
je 0x5ba741
cmp dword [esi + 0xae4], ebx
je 0x5ba741
mov eax, dword [ebp - 0x20]
cmp eax, ebx
je 0x5ba6f8
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp - 0x24]
call fcn.00402510
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.00402580
cmp dword [esi + 0x4f8], ebx
je 0x5ba80b
mov eax, dword [esi + 0x3b4]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x5ba756
sub eax, edx
je 0x5ba797
mov eax, dword [esi + 0x3b4]
cmp dword [eax - 0xc], ebx
jge 0x5ba776
push 0x80070057
call fcn.00401090
mov al, byte [eax]
cmp al, 0x35
je 0x5ba7d9
mov eax, dword [esi + 0x3b4]
cmp dword [eax - 0xc], ebx
jge 0x5ba791
push 0x80070057
call fcn.00401090
mov al, byte [eax]
cmp al, 0x36
je 0x5ba7d9
mov eax, dword [esi + 0x3b8]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x5ba7a0
sub eax, edx
je 0x5ba80b
mov eax, dword [esi + 0x3b8]
cmp dword [eax - 0xc], ebx
jge 0x5ba7c0
push 0x80070057
call fcn.00401090
cmp byte [eax], 0x35
je 0x5ba7d9
cmp dword [eax - 0xc], ebx
jge 0x5ba7d4
push 0x80070057
call fcn.00401090
cmp byte [eax], 0x36
jne 0x5ba80b
lea ecx, [ebp - 0x5c]
call fcn.004b48c0
mov byte [ebp - 4], 3
push ebx
mov edx, dword [esi + 0x4f8]
push edx
lea ecx, [ebp - 0x5c]
call fcn.004cc5e0
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.004b4920
mov byte [esi + 0x944], bl
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x14]
call fcn.00402580
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