Function at 0x5ab360
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
sub esp, 0x10
push ebx
push ebp
push esi
push edi
lea eax, [esp + 0x1c]
push eax
mov esi, ecx
lea ecx, [esp + 0x18]
push ecx
push 0
push 0xf003f
push 0
push 0x66b96c
push 0
push str.SoftwareDownloadManagermaxID
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x14]
push eax
push 0
push 0
push str.maxID
push ecx
mov dword [esp + 0x30], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x5ab3c1
xor eax, eax
jmp 0x5ab3c5
mov eax, dword [esp + 0x10]
mov edx, dword [0x74f05c]
inc eax
xor cl, cl
mov dword [esp + 0x10], eax
cmp edx, eax
jbe 0x5ab3df
lea eax, [edx + 1]
mov cl, 1
mov dword [esp + 0x10], eax
mov dword [esi + 0x4e0], eax
cdq
mov edi, 0x14
idiv edi
cmp edx, 7
jne 0x5ab3f4
mov cl, 1
cmp dword [0x743d1c], 0
je 0x5ab41a
test cl, cl
je 0x5ab41a
mov edx, dword [0x74f090]
push 0
push 0x14d8
push 0x111
push edx
call dword [sym.imp.USER32.dll_PostMessageA]
mov eax, dword [esi + 0x4e0]
cmp eax, dword [0x74f05c]
jle 0x5ab42d
mov dword [0x74f05c], eax
mov edi, dword [esp + 0x28]
test edi, edi
je 0x5ab448
mov eax, dword [esi + 0x4e0]
push 0
push 0
push eax
lea ecx, [esi + 0x20]
call fcn.005c75d0
mov edx, dword [esp + 0x14]
push 4
lea ecx, [esp + 0x14]
push ecx
push 4
push 0
push str.maxID
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [esp + 0x24], 0
je 0x5ab483
mov eax, dword [esi + 0x4e8]
mov ecx, dword [esi + 0x4ec]
jmp 0x5ab487
xor eax, eax
xor ecx, ecx
push ecx
mov ecx, dword [esp + 0x14]
push eax
lea ebx, [esi + 0x20]
push ecx
mov ecx, ebx
call fcn.005c5db0
mov edx, dword [esp + 0x10]
push edx
mov ecx, ebx
call fcn.005c2eb0
mov eax, dword [esi + 0xc8]
test eax, eax
jne 0x5ab4b6
cmp dword [esi + 0xab4], eax
je 0x5ab4ce
mov ecx, dword [esi + 0x4e0]
mov edx, dword [esi + 0xab4]
push 0
push ecx
push eax
push edx
mov ecx, ebx
call fcn.005bf430
test edi, edi
jne 0x5ab62c
cmp dword [esi + 0x50], edi
je 0x5ab62c
cmp dword [esi + 0x4c], edi
je 0x5ab62c
lea ebp, [esi + 0x518]
test ebp, ebp
je 0x5ab62c
cmp dword [esi + 0x498], edi
jne 0x5ab512
mov eax, dword [esp + 0x10]
push eax
mov ecx, ebx
call fcn.005c2b90
test al, al
je 0x5ab67c
mov edx, dword [esi + 0x50]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test edx, edx
je 0x5ab567
mov eax, edx
lea edi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x5ab524
sub eax, edi
sar eax, 1
je 0x5ab567
mov eax, edx
lea edi, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x5ab540
sub eax, edi
sar eax, 1
lea ecx, [eax + eax + 2]
push ecx
push edx
mov edx, dword [esi + 0x498]
push 1
push 0
push 0x67975c
push edx
call ebx
mov edx, dword [esi + 0x4c]
test edx, edx
je 0x5ab5b7
mov eax, edx
lea edi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x5ab573
sub eax, edi
sar eax, 1
je 0x5ab5b7
mov eax, edx
lea edi, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x5ab590
mov ecx, dword [esi + 0x498]
sub eax, edi
sar eax, 1
lea eax, [eax + eax + 2]
push eax
push edx
push 1
push 0
push str.LocalPath
push ecx
call ebx
mov eax, ebp
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x5ab5c0
sub eax, edx
sar eax, 1
je 0x5ab5fd
mov eax, ebp
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x5ab5d6
sub eax, edx
sar eax, 1
lea edx, [eax + eax + 2]
mov eax, dword [esi + 0x498]
push edx
push ebp
push 1
push 0
push str.LogFileName
push eax
call ebx
cmp dword [esi + 0x4f4], 0
lea eax, [esi + 0x4f0]
jl 0x5ab62c
jg 0x5ab613
cmp dword [eax], 0
jbe 0x5ab62c
mov ecx, dword [esi + 0x498]
push 8
push eax
push 0
push 0
push 0x68d064
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
cmp dword [esp + 0x24], 0
je 0x5ab67c
cmp dword [esi + 0x4f4], 0
lea edi, [esi + 0x4f0]
jl 0x5ab67c
jg 0x5ab649
cmp dword [edi], 0
jbe 0x5ab67c
cmp dword [esi + 0x498], 0
jne 0x5ab663
mov edx, dword [esp + 0x10]
push edx
lea ecx, [esi + 0x20]
call fcn.005c2b90
test al, al
je 0x5ab67c
mov eax, dword [esi + 0x498]
push 8
push edi
push 0
push 0
push 0x68d064
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 8