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

Disassembly:
push 0xffffffffffffffff
push 0x5be918
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.00468430
mov eax, dword [0x682f9c]
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 + 0x420]
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.0059e618
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 0x6874e8
push ebx
push eax
push reloc.WSOCK32.dll_accept
call edi
test eax, eax
jne 0x468d51
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 0x468d51
mov ecx, dword [esp + 0x14]
inc ecx
push ecx
call fcn.005a1be9
mov esi, eax
add esp, 4
cmp esi, ebx
mov dword [esp + 0x1c], esi
jne 0x46879e
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x468d51
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 0x6625f4
push ecx
call ebp
test eax, eax
je 0x4687d5
push esi
call fcn.005a1c12
mov edx, dword [esp + 0x14]
add esp, 4
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x468d51
mov eax, dword [0x682f9c]
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 0x46881f
mov eax, dword [esp + 0x3c]
cmp eax, 4
mov esi, eax
je 0x468884
cmp eax, 5
je 0x468884
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x14]
lea edx, [esp + 0x44]
push ecx
push edx
push ebx
push ebx
push str.FileSize
push eax
mov dword [esp + 0x2c], 8
call ebp
test eax, eax
jne 0x468913
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x48]
mov edx, eax
or edx, ecx
jne 0x468872
mov eax, dword [esp + 0x1c]
push eax
call fcn.005a1c12
mov ecx, dword [esp + 0x14]
add esp, 4
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x468d41
mov edx, dword [esp + 0x2c]
mov dword [edx + 0x130], eax
mov dword [edx + 0x134], ecx
jmp 0x4688ec
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x14]
lea eax, [esp + 0x4c]
push edx
push eax
push ebx
push ebx
push str.Duration
push ecx
mov dword [esp + 0x2c], 8
call ebp
test eax, eax
je 0x4688c5
mov edx, dword [esp + 0x1c]
push edx
call fcn.005a1c12
mov eax, dword [esp + 0x14]
add esp, 4
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x468d41
fld qword [esp + 0x4c]
fmul qword [0x5dda68]
call fcn.00589918
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
lea ecx, [esp + 0x40]
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x20]
push ecx
push edx
push ebx
push 0xf003f
push ebx
push 0x6874e8
push ebx
push str.ChList
push eax
call edi
test eax, eax
je 0x468930
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.005a1c12
mov edx, dword [esp + 0x14]
add esp, 4
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x468d41
cmp esi, 4
je 0x468b7f
cmp esi, 5
je 0x468b7f
mov edx, dword [esp + 0x20]
lea eax, [esp + 0x14]
lea ecx, [esp + 0x64]
push eax
push ecx
push ebx
push ebx
mov esi, 0x10
push 0x6625c4
push edx
mov dword [esp + 0x2c], esi
call ebp
test eax, eax
jne 0x468d18
mov eax, dword [esp + 0x1c]
push ebx
push ebx
push 3
push ebx
push 3
push closesocket
mov dword [esp + 0x2c], esi
push eax
xor esi, esi
xor edi, edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x4689d9
lea ecx, [esp + 0x30]
push ecx
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4689b2
cmp edi, ebx
jne 0x4689b2
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jne 0x4689c4
mov edx, dword [esp + 0x30]
push 1
push ebx
push ebx
push edx
call fcn.0058bcb0
add esi, eax
adc edi, edx
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp edi, ebx
jg 0x4689d9
jl 0x4689d5
cmp esi, ebx
jae 0x4689d9
xor esi, esi
xor edi, edi
push 0x18
call fcn.005a1be9
add esp, 4
cmp eax, ebx
je 0x4689fc
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 0x4689fe
xor eax, eax
mov ecx, dword [esp + 0x2c]
cmp eax, ebx
mov dword [ecx + 0x150], eax
je 0x468d18
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x68]
cmp eax, 0xffffffff
je 0x468d18
push eax
lea edx, [esp + 0x60]
push 0x65e490
push edx
call fcn.00589e0a
add esp, 0xc
lea eax, [esp + 0x14]
lea ecx, [esp + 0x64]
lea edx, [esp + 0x5c]
push eax
mov eax, dword [esp + 0x24]
push ecx
push ebx
push ebx
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, ebx
jne 0x468d18
mov ecx, dword [0x682f9c]
mov dword [esp + 0x28], ecx
mov edx, dword [esp + 0x64]
mov eax, dword [esp + 0x1c]
push edx
push eax
lea ecx, [esp + 0x30]
push str._s_ld
push ecx
mov byte [esp + 0xa0], 2
call fcn.0059e618
mov edx, dword [esp + 0x38]
add esp, 0x10
push ebx
push ebx
push 3
push ebx
push 3
push closesocket
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x468b33
lea eax, [esp + 0x30]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
xor ebp, ebp
cmp edi, 0xffffffff
jne 0x468acb
cmp ebp, ebx
jne 0x468acb
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jne 0x468b49
mov ecx, dword [esp + 0x30]
push 1
push ebx
push ebx
push ecx
call fcn.0058bcb0
add edi, eax
push esi
adc ebp, edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x18
mov dword [esp + 0x94], 2
call fcn.005a1be9
add esp, 4
cmp eax, ebx
je 0x468b22
mov esi, dword [esp + 0x6c]
mov ecx, esi
add ecx, edi
mov edi, dword [esp + 0x70]
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 0x468b24
xor eax, eax
mov edx, dword [esp + 0x34]
cmp eax, ebx
mov dword [edx + 0x10], eax
je 0x468b69
mov dword [esp + 0x34], eax
lea ecx, [esp + 0x28]
mov byte [esp + 0x90], 1
call fcn.005a584d
jmp 0x468a14
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x28]
mov dword [esp + 0x90], 1
call fcn.005a584d
jmp 0x468d18
lea ecx, [esp + 0x28]
mov byte [esp + 0x90], 1
call fcn.005a584d
jmp 0x468d18
mov edx, dword [esp + 0x20]
lea eax, [esp + 0x14]
lea ecx, [esp + 0x4c]
push eax
push ecx
push ebx
push ebx
push 0x6625c4
push edx
mov dword [esp + 0x2c], 0x10
call ebp
test eax, eax
je 0x468bc9
mov eax, dword [esp + 0x1c]
push eax
call fcn.005a1c12
mov ecx, dword [esp + 0x14]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add esp, 4
push ecx
call esi
mov edx, dword [esp + 0x20]
push edx
call esi
jmp 0x468d41
mov dword [esp + 0x30], ebx
mov eax, dword [esp + 0x4c]
lea ecx, [esp + 0x5c]
push eax
push str._dkf
push ecx
xor esi, esi
xor edi, edi
call fcn.00589e0a
add esp, 0xc
lea edx, [esp + 0x28]
lea eax, [esp + 0x64]
lea ecx, [esp + 0x5c]
push edx
mov edx, dword [esp + 0x24]
push eax
push ebx
push ebx
push ecx
push edx
mov dword [esp + 0x40], 0x10
call ebp
cmp eax, ebx
jne 0x468c4d
mov eax, dword [esp + 0x6c]
cmp eax, 0xffffffff
jne 0x468c3b
mov eax, dword [esp + 0x58]
mov ecx, dword [esp + 0x38]
cmp ecx, eax
mov ecx, dword [esp + 0x54]
jl 0x468c4d
jg 0x468c2d
cmp dword [esp + 0x34], ecx
jbe 0x468c4d
mov esi, dword [esp + 0x34]
mov edi, dword [esp + 0x38]
sub esi, ecx
sbb edi, eax
jmp 0x468c4d
mov ecx, dword [esp + 0x54]
cmp eax, ecx
jbe 0x468c49
sub eax, ecx
mov esi, eax
jmp 0x468c4b
xor esi, esi
xor edi, edi
mov eax, dword [esp + 0x4c]
push 0x18
cmp eax, ebx
jne 0x468c8e
call fcn.005a1be9
add esp, 4
cmp eax, ebx
je 0x468c78
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 0x468c7a
xor eax, eax
mov ecx, dword [esp + 0x2c]
cmp eax, ebx
mov dword [ecx + 0x150], eax
je 0x468d18
jmp 0x468cd0
call fcn.005a1be9
add esp, 4
cmp eax, ebx
je 0x468cc3
mov ebp, dword [esp + 0x54]
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 0x468cc5
xor eax, eax
mov edx, dword [esp + 0x30]
cmp eax, ebx
mov dword [edx + 0x10], eax
je 0x468d18
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x50]
cmp eax, 0xffffffff
je 0x468d18
push eax
lea eax, [esp + 0x78]
push 0x65e490
push eax
call fcn.00589e0a
add esp, 0xc
lea ecx, [esp + 0x28]
lea edx, [esp + 0x4c]
lea eax, [esp + 0x74]
push ecx
mov ecx, dword [esp + 0x24]
push edx
push ebx
push ebx
push eax
push ecx
mov dword [esp + 0x40], 0x10
call ebp
cmp eax, ebx
je 0x468bcd
mov edx, dword [esp + 0x1c]
push edx
call fcn.005a1c12
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.005a584d
lea ecx, [esp + 0x18]
mov dword [esp + 0x90], 0xffffffff
call fcn.005a584d
mov ecx, dword [esp + 0x88]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x84
ret