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

Disassembly:
push 0xffffffffffffffff
push 0x5c6c68
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.0046a510
mov eax, dword [0x68d01c]
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.005a6a18
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 0x691568
push ebx
push eax
push reloc.WSOCK32.dll_accept
call edi
test eax, eax
jne 0x46ae31
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 0x46ae31
mov ecx, dword [esp + 0x14]
inc ecx
push ecx
call fcn.005a9fe9
mov esi, eax
add esp, 4
cmp esi, ebx
mov dword [esp + 0x1c], esi
jne 0x46a87e
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x46ae31
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 0x66c584
push ecx
call ebp
test eax, eax
je 0x46a8b5
push esi
call fcn.005aa012
mov edx, dword [esp + 0x14]
add esp, 4
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x46ae31
mov eax, dword [0x68d01c]
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 0x46a8ff
mov eax, dword [esp + 0x3c]
cmp eax, 4
mov esi, eax
je 0x46a964
cmp eax, 5
je 0x46a964
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 0x46a9f3
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x48]
mov edx, eax
or edx, ecx
jne 0x46a952
mov eax, dword [esp + 0x1c]
push eax
call fcn.005aa012
mov ecx, dword [esp + 0x14]
add esp, 4
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x46ae21
mov edx, dword [esp + 0x2c]
mov dword [edx + 0x130], eax
mov dword [edx + 0x134], ecx
jmp 0x46a9cc
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 0x46a9a5
mov edx, dword [esp + 0x1c]
push edx
call fcn.005aa012
mov eax, dword [esp + 0x14]
add esp, 4
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x46ae21
fld qword [esp + 0x4c]
fmul qword [0x5e6a38]
call fcn.00591bf8
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 0x691568
push ebx
push str.ChList
push eax
call edi
test eax, eax
je 0x46aa10
mov ecx, dword [esp + 0x1c]
push ecx
call fcn.005aa012
mov edx, dword [esp + 0x14]
add esp, 4
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x46ae21
cmp esi, 4
je 0x46ac5f
cmp esi, 5
je 0x46ac5f
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 0x66c554
push edx
mov dword [esp + 0x2c], esi
call ebp
test eax, eax
jne 0x46adf8
mov eax, dword [esp + 0x1c]
push ebx
push ebx
push 3
push ebx
push 3
push accept
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 0x46aab9
lea ecx, [esp + 0x30]
push ecx
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x46aa92
cmp edi, ebx
jne 0x46aa92
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jne 0x46aaa4
mov edx, dword [esp + 0x30]
push 1
push ebx
push ebx
push edx
call fcn.00593f90
add esi, eax
adc edi, edx
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp edi, ebx
jg 0x46aab9
jl 0x46aab5
cmp esi, ebx
jae 0x46aab9
xor esi, esi
xor edi, edi
push 0x18
call fcn.005a9fe9
add esp, 4
cmp eax, ebx
je 0x46aadc
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 0x46aade
xor eax, eax
mov ecx, dword [esp + 0x2c]
cmp eax, ebx
mov dword [ecx + 0x150], eax
je 0x46adf8
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x68]
cmp eax, 0xffffffff
je 0x46adf8
push eax
lea edx, [esp + 0x60]
push 0x668590
push edx
call fcn.005920ea
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 0x46adf8
mov ecx, dword [0x68d01c]
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.005a6a18
mov edx, dword [esp + 0x38]
add esp, 0x10
push ebx
push ebx
push 3
push ebx
push 3
push accept
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x46ac13
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 0x46abab
cmp ebp, ebx
jne 0x46abab
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jne 0x46ac29
mov ecx, dword [esp + 0x30]
push 1
push ebx
push ebx
push ecx
call fcn.00593f90
add edi, eax
push esi
adc ebp, edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x18
mov dword [esp + 0x94], 2
call fcn.005a9fe9
add esp, 4
cmp eax, ebx
je 0x46ac02
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 0x46ac04
xor eax, eax
mov edx, dword [esp + 0x34]
cmp eax, ebx
mov dword [edx + 0x10], eax
je 0x46ac49
mov dword [esp + 0x34], eax
lea ecx, [esp + 0x28]
mov byte [esp + 0x90], 1
call fcn.005adc4d
jmp 0x46aaf4
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x28]
mov dword [esp + 0x90], 1
call fcn.005adc4d
jmp 0x46adf8
lea ecx, [esp + 0x28]
mov byte [esp + 0x90], 1
call fcn.005adc4d
jmp 0x46adf8
mov edx, dword [esp + 0x20]
lea eax, [esp + 0x14]
lea ecx, [esp + 0x4c]
push eax
push ecx
push ebx
push ebx
push 0x66c554
push edx
mov dword [esp + 0x2c], 0x10
call ebp
test eax, eax
je 0x46aca9
mov eax, dword [esp + 0x1c]
push eax
call fcn.005aa012
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 0x46ae21
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.005920ea
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 0x46ad2d
mov eax, dword [esp + 0x6c]
cmp eax, 0xffffffff
jne 0x46ad1b
mov eax, dword [esp + 0x58]
mov ecx, dword [esp + 0x38]
cmp ecx, eax
mov ecx, dword [esp + 0x54]
jl 0x46ad2d
jg 0x46ad0d
cmp dword [esp + 0x34], ecx
jbe 0x46ad2d
mov esi, dword [esp + 0x34]
mov edi, dword [esp + 0x38]
sub esi, ecx
sbb edi, eax
jmp 0x46ad2d
mov ecx, dword [esp + 0x54]
cmp eax, ecx
jbe 0x46ad29
sub eax, ecx
mov esi, eax
jmp 0x46ad2b
xor esi, esi
xor edi, edi
mov eax, dword [esp + 0x4c]
push 0x18
cmp eax, ebx
jne 0x46ad6e
call fcn.005a9fe9
add esp, 4
cmp eax, ebx
je 0x46ad58
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 0x46ad5a
xor eax, eax
mov ecx, dword [esp + 0x2c]
cmp eax, ebx
mov dword [ecx + 0x150], eax
je 0x46adf8
jmp 0x46adb0
call fcn.005a9fe9
add esp, 4
cmp eax, ebx
je 0x46ada3
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 0x46ada5
xor eax, eax
mov edx, dword [esp + 0x30]
cmp eax, ebx
mov dword [edx + 0x10], eax
je 0x46adf8
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x50]
cmp eax, 0xffffffff
je 0x46adf8
push eax
lea eax, [esp + 0x78]
push 0x668590
push eax
call fcn.005920ea
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 0x46acad
mov edx, dword [esp + 0x1c]
push edx
call fcn.005aa012
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.005adc4d
lea ecx, [esp + 0x18]
mov dword [esp + 0x90], 0xffffffff
call fcn.005adc4d
mov ecx, dword [esp + 0x88]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x84
ret