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

Disassembly:
sub esp, 0x10
push ebx
push ebp
push esi
mov esi, ecx
lea eax, [esp + 0x18]
push edi
lea ecx, [esp + 0x14]
push eax
push ecx
push 0
push 0xf003f
push 0
push 0x63e040
push 0
push str.SoftwareDownloadManagermaxID
push reloc.WSOCK32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x18]
lea eax, [esp + 0x10]
push edx
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 0x524281
xor eax, eax
jmp 0x524285
mov eax, dword [esp + 0x10]
mov ebx, dword [esp + 0x28]
inc eax
test ebx, ebx
mov dword [esp + 0x10], eax
mov dword [esi + 0x390], eax
je 0x5242a5
push 0
push 0
push eax
lea ecx, [esi + 0x20]
call fcn.0052ac10
mov eax, dword [esp + 0x14]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea edx, [esp + 0x10]
push 4
push edx
push 4
push 0
push str.maxID
push eax
call ebp
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x24]
test eax, eax
je 0x5242e3
mov eax, dword [esi + 0x398]
mov ecx, dword [esi + 0x39c]
jmp 0x5242e7
xor eax, eax
xor ecx, ecx
mov edx, dword [esp + 0x10]
lea edi, [esi + 0x20]
push ecx
push eax
push edx
mov ecx, edi
call fcn.0052b680
mov eax, dword [esp + 0x10]
mov ecx, edi
push eax
call fcn.0052a980
mov eax, dword [esi + 0xc8]
test eax, eax
jne 0x524318
mov ecx, dword [esi + 0x6f0]
test ecx, ecx
je 0x524330
mov ecx, dword [esi + 0x390]
mov edx, dword [esi + 0x6f0]
push 0
push ecx
push eax
push edx
mov ecx, edi
call fcn.0052aa10
test ebx, ebx
jne 0x524433
mov eax, dword [esi + 0x50]
test eax, eax
je 0x524433
mov eax, dword [esi + 0x4c]
test eax, eax
je 0x524433
lea ebx, [esi + 0x3b8]
test ebx, ebx
je 0x524433
mov eax, dword [esi + 0x350]
test eax, eax
jne 0x52437b
mov eax, dword [esp + 0x10]
lea ecx, [esi + 0x20]
push eax
call fcn.0052e8c0
test al, al
je 0x524482
mov edx, dword [esi + 0x50]
test edx, edx
je 0x5243ac
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x5243ac
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
push ecx
mov ecx, dword [esi + 0x350]
push edx
push 1
push eax
push str.LocalFileName
push ecx
call ebp
mov edx, dword [esi + 0x4c]
test edx, edx
je 0x5243dd
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x5243dd
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
push ecx
push edx
mov edx, dword [esi + 0x350]
push 1
push eax
push str.LocalPath
push edx
call ebp
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x524407
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
push ecx
push ebx
push 1
push eax
mov eax, dword [esi + 0x350]
push str.LogFileName
push eax
call ebp
mov ecx, dword [esi + 0x3a4]
lea eax, [esi + 0x3a0]
test ecx, ecx
jl 0x524433
jg 0x52441e
cmp dword [eax], 0
jbe 0x524433
mov ecx, dword [esi + 0x350]
push 8
push eax
push 0
push 0
push str.Downloaded
push ecx
call ebp
mov eax, dword [esp + 0x24]
test eax, eax
je 0x524482
mov eax, dword [esi + 0x3a4]
lea edi, [esi + 0x3a0]
test eax, eax
jl 0x524482
jg 0x524452
cmp dword [edi], 0
jbe 0x524482
mov eax, dword [esi + 0x350]
test eax, eax
jne 0x52446d
mov edx, dword [esp + 0x10]
lea ecx, [esi + 0x20]
push edx
call fcn.0052e8c0
test al, al
je 0x524482
mov eax, dword [esi + 0x350]
push 8
push edi
push 0
push 0
push str.Downloaded
push eax
call ebp
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 8