Function at 0x5b7250
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 0x67997c
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 0x5b72b1
xor eax, eax
jmp 0x5b72b5
mov eax, dword [esp + 0x10]
mov edx, dword [0x75e250]
inc eax
xor cl, cl
mov dword [esp + 0x10], eax
cmp edx, eax
jbe 0x5b72cf
lea eax, [edx + 1]
mov cl, 1
mov dword [esp + 0x10], eax
mov dword [esi + 0x4f8], eax
mov eax, dword [esi + 0x340]
test eax, eax
je 0x5b72e5
mov dword [eax + 0x348], esi
mov eax, dword [esi + 0x4f8]
cdq
mov edi, 0x14
idiv edi
cmp edx, 7
jne 0x5b72fa
mov cl, 1
cmp dword [0x752d2c], 0
je 0x5b7320
test cl, cl
je 0x5b7320
mov edx, dword [0x75e284]
push 0
push 0x14d8
push 0x111
push edx
call dword [sym.imp.USER32.dll_PostMessageA]
mov eax, dword [esi + 0x4f8]
cmp eax, dword [0x75e250]
jle 0x5b7333
mov dword [0x75e250], eax
mov edi, dword [esp + 0x28]
test edi, edi
je 0x5b734e
mov eax, dword [esi + 0x4f8]
push 0
push 0
push eax
lea ecx, [esi + 0x20]
call fcn.005d3980
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 0x5b7389
mov eax, dword [esi + 0x500]
mov ecx, dword [esi + 0x504]
jmp 0x5b738d
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.005d2110
mov edx, dword [esp + 0x10]
push edx
mov ecx, ebx
call fcn.005cf150
mov eax, dword [esi + 0xc8]
test eax, eax
jne 0x5b73bc
cmp dword [esi + 0xacc], eax
je 0x5b73d4
mov ecx, dword [esi + 0x4f8]
mov edx, dword [esi + 0xacc]
push 0
push ecx
push eax
push edx
mov ecx, ebx
call fcn.005cb660
test edi, edi
jne 0x5b7536
cmp dword [esi + 0x50], edi
je 0x5b7536
cmp dword [esi + 0x4c], edi
je 0x5b7536
lea ebp, [esi + 0x530]
test ebp, ebp
je 0x5b7536
cmp dword [esi + 0x4ac], edi
jne 0x5b7418
mov eax, dword [esp + 0x10]
push eax
mov ecx, ebx
call fcn.005cee30
test al, al
je 0x5b7586
mov edx, dword [esi + 0x50]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test edx, edx
je 0x5b746d
mov eax, edx
lea edi, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x5b7430
sub eax, edi
sar eax, 1
je 0x5b746d
mov eax, edx
lea edi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x5b7446
sub eax, edi
sar eax, 1
lea ecx, [eax + eax + 2]
push ecx
push edx
mov edx, dword [esi + 0x4ac]
push 1
push 0
push 0x687b9c
push edx
call ebx
mov edx, dword [esi + 0x4c]
test edx, edx
je 0x5b74bd
mov eax, edx
lea edi, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x5b7480
sub eax, edi
sar eax, 1
je 0x5b74bd
mov eax, edx
lea edi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x5b7496
mov ecx, dword [esi + 0x4ac]
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]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x5b74c2
sub eax, edx
sar eax, 1
je 0x5b7507
mov eax, ebp
lea edx, [eax + 2]
jmp 0x5b74e0
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x5b74e0
sub eax, edx
sar eax, 1
lea edx, [eax + eax + 2]
mov eax, dword [esi + 0x4ac]
push edx
push ebp
push 1
push 0
push str.LogFileName
push eax
call ebx
cmp dword [esi + 0x50c], 0
lea eax, [esi + 0x508]
jl 0x5b7536
jg 0x5b751d
cmp dword [eax], 0
jbe 0x5b7536
mov ecx, dword [esi + 0x4ac]
push 8
push eax
push 0
push 0
push 0x69b69c
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
cmp dword [esp + 0x24], 0
je 0x5b7586
cmp dword [esi + 0x50c], 0
lea edi, [esi + 0x508]
jl 0x5b7586
jg 0x5b7553
cmp dword [edi], 0
jbe 0x5b7586
cmp dword [esi + 0x4ac], 0
jne 0x5b756d
mov edx, dword [esp + 0x10]
push edx
lea ecx, [esi + 0x20]
call fcn.005cee30
test al, al
je 0x5b7586
mov eax, dword [esi + 0x4ac]
push 8
push edi
push 0
push 0
push 0x69b69c
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