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

Disassembly:
push 0xffffffffffffffff
push 0x5b3838
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.004648b0
mov eax, dword [0x6754cc]
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.00593b08
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 0x679a18
push ebx
push eax
push reloc.WSOCK32.dll_accept
call edi
test eax, eax
jne 0x4651c4
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 0x4651c4
mov ecx, dword [esp + 0x14]
inc ecx
push ecx
call fcn.005970d9
mov esi, eax
add esp, 4
cmp esi, ebx
mov dword [esp + 0x1c], esi
jne 0x464c1e
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4651c4
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 0x6554a8
push ecx
call ebp
test eax, eax
je 0x464c55
push esi
call fcn.00597102
mov edx, dword [esp + 0x14]
add esp, 4
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4651c4
mov eax, dword [0x6754cc]
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 0x464d04
mov eax, dword [esp + 0x3c]
cmp eax, 4
mov esi, eax
jne 0x464d04
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 0x464cdb
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.00597102
mov edx, dword [esp + 0x14]
add esp, 4
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4651b4
fld qword [esp + 0x4c]
fmul qword [0x5d1a50]
call fcn.0057edf8
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 0x464d63
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 0x464d36
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x48]
mov edx, eax
or edx, ecx
jne 0x464d53
mov eax, dword [esp + 0x1c]
push eax
call fcn.00597102
mov ecx, dword [esp + 0x14]
add esp, 4
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4651b4
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 0x679a18
push ebx
push str.ChList
push ecx
call edi
test eax, eax
je 0x464da7
mov edx, dword [esp + 0x1c]
push edx
call fcn.00597102
mov eax, dword [esp + 0x14]
add esp, 4
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4651b4
cmp esi, 4
jne 0x464f58
mov eax, dword [esp + 0x20]
lea ecx, [esp + 0x14]
lea edx, [esp + 0x64]
push ecx
push edx
push ebx
push ebx
push 0x655478
push eax
mov dword [esp + 0x2c], 0x10
call ebp
test eax, eax
je 0x464dfa
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.00597102
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 0x4651b4
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.0057f2ea
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 0x464e7e
mov eax, dword [esp + 0x7c]
cmp eax, 0xffffffff
jne 0x464e6c
mov eax, dword [esp + 0x70]
mov ecx, dword [esp + 0x38]
cmp ecx, eax
mov ecx, dword [esp + 0x6c]
jl 0x464e7e
jg 0x464e5e
cmp dword [esp + 0x34], ecx
jbe 0x464e7e
mov esi, dword [esp + 0x34]
mov edi, dword [esp + 0x38]
sub esi, ecx
sbb edi, eax
jmp 0x464e7e
mov ecx, dword [esp + 0x6c]
cmp eax, ecx
jbe 0x464e7a
sub eax, ecx
mov esi, eax
jmp 0x464e7c
xor esi, esi
xor edi, edi
mov eax, dword [esp + 0x64]
push 0x18
cmp eax, ebx
jne 0x464ebf
call fcn.005970d9
add esp, 4
cmp eax, ebx
je 0x464ea9
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 0x464eab
xor eax, eax
mov ecx, dword [esp + 0x2c]
cmp eax, ebx
mov dword [ecx + 0x150], eax
je 0x46518b
jmp 0x464f07
call fcn.005970d9
add esp, 4
cmp eax, ebx
je 0x464ef6
mov ebp, dword [esp + 0x6c]
mov ecx, ebp
add ecx, esi
mov esi, dword [esp + 0x70]
mov edx, esi
mov dword [eax], ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [eax + 0x10], ebx
adc edx, edi
sub ecx, 1
sbb edx, ebx
mov dword [eax + 8], ecx
mov dword [eax + 4], esi
mov dword [eax + 0xc], edx
jmp 0x464ef8
xor eax, eax
mov edx, dword [esp + 0x28]
cmp eax, ebx
mov dword [edx + 0x10], eax
je 0x46518b
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x68]
cmp eax, 0xffffffff
je 0x46518b
push eax
lea eax, [esp + 0x58]
push 0x6514a8
push eax
call fcn.0057f2ea
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 0x464dfe
jmp 0x46518b
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 0x655478
push ecx
mov dword [esp + 0x2c], esi
call ebp
test eax, eax
jne 0x46518b
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 0x464fef
lea eax, [esp + 0x30]
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x464fc8
cmp edi, ebx
jne 0x464fc8
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jne 0x464fda
mov ecx, dword [esp + 0x30]
push 1
push ebx
push ebx
push ecx
call fcn.00581190
add esi, eax
adc edi, edx
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp edi, ebx
jg 0x464fef
jl 0x464feb
cmp esi, ebx
jae 0x464fef
xor esi, esi
xor edi, edi
push 0x18
call fcn.005970d9
add esp, 4
cmp eax, ebx
je 0x465012
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 0x465014
xor eax, eax
mov edx, dword [esp + 0x2c]
cmp eax, ebx
mov dword [edx + 0x150], eax
je 0x46518b
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x78]
cmp eax, 0xffffffff
je 0x46518b
push eax
lea eax, [esp + 0x58]
push 0x6514a8
push eax
call fcn.0057f2ea
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 0x46518b
mov edx, dword [0x6754cc]
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.00593b08
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 0x465150
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 0x4650e5
cmp ebp, ebx
jne 0x4650e5
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jne 0x465166
mov edx, dword [esp + 0x30]
push 1
push ebx
push ebx
push edx
call fcn.00581190
add edi, eax
push esi
adc ebp, edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x18
mov dword [esp + 0x94], 2
call fcn.005970d9
add esp, 4
cmp eax, ebx
je 0x46513f
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 0x465141
xor eax, eax
mov ecx, dword [esp + 0x34]
cmp eax, ebx
mov dword [ecx + 0x10], eax
je 0x46517a
mov dword [esp + 0x34], eax
lea ecx, [esp + 0x28]
mov byte [esp + 0x90], 1
call fcn.0059ad3d
jmp 0x46502a
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp + 0x90], 1
jmp 0x465182
mov byte [esp + 0x90], 1
lea ecx, [esp + 0x28]
call fcn.0059ad3d
mov edx, dword [esp + 0x1c]
push edx
call fcn.00597102
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.0059ad3d
lea ecx, [esp + 0x18]
mov dword [esp + 0x90], 0xffffffff
call fcn.0059ad3d
mov ecx, dword [esp + 0x88]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x84
ret