Function at 0x467b00
Capabilities:
Delete registry value
Set registry value
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c8fa0
mov eax, dword fs:[0]
push eax
sub esp, 0x28
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 esi, ecx
xor ebx, ebx
mov dword [ebp - 4], ebx
cmp dword [ebp + 0xc], ebx
je 0x467e4a
push str.Inside_ProcessDownloadedBuffer_n
call fcn.00423960
mov eax, dword [esi + 4]
add esp, 4
mov dword [ebp - 0x34], 0xc
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], ebx
cmp dword [eax - 4], 1
jle 0x467b6a
mov eax, dword [eax - 0xc]
push eax
lea ecx, [esi + 4]
call fcn.00402490
mov edi, dword [esi + 4]
push ebx
push 0x80
push 4
lea ecx, [ebp - 0x34]
push ecx
push 1
push 4
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, ebx
jne 0x467bb1
push str.File_Handle_is_NULL_n
call fcn.00423ad0
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
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
cmp edi, 0xffffffff
jne 0x467bdd
push str.Invalid_File_Handle_n
call fcn.00423ad0
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
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
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
push ebx
lea edx, [ebp - 0x14]
push edx
push eax
push ecx
push edi
mov dword [ebp - 0x14], ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x467c32
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push str.ProcessDownloadedBuffer_:__Error_in_WriteFile______lu__n
call fcn.00423ad0
add esp, 8
push edi
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
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
mov edx, dword [ebp + 0xc]
add dword [esi + 0x44], edx
push str.File_updated_with_data._n
adc dword [esi + 0x48], ebx
call fcn.00423960
add esp, 4
push edi
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [esi + 0x54], bl
jne 0x467e4a
mov eax, dword [0x513fec]
mov edx, dword [eax + 0xc]
mov ecx, 0x513fec
call edx
add eax, 0x10
mov dword [ebp + 0xc], eax
mov eax, dword [str.SoftwareAdventNetDesktopCentralDCAgent]
push eax
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 1
call fcn.00401340
push str.FileMetaData_
lea ecx, [ebp + 0xc]
call fcn.0040f700
mov eax, dword [esi + 0x20]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea ecx, [ebp + 0xc]
call fcn.00411c00
mov edi, dword [ebp + 0xc]
cmp dword [edi - 4], 1
jle 0x467cbb
mov ecx, dword [edi - 0xc]
push ecx
lea ecx, [ebp + 0xc]
call fcn.004014b0
mov edi, dword [ebp + 0xc]
push edi
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.00478840
add esp, 8
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
cmp dword [edi - 4], 1
mov byte [ebp - 4], 2
jle 0x467ceb
mov edx, dword [edi - 0xc]
push edx
lea ecx, [ebp + 0xc]
call fcn.004014b0
mov edi, dword [ebp + 0xc]
push 0x2001f
push edi
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0x28]
call fcn.0045ba60
test eax, eax
jne 0x467e32
mov edi, dword [esi + 0x34]
add edi, dword [esi + 0x44]
mov ebx, dword [esi + 0x38]
adc ebx, dword [esi + 0x48]
mov ecx, dword [ebp - 0x28]
push 8
lea eax, [ebp - 0x1c]
push eax
push 0xb
push 0
push str.PartialFileSize
push ecx
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], ebx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push ebx
push edi
push str.updated_registry_entries___llu__n
call fcn.00423960
mov edx, dword [esi + 0x18]
add esp, 0xc
push 1
push edx
push str.LastModifiedTime
lea ecx, [ebp - 0x28]
call fcn.00464010
call fcn.0045e0f0
lea ecx, [ebp + 8]
push ecx
push eax
mov dword [ebp - 0x18], eax
mov dword [ebp + 8], 0
call fcn.00462840
mov edx, dword [ebp + 8]
add esp, 8
push 1
push edx
push str.LastRetryTime
lea ecx, [ebp - 0x28]
call fcn.00464010
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x467d92
push eax
call fcn.0048efd8
add esp, 4
mov eax, dword [ebp + 8]
test eax, eax
je 0x467da9
push eax
call fcn.0048efd8
add esp, 4
mov dword [ebp + 8], 0
mov eax, dword [esi + 0x59]
mov dword [0x515e48], eax
mov dword [0x515e4c], 0
cmp dword [esi + 0x59], 0
je 0x467dde
push 0
push 0x64
push ebx
push edi
call fcn.00494aa0
mov ecx, dword [esi + 0x59]
push 0
push ecx
push edx
push eax
call fcn.00497cd0
mov dword [0x515e40], eax
cmp byte [ebp + 0x10], 0
jne 0x467e32
mov ecx, dword [esi + 0x28]
mov edx, dword [esi + 0x18]
push ecx
push edx
push ebx
push edi
push str.updated_registry_entries_size___llu_and_last_modified_time__S_retry_time__d_n
call fcn.00423db0
inc dword [esi + 0x28]
mov eax, dword [esi + 0x28]
mov edi, dword [ebp - 0x28]
add esp, 0x14
push 4
mov dword [ebp + 0x10], eax
lea eax, [ebp + 0x10]
push eax
push 4
push 0
push str.RetryCount
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push str.downloadInProgress
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov ecx, dword [esi + 0x28]
mov dword [0x515e44], ecx
lea ecx, [ebp - 0x28]
call fcn.0040ebd0
lea ecx, [ebp - 0x28]
call fcn.0040ebb0
lea ecx, [ebp + 0xc]
call fcn.00401ed0
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