Function at 0x467c10
Capabilities:
Get file size
Query or enumerate registry key
Query or enumerate registry value
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x5b9cb8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x78
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x2c], esi
call fcn.00467990
mov eax, dword [0x67da2c]
mov dword [esp + 0x18], eax
mov ecx, dword [esi + 0x14c]
xor ebx, ebx
mov dword [esp + 0x44], ebx
mov dword [esp + 0x48], ebx
mov edx, dword [ecx + 0x400]
lea eax, [esp + 0x18]
push edx
push str.SoftwareDownloadManager_ld
push eax
mov dword [esp + 0x9c], ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], ebx
call fcn.00599a28
add esp, 0xc
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x40]
lea edx, [esp + 0x10]
push ecx
mov edi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
push edx
push ebx
push 0xf003f
push ebx
push 0x681f78
push ebx
push eax
push reloc.WSOCK32.dll_accept
call edi
test eax, eax
jne 0x4682a2
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegFlushKey]
push ebx
lea edx, [esp + 0x18]
push ebx
mov eax, dword [esp + 0x18]
push edx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
jne 0x4682a2
mov ecx, dword [esp + 0x14]
inc ecx
push ecx
call fcn.0059cff9
mov esi, eax
add esp, 4
cmp esi, ebx
mov dword [esp + 0x1c], esi
jne 0x467cfe
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4682a2
mov ecx, dword [esp + 0x10]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [esp + 0x14]
push eax
push esi
push ebx
push ebx
push 0x65d538
push ecx
call ebp
test eax, eax
je 0x467d35
push esi
call fcn.0059d022
mov edx, dword [esp + 0x14]
add esp, 4
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4682a2
mov eax, dword [0x67da2c]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x14]
lea edx, [esp + 0x3c]
push ecx
push edx
push ebx
push ebx
push str.TPswitch
push eax
mov byte [esp + 0xa8], 1
mov esi, 1
mov dword [esp + 0x2c], 4
call ebp
test eax, eax
jne 0x467de4
mov eax, dword [esp + 0x3c]
cmp eax, 4
mov esi, eax
jne 0x467de4
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x14]
lea edx, [esp + 0x4c]
push ecx
push edx
push ebx
push ebx
push str.Duration
push eax
mov dword [esp + 0x2c], 8
call ebp
test eax, eax
je 0x467dbb
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.0059d022
mov edx, dword [esp + 0x14]
add esp, 4
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x468292
fld qword [esp + 0x4c]
fmul qword [0x5d8a58]
call fcn.00584d08
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], edx
mov dword [ecx + 0x130], eax
mov dword [ecx + 0x134], edx
jmp 0x467e43
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x14]
lea ecx, [esp + 0x44]
push eax
push ecx
push ebx
push ebx
push str.FileSize
push edx
mov dword [esp + 0x2c], 8
call ebp
test eax, eax
jne 0x467e16
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x48]
mov edx, eax
or edx, ecx
jne 0x467e33
mov eax, dword [esp + 0x1c]
push eax
call fcn.0059d022
mov ecx, dword [esp + 0x14]
add esp, 4
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x468292
mov edx, dword [esp + 0x2c]
mov dword [edx + 0x130], eax
mov dword [edx + 0x134], ecx
lea edx, [esp + 0x40]
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x20]
push edx
push eax
push ebx
push 0xf003f
push ebx
push 0x681f78
push ebx
push str.ChList
push ecx
call edi
test eax, eax
je 0x467e87
mov edx, dword [esp + 0x1c]
push edx
call fcn.0059d022
mov eax, dword [esp + 0x14]
add esp, 4
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x468292
cmp esi, 4
jne 0x468036
mov eax, dword [esp + 0x20]
lea ecx, [esp + 0x14]
lea edx, [esp + 0x64]
push ecx
push edx
push ebx
push ebx
push 0x65d508
push eax
mov dword [esp + 0x2c], 0x10
call ebp
test eax, eax
je 0x467eda
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.0059d022
mov edx, dword [esp + 0x14]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add esp, 4
push edx
call esi
mov eax, dword [esp + 0x20]
push eax
call esi
jmp 0x468292
mov dword [esp + 0x28], ebx
mov ecx, dword [esp + 0x64]
lea edx, [esp + 0x4c]
push ecx
push str._dkf
push edx
xor esi, esi
xor edi, edi
call fcn.005851fa
add esp, 0xc
lea eax, [esp + 0x30]
lea ecx, [esp + 0x74]
lea edx, [esp + 0x4c]
push eax
mov eax, dword [esp + 0x24]
push ecx
push ebx
push ebx
push edx
push eax
mov dword [esp + 0x48], 0x10
call ebp
cmp eax, ebx
jne 0x467f5e
mov eax, dword [esp + 0x7c]
cmp eax, 0xffffffff
jne 0x467f4c
mov eax, dword [esp + 0x70]
mov ecx, dword [esp + 0x38]
cmp ecx, eax
mov ecx, dword [esp + 0x6c]
jl 0x467f5e
jg 0x467f3e
cmp dword [esp + 0x34], ecx
jbe 0x467f5e
mov esi, dword [esp + 0x34]
mov edi, dword [esp + 0x38]
sub esi, ecx
sbb edi, eax
jmp 0x467f5e
mov ecx, dword [esp + 0x6c]
cmp eax, ecx
jbe 0x467f5a
sub eax, ecx
mov esi, eax
jmp 0x467f5c
xor esi, esi
xor edi, edi
mov eax, dword [esp + 0x64]
push 0x18
cmp eax, ebx
jne 0x467f9f
call fcn.0059cff9
add esp, 4
cmp eax, ebx
je 0x467f89
sub esi, 1
mov dword [eax], ebx
sbb edi, ebx
mov dword [eax + 8], esi
mov dword [eax + 0x10], ebx
mov dword [eax + 4], ebx
mov dword [eax + 0xc], edi
jmp 0x467f8b
xor eax, eax
mov ecx, dword [esp + 0x2c]
cmp eax, ebx
mov dword [ecx + 0x150], eax
je 0x468269
jmp 0x467fe5
call fcn.0059cff9
add esp, 4
cmp eax, ebx
je 0x467fd4
mov ebp, dword [esp + 0x6c]
mov edx, ebx
mov ecx, ebp
mov dword [eax], ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
add ecx, esi
adc edx, edi
sub ecx, 1
sbb edx, ebx
mov esi, ebx
mov dword [eax + 8], ecx
mov dword [eax + 0x10], ebx
mov dword [eax + 4], esi
mov dword [eax + 0xc], edx
jmp 0x467fd6
xor eax, eax
mov edx, dword [esp + 0x28]
cmp eax, ebx
mov dword [edx + 0x10], eax
je 0x468269
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x68]
cmp eax, 0xffffffff
je 0x468269
push eax
lea eax, [esp + 0x58]
push 0x659470
push eax
call fcn.005851fa
add esp, 0xc
lea ecx, [esp + 0x30]
lea edx, [esp + 0x64]
lea eax, [esp + 0x54]
push ecx
mov ecx, dword [esp + 0x24]
push edx
push ebx
push ebx
push eax
push ecx
mov dword [esp + 0x48], 0x10
call ebp
cmp eax, ebx
je 0x467ede
jmp 0x468269
mov ecx, dword [esp + 0x20]
lea edx, [esp + 0x14]
lea eax, [esp + 0x74]
push edx
push eax
push ebx
push ebx
mov esi, 0x10
push 0x65d508
push ecx
mov dword [esp + 0x2c], esi
call ebp
test eax, eax
jne 0x468269
mov edx, dword [esp + 0x1c]
push ebx
push ebx
push 3
push ebx
push 3
push closesocket
mov dword [esp + 0x2c], esi
push edx
xor esi, esi
xor edi, edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x4680cd
lea eax, [esp + 0x30]
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4680a6
cmp edi, ebx
jne 0x4680a6
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jne 0x4680b8
mov ecx, dword [esp + 0x30]
push 1
push ebx
push ebx
push ecx
call fcn.005870a0
add esi, eax
adc edi, edx
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp edi, ebx
jg 0x4680cd
jl 0x4680c9
cmp esi, ebx
jae 0x4680cd
xor esi, esi
xor edi, edi
push 0x18
call fcn.0059cff9
add esp, 4
cmp eax, ebx
je 0x4680f0
sub esi, 1
mov dword [eax], ebx
sbb edi, ebx
mov dword [eax + 8], esi
mov dword [eax + 0x10], ebx
mov dword [eax + 4], ebx
mov dword [eax + 0xc], edi
jmp 0x4680f2
xor eax, eax
mov edx, dword [esp + 0x2c]
cmp eax, ebx
mov dword [edx + 0x150], eax
je 0x468269
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x78]
cmp eax, 0xffffffff
je 0x468269
push eax
lea eax, [esp + 0x58]
push 0x659470
push eax
call fcn.005851fa
add esp, 0xc
lea ecx, [esp + 0x14]
lea edx, [esp + 0x74]
lea eax, [esp + 0x54]
push ecx
mov ecx, dword [esp + 0x24]
push edx
push ebx
push ebx
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, ebx
jne 0x468269
mov edx, dword [0x67da2c]
mov dword [esp + 0x28], edx
mov eax, dword [esp + 0x74]
mov ecx, dword [esp + 0x1c]
push eax
push ecx
lea edx, [esp + 0x30]
push str._s_ld
push edx
mov byte [esp + 0xa0], 2
call fcn.00599a28
mov eax, dword [esp + 0x38]
add esp, 0x10
push ebx
push ebx
push 3
push ebx
push 3
push closesocket
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x46822e
lea ecx, [esp + 0x30]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
xor ebp, ebp
cmp edi, 0xffffffff
jne 0x4681c3
cmp ebp, ebx
jne 0x4681c3
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jne 0x468244
mov edx, dword [esp + 0x30]
push 1
push ebx
push ebx
push edx
call fcn.005870a0
add edi, eax
push esi
adc ebp, edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x18
mov dword [esp + 0x94], 2
call fcn.0059cff9
add esp, 4
cmp eax, ebx
je 0x46821d
mov esi, dword [esp + 0x7c]
mov ecx, esi
add ecx, edi
mov edi, dword [esp + 0x80]
mov edx, edi
mov dword [eax], esi
adc edx, ebp
sub ecx, 1
sbb edx, ebx
mov dword [eax + 8], ecx
mov dword [eax + 0x10], ebx
mov dword [eax + 4], edi
mov dword [eax + 0xc], edx
jmp 0x46821f
xor eax, eax
mov ecx, dword [esp + 0x34]
cmp eax, ebx
mov dword [ecx + 0x10], eax
je 0x468258
mov dword [esp + 0x34], eax
lea ecx, [esp + 0x28]
mov byte [esp + 0x90], 1
call fcn.005a0c5d
jmp 0x468108
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp + 0x90], 1
jmp 0x468260
mov byte [esp + 0x90], 1
lea ecx, [esp + 0x28]
call fcn.005a0c5d
mov edx, dword [esp + 0x1c]
push edx
call fcn.0059d022
mov eax, dword [esp + 0x24]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add esp, 4
push eax
call esi
mov ecx, dword [esp + 0x10]
push ecx
call esi
mov edx, dword [esp + 0x2c]
mov byte [edx + 0xc], 1
lea ecx, [esp + 0x24]
mov byte [esp + 0x90], bl
call fcn.005a0c5d
lea ecx, [esp + 0x18]
mov dword [esp + 0x90], 0xffffffff
call fcn.005a0c5d
mov ecx, dword [esp + 0x88]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x84
ret