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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c9350
mov eax, dword fs:[0]
push eax
sub esp, 0x34
push ebx
push esi
push edi
mov eax, dword [0x5142b0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov ebx, ecx
mov dword [ebp - 0x20], ebx
xor edi, edi
mov dword [ebp - 4], edi
push str.Inside_DownloadResumeHandler::Initialize_n
mov byte [ebp - 4], 3
call fcn.00423db0
add esp, 4
lea eax, [ebp + 8]
push eax
mov ecx, ebx
mov dword [ebx + 0x3c], edi
mov dword [ebx + 0x40], edi
call fcn.00404900
lea edx, [ebp + 0xc]
lea ecx, [ebx + 0x18]
push edx
call fcn.0040fa30
mov eax, dword [ebp + 0x10]
push eax
lea ecx, [ebx + 0xc]
call fcn.004075f0
mov eax, dword [ebx + 0xc]
mov dword [ebp - 0x18], edi
cmp dword [eax - 4], 1
jle 0x46c9f7
mov ecx, dword [eax - 0xc]
push ecx
lea ecx, [ebx + 0xc]
call fcn.00402490
mov esi, dword [ebx + 0xc]
lea edx, [ebp - 0x18]
push edx
push esi
call fcn.00462840
mov esi, dword [ebp - 0x18]
add esp, 8
lea ecx, [ebx + 0x24]
mov dword [ebp - 0x28], ecx
cmp esi, edi
jne 0x46ca18
xor eax, eax
jmp 0x46ca2b
mov eax, esi
lea edi, [eax + 1]
lea ecx, [ecx]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x46ca20
sub eax, edi
xor edi, edi
push eax
push esi
call fcn.00401700
mov eax, dword [ebp - 0x18]
cmp eax, edi
je 0x46ca45
push eax
call fcn.0048efd8
add esp, 4
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x40], edi
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x38], edi
mov eax, dword [0x513fec]
mov edx, dword [eax + 0xc]
mov ecx, 0x513fec
mov byte [ebp - 4], 4
call edx
add eax, 0x10
mov dword [ebp - 0x14], eax
mov edx, dword [str.SoftwareAdventNetDesktopCentralDCAgent]
mov byte [ebp - 4], 5
cmp edx, edi
jne 0x46ca79
xor eax, eax
jmp 0x46ca89
mov eax, edx
lea esi, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x46ca80
sub eax, esi
push eax
push edx
lea ecx, [ebp - 0x14]
call fcn.00401700
push 0xe
push str.FileMetaData_
lea ecx, [ebp - 0x14]
call fcn.00411c00
mov esi, dword [ebp - 0x14]
push 0x2001f
push esi
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0x40]
call fcn.0045ba60
cmp eax, edi
je 0x46ccd5
push str.failure_in_openeing_reg_key_n
call fcn.00423960
mov eax, dword [ebp - 0x40]
add esp, 4
cmp eax, edi
je 0x46cade
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x40], edi
cmp dword [esi - 4], 1
mov dword [ebp - 0x3c], edi
jle 0x46caf6
mov eax, dword [esi - 0xc]
push eax
lea ecx, [ebp - 0x14]
call fcn.004014b0
mov esi, dword [ebp - 0x14]
lea ecx, [ebp - 0x34]
push ecx
push edi
push 0xf003f
push edi
push edi
push esi
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0x40]
call fcn.00463f00
push str.DownloadRepository_
lea ecx, [ebx + 8]
call fcn.004075f0
push str.DownloadRepository_
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, dword [ebp - 0x40]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
inc eax
push eax
push str.DownloadRepository_
push 1
push 0
push str.IntermediateRepositoryName
push edi
call ebx
mov ecx, dword [ebp - 0x20]
call fcn.0046b560
mov eax, dword [ebp - 0x28]
mov edx, dword [ebp - 0x20]
mov ecx, dword [eax]
mov esi, dword [edx + 0x20]
xor eax, eax
test esi, esi
setne al
mov dword [ebp - 0x2c], ecx
test eax, eax
je 0x46cb7a
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edx, dword [ebp - 0x2c]
inc eax
push eax
push esi
push 1
push 0
push edx
push edi
call ebx
mov esi, dword [ebp - 0x20]
mov eax, dword [esi + 0x2c]
push 4
lea ecx, [ebp - 0x2c]
push ecx
push 4
push 0
push str.InterSaveByteLimit
push edi
mov dword [ebp - 0x2c], eax
call ebx
test edi, edi
je 0x46cba5
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor edi, edi
mov dword [ebp - 0x40], edi
mov edx, dword [ebp - 0x28]
mov eax, dword [edx]
push ecx
sub eax, 0x10
mov dword [ebp - 0x34], esp
mov ebx, esp
push eax
mov dword [ebp - 0x3c], 0
call fcn.00410850
add eax, 0x10
mov dword [ebx], eax
lea eax, [ebp - 0x1c]
add esp, 4
push eax
call fcn.004663b0
add esp, 8
mov eax, dword [ebp - 0x1c]
cmp dword [eax - 4], 1
mov byte [ebp - 4], 6
jle 0x46cbf0
mov ecx, dword [eax - 0xc]
push ecx
lea ecx, [ebp - 0x1c]
call fcn.004014b0
mov eax, dword [ebp - 0x1c]
mov edx, dword [esi + 0x20]
push edx
push eax
push str.Setting_variable_for_DOWNLOAD_FOLDER_and_url___S__id____d_n
call fcn.00423ad0
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
add esp, 0xc
mov byte [ebp - 4], 5
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x46cc25
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
mov byte [ebp - 4], 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x46cc48
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test edi, edi
je 0x46cc53
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
mov byte [ebp - 4], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x46cc76
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x46cc99
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp + 0x10]
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x46ccbf
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push str.reading_folder_info_n
call fcn.00423960
push 0x1ff
push 1
call fcn.00491e51
add esp, 0xc
lea ecx, [ebp - 0x2c]
push ecx
mov edi, eax
push edi
push str.IntermediateRepositoryName
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x2c], 0xff
call fcn.00463fa0
lea ecx, [ebx + 8]
test eax, eax
jne 0x46cd1e
push edi
call fcn.004075f0
mov esi, dword [ebp - 0x40]
jmp 0x46cd4d
push str.DownloadRepository_
call fcn.004075f0
push str.DownloadRepository_
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, dword [ebp - 0x40]
inc eax
push eax
push str.DownloadRepository_
push 1
push 0
push str.IntermediateRepositoryName
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push 0xff
push 0
push edi
call fcn.00492ac0
add esp, 0xc
lea edx, [ebp - 0x2c]
push edx
lea edi, [ebx + 0x2c]
push edi
lea eax, [ebp - 0x34]
push eax
push 0
push str.InterSaveByteLimit
push esi
mov dword [ebp - 0x2c], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x46cd86
mov ebx, eax
jmp 0x46cd93
mov ebx, dword [ebp - 0x34]
sub ebx, 4
neg ebx
sbb ebx, ebx
and ebx, 0xd
push str.reading_periodic_limit__info_n
call fcn.00423960
add esp, 4
test ebx, ebx
je 0x46cdc7
push 4
lea ecx, [ebp - 0x34]
push ecx
push 4
push 0
push str.InterSaveByteLimit
push esi
mov dword [edi], 0x100000
mov dword [ebp - 0x34], 0x100000
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edx, dword [edi]
mov ebx, dword [ebp - 0x20]
mov eax, dword [ebx + 8]
push edx
push eax
push str.Download_folder___S_tperiodic_save_limit___lu_n
call fcn.00423db0
mov ecx, dword [ebp - 0x1c]
push 0xff
push 0
push ecx
call fcn.00492ac0
mov eax, dword [ebx + 0xc]
add esp, 0x18
mov dword [ebp - 0x24], 0
cmp dword [eax - 4], 1
mov dword [ebp - 0x2c], 0xff
jle 0x46ce11
mov edx, dword [eax - 0xc]
push edx
lea ecx, [ebx + 0xc]
call fcn.00402490
mov edi, dword [ebx + 0xc]
lea eax, [ebp - 0x24]
push eax
push edi
call fcn.00462840
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x24]
add esp, 8
lea ecx, [ebp - 0x2c]
push ecx
push edx
push eax
lea ecx, [ebp - 0x40]
call fcn.00463fa0
mov edi, eax
mov eax, dword [ebp - 0x24]
test eax, eax
je 0x46ce4e
push eax
call fcn.0048efd8
add esp, 4
mov dword [ebp - 0x24], 0
test edi, edi
jne 0x46cea8
mov edx, dword [ebp - 0x1c]
test edx, edx
jne 0x46ce5d
xor eax, eax
jmp 0x46ce6f
mov eax, edx
lea ecx, [eax + 1]
mov dword [ebp - 0x34], ecx
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x46ce65
sub eax, dword [ebp - 0x34]
push eax
push edx
lea ecx, [ebx + 0x20]
call fcn.00401700
mov ecx, ebx
call fcn.0046b560
mov edx, dword [ebx + 0x20]
push edx
push str.Unique_id_for_the_file_is__s_n
call fcn.00423db0
add esp, 8
mov ecx, ebx
call fcn.00467550
cmp byte [ebx + 0x54], 0
jne 0x46ced8
mov eax, dword [ebp - 0x28]
mov edi, dword [ebx + 0x20]
mov ebx, dword [eax]
jmp 0x46ceb7
mov ecx, ebx
call fcn.0046b560
mov ecx, dword [ebp - 0x28]
mov edi, dword [ebx + 0x20]
mov ebx, dword [ecx]
xor eax, eax
test edi, edi
setne al
test eax, eax
je 0x46ced8
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
push edi
push 1
push 0
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push str.ResumeGetRequestEx_:_To_update_download_count_n
mov dword [ebp - 0x30], 0
call fcn.00423db0
add esp, 4
lea edx, [ebp - 0x34]
push edx
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0x2c]
push ecx
push 0
push str.DownloadCount
push esi
mov dword [ebp - 0x34], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov eax, dword [ebp - 0x30]
push 4
lea edx, [ebp - 0x34]
push edx
push 4
push 0
inc eax
push str.DownloadCount
push esi
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x34], eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test esi, esi
je 0x46cf3d
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor esi, esi
mov dword [ebp - 0x40], esi
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x3c], 0
test eax, eax
je 0x46cf54
push eax
call fcn.0048efd8
add esp, 4
push str.End_of_DownloadResumeHandler::Initialize_n
call fcn.00423db0
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
add esp, 4
mov byte [ebp - 4], 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x46cf84
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test esi, esi
je 0x46cf8f
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
mov byte [ebp - 4], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x46cfb2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp + 0xc]
add eax, 0xfffffff0
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x46cfd5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp + 0x10]
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x46ccbf
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc