Function at 0x48fca0
Capabilities:
Get file size
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x84]
sub esp, 0x84
push 0xffffffffffffffff
push 0x625e20
mov eax, dword fs:[0]
push eax
sub esp, 0x54
mov eax, dword [0x70a308]
xor eax, ebp
mov dword [ebp + 0x80], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov dword [ebp - 0x48], esi
call fcn.0048fb30
lea ecx, [ebp - 0x28]
call fcn.004024e0
xor edi, edi
mov dword [ebp - 4], edi
mov dword [ebp - 0x5c], edi
mov dword [ebp - 0x58], edi
mov dword [ebp - 0x44], edi
mov dword [ebp - 0x40], edi
mov dword [ebp - 0x50], edi
mov dword [ebp - 0x4c], edi
mov eax, dword [esi + 0x24c]
mov ecx, dword [eax + 0x4c0]
push ecx
push str.SoftwareDownloadManager_ld
lea edx, [ebp - 0x28]
push edx
call fcn.00402f60
add esp, 0xc
lea eax, [ebp - 0x60]
push eax
lea ecx, [ebp - 0x18]
push ecx
push edi
push 0xf003f
push edi
push 0x64f8bc
push edi
mov edx, dword [ebp - 0x28]
push edx
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x4905f5
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_RegFlushKey]
push edi
push edi
lea ecx, [ebp - 0x1c]
push ecx
push edi
push edi
push edi
push edi
push edi
push edi
push edi
push edi
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
test eax, eax
jne 0x4905f5
mov eax, dword [ebp - 0x1c]
inc eax
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.005cfaa6
add esp, 4
mov ebx, eax
mov dword [ebp - 0x30], ebx
cmp ebx, edi
je 0x48fdc2
lea ecx, [ebp - 0x1c]
push ecx
push ebx
push edi
push edi
push 0x65d364
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x48fdd1
push ebx
call fcn.005cfa9b
add esp, 4
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4905f5
lea ecx, [ebp - 0x34]
call fcn.004024e0
mov byte [ebp - 4], 1
mov ebx, 1
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], 4
lea ecx, [ebp - 0x1c]
push ecx
lea edx, [ebp - 0x54]
push edx
push edi
push edi
push str.TPswitch
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x48fe0f
mov ebx, dword [ebp - 0x54]
mov dword [ebp - 0x20], ebx
mov byte [ebp - 0x21], 0
lea ecx, [ebp - 0x1c]
push ecx
lea edx, [ebp - 0x54]
push edx
push edi
push edi
push str.nAggrV
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x48fe37
cmp dword [ebp - 0x54], edi
setne byte [ebp - 0x21]
cmp ebx, 4
je 0x48fec2
cmp ebx, 5
je 0x48fec2
cmp byte [ebp - 0x21], 0
jne 0x48fec2
mov dword [ebp - 0x1c], 8
lea ecx, [ebp - 0x1c]
push ecx
lea edx, [ebp - 0x5c]
push edx
push edi
push edi
push str.FileSize
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x48fe8a
mov ecx, dword [ebp - 0x30]
push ecx
call fcn.005cfa9b
add esp, 4
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4905e9
mov eax, dword [ebp - 0x5c]
mov edx, eax
mov ecx, dword [ebp - 0x58]
or edx, ecx
jne 0x48feb1
mov eax, dword [ebp - 0x30]
push eax
call fcn.005cfa9b
add esp, 4
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4905e9
mov dword [esi + 0x230], eax
mov dword [esi + 0x234], ecx
jmp 0x48ff50
mov ebx, 8
mov dword [ebp - 0x1c], ebx
lea edx, [ebp - 0x1c]
push edx
lea eax, [ebp - 0x3c]
push eax
push edi
push edi
push str.Duration
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x48ff03
fld qword [ebp - 0x3c]
fmul qword [0x65d2f8]
call fcn.005fa886
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x40], edx
mov dword [esi + 0x230], eax
jmp 0x48ff4a
mov dword [ebp - 0x1c], ebx
lea edx, [ebp - 0x1c]
push edx
lea eax, [ebp - 0x50]
push eax
push edi
push edi
push str.nExpectedSize
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x48ff3e
mov edx, dword [ebp - 0x30]
push edx
call fcn.005cfa9b
add esp, 4
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4905e9
mov ecx, dword [ebp - 0x50]
mov dword [esi + 0x230], ecx
mov edx, dword [ebp - 0x4c]
mov dword [esi + 0x234], edx
lea eax, [ebp - 0x60]
push eax
lea ecx, [ebp - 0x2c]
push ecx
push edi
push 0xf003f
push edi
push 0x64f8bc
push edi
push str.ChList
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x48fe96
mov eax, dword [ebp - 0x20]
cmp eax, 4
je 0x490431
cmp eax, 5
je 0x490431
cmp byte [ebp - 0x21], 0
je 0x4901c6
lea ecx, [ebp + 0x10]
call fcn.00555a30
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x2c]
push edx
lea ecx, [ebp + 0x10]
call fcn.00555cc0
cmp dword [ebp - 0x4c], edi
jl 0x49000a
jg 0x48ffbf
cmp dword [ebp - 0x50], edi
jbe 0x49000a
lea ecx, [ebp - 0x14]
call fcn.004024e0
mov byte [ebp - 4], 5
push edi
lea eax, [ebp - 0x14]
push eax
mov ecx, dword [esi + 0x24c]
add ecx, 0x20
call fcn.0057a620
mov ecx, dword [esi + 0x24c]
xor edx, edx
cmp dword [ecx + 0x330], 0x10
setne dl
inc edx
push edx
mov eax, dword [ebp - 0x14]
push eax
lea ecx, [ebp + 0x10]
call fcn.005557d0
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x14]
call fcn.00402550
mov ebx, dword [ebp + 0x38]
cmp ebx, edi
je 0x4901b5
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x3c], edi
mov dword [ebp - 0x38], edi
cmp dword [ebp - 0x4c], 0
jl 0x4900e9
jg 0x490034
cmp dword [ebp - 0x50], 0
jbe 0x4900e9
cmp dword [ebx + 0x44], 0
je 0x49004e
mov esi, dword [ebx + 0x10]
sub esi, dword [ebx + 8]
mov edi, dword [ebx + 0x14]
sbb edi, dword [ebx + 0xc]
sub esi, 1
sbb edi, 0
jmp 0x490055
mov esi, 1
xor edi, edi
push 0x18
cmp dword [ebx + 0x38], 1
jne 0x49009e
call fcn.005cfa6c
add esp, 4
mov dword [ebp - 0x20], eax
mov byte [ebp - 4], 6
test eax, eax
je 0x49007f
push edi
push esi
push 0
push 0
mov ecx, eax
call fcn.0048f0c0
jmp 0x490081
xor eax, eax
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x48]
mov dword [ecx + 0x250], eax
test eax, eax
je 0x4901b5
mov dword [ebp - 0x14], eax
jmp 0x4901ab
call fcn.005cfa6c
add esp, 4
mov dword [ebp - 0x20], eax
mov byte [ebp - 4], 7
test eax, eax
je 0x4900cd
mov edx, dword [ebx + 8]
mov eax, dword [ebx + 0xc]
mov ecx, edx
add ecx, esi
mov esi, eax
adc esi, edi
push esi
push ecx
push eax
push edx
mov ecx, dword [ebp - 0x20]
call fcn.0048f0c0
jmp 0x4900cf
xor eax, eax
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x14]
mov dword [edx + 0x10], eax
test eax, eax
je 0x4901b5
mov dword [ebp - 0x14], eax
jmp 0x4901ab
cmp dword [ebx + 0x44], 0
je 0x49010b
fld qword [ebx + 0x28]
fmul qword [0x65d318]
call fcn.005fa886
or esi, 0xffffffff
sub esi, eax
mov edi, 0xffffffff
sbb edi, edx
jmp 0x490112
mov esi, 1
xor edi, edi
push 0x18
cmp dword [ebx + 0x38], 1
jne 0x49015a
call fcn.005cfa6c
add esp, 4
mov dword [ebp - 0x20], eax
mov byte [ebp - 4], 8
test eax, eax
je 0x490149
push edi
push esi
push 0
push 0
mov ecx, eax
call fcn.0048f0c0
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x48]
mov dword [ecx + 0x250], eax
jmp 0x490190
xor eax, eax
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x48]
mov dword [ecx + 0x250], eax
jmp 0x490190
call fcn.005cfa6c
add esp, 4
mov ecx, eax
mov dword [ebp - 0x20], ecx
mov byte [ebp - 4], 9
test ecx, ecx
je 0x490184
mov edx, dword [ebp - 0x3c]
add esi, edx
mov eax, dword [ebp - 0x38]
adc edi, eax
push edi
push esi
push eax
push edx
call fcn.0048f0c0
jmp 0x490186
xor eax, eax
mov byte [ebp - 4], 4
mov edx, dword [ebp - 0x14]
mov dword [edx + 0x10], eax
test eax, eax
je 0x4901b5
mov dword [ebp - 0x14], eax
fld qword [ebx + 0x28]
fmul qword [0x65d2f8]
call fcn.005fa886
add dword [ebp - 0x3c], eax
adc dword [ebp - 0x38], edx
mov ebx, dword [ebx]
test ebx, ebx
jne 0x49001e
mov byte [ebp - 4], 1
lea ecx, [ebp + 0x10]
call fcn.00555b00
jmp 0x4905c4
mov dword [ebp - 0x1c], 0x10
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp + 0x70]
push ecx
push edi
push edi
push 0x65d310
mov edx, dword [ebp - 0x2c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4905c4
mov dword [ebp - 0x1c], 0x10
xor esi, esi
xor edi, edi
push edi
push edi
push 3
push edi
push 3
push 0x80000000
mov eax, dword [ebp - 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x49025e
lea ecx, [ebp - 0x14]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x490236
test edi, edi
jne 0x490236
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x490249
push 1
push 0
push 0
mov edx, dword [ebp - 0x14]
push edx
call fcn.005fd4d0
add esi, eax
adc edi, edx
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
jg 0x49025e
jl 0x49025a
test esi, esi
jae 0x49025e
xor esi, esi
xor edi, edi
push 0x18
call fcn.005cfa6c
add esp, 4
mov dword [ebp - 0x20], eax
mov byte [ebp - 4], 0xa
test eax, eax
je 0x490288
sub esi, 1
sbb edi, 0
push edi
push esi
push 0
push 0
mov ecx, eax
call fcn.0048f0c0
jmp 0x49028a
xor eax, eax
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x48]
mov dword [ecx + 0x250], eax
test eax, eax
je 0x4905c4
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0x74]
cmp eax, 0xffffffff
je 0x4905c4
push eax
push 0x64f53c
lea edx, [ebp + 0x68]
push edx
call fcn.005fb4cb
add esp, 0xc
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp + 0x70]
push ecx
push 0
push 0
lea edx, [ebp + 0x68]
push edx
mov eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4905c4
xor ebx, ebx
mov dword [ebp + 4], ebx
mov dword [ebp + 0xc], ebx
xor ecx, ecx
mov word [ebp + 8], cx
mov byte [ebp - 4], 0xb
push ebx
push 0xa
lea edx, [ebp + 0x10]
push edx
mov eax, dword [ebp + 0x70]
push eax
call fcn.005fb328
add esp, 0xc
push eax
mov ecx, dword [ebp - 0x30]
push ecx
push 0x64ed70
lea ecx, [ebp + 4]
call fcn.00402300
mov eax, dword [ebp + 4]
cmp eax, ebx
jne 0x490323
lea eax, [ebp + 8]
push ebx
push ebx
push 3
push ebx
push 3
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x490420
lea edx, [ebp - 0x14]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
jne 0x490393
test ebx, ebx
jne 0x490393
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x490393
mov byte [ebp - 4], 0xc
wait
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
wait
mov dword [ebp - 4], 0xb
mov byte [ebp - 4], 1
lea ecx, [ebp + 4]
call fcn.004011f0
jmp 0x4905c4
push 1
push 0
push 0
mov eax, dword [ebp - 0x14]
push eax
call fcn.005fd4d0
add edi, eax
mov dword [ebp - 0x44], edi
adc ebx, edx
mov dword [ebp - 0x40], ebx
mov byte [ebp - 4], 0xe
wait
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
wait
mov dword [ebp - 4], 0xb
jmp 0x4903d2
push 0x18
call fcn.005cfa6c
add esp, 4
mov dword [ebp - 0x38], eax
mov byte [ebp - 4], 0x10
test eax, eax
je 0x490409
mov edx, dword [ebp + 0x78]
mov ecx, edx
add ecx, edi
mov esi, dword [ebp + 0x7c]
mov edi, esi
adc edi, dword [ebp - 0x40]
sub ecx, 1
sbb edi, 0
push edi
push ecx
push esi
push edx
mov ecx, eax
call fcn.0048f0c0
jmp 0x49040b
xor eax, eax
mov byte [ebp - 4], 0xb
mov edx, dword [ebp - 0x20]
mov dword [edx + 0x10], eax
test eax, eax
je 0x490375
mov dword [ebp - 0x20], eax
mov byte [ebp - 4], 1
lea ecx, [ebp + 4]
call fcn.004011f0
jmp 0x4902a2
mov dword [ebp - 0x1c], 0x10
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp]
push ecx
push edi
push edi
push 0x65d310
mov edx, dword [ebp - 0x2c]
push edx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
call ebx
test eax, eax
je 0x49047a
mov eax, dword [ebp - 0x30]
push eax
call fcn.005cfa9b
add esp, 4
mov ecx, dword [ebp - 0x18]
push ecx
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
mov edx, dword [ebp - 0x2c]
push edx
call esi
jmp 0x4905e9
mov dword [ebp - 0x14], edi
lea ecx, [ecx]
xor esi, esi
xor edi, edi
mov eax, dword [ebp]
push eax
push str._dkf
lea ecx, [ebp + 0x70]
push ecx
call fcn.005fb4cb
add esp, 0xc
mov dword [ebp - 0x20], 0x10
lea edx, [ebp - 0x20]
push edx
lea eax, [ebp + 0x60]
push eax
push edi
push edi
lea ecx, [ebp + 0x70]
push ecx
mov edx, dword [ebp - 0x2c]
push edx
call ebx
test eax, eax
jne 0x4904f0
mov eax, dword [ebp + 0x68]
cmp eax, 0xffffffff
jne 0x4904df
mov eax, dword [ebp + 0xc]
cmp dword [ebp - 0x40], eax
jl 0x4904f0
jg 0x4904d2
mov ecx, dword [ebp - 0x44]
cmp ecx, dword [ebp + 8]
jbe 0x4904f0
mov esi, dword [ebp - 0x44]
sub esi, dword [ebp + 8]
mov edi, dword [ebp - 0x40]
sbb edi, eax
jmp 0x4904f0
mov ecx, dword [ebp + 8]
cmp eax, ecx
jbe 0x4904ec
sub eax, ecx
mov esi, eax
jmp 0x4904ee
xor esi, esi
xor edi, edi
push 0x18
cmp dword [ebp], 0
jne 0x49053e
call fcn.005cfa6c
add esp, 4
mov dword [ebp - 0x38], eax
mov byte [ebp - 4], 2
test eax, eax
je 0x49052d
sub esi, 1
sbb edi, 0
push edi
push esi
push 0
push 0
mov ecx, eax
call fcn.0048f0c0
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x48]
mov dword [edx + 0x250], eax
jmp 0x49057e
xor eax, eax
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x48]
mov dword [edx + 0x250], eax
jmp 0x49057e
call fcn.005cfa6c
add esp, 4
mov ecx, eax
mov dword [ebp - 0x38], ecx
mov byte [ebp - 4], 3
xor eax, eax
test ecx, ecx
je 0x490574
mov edx, dword [ebp + 8]
mov ebx, edx
add ebx, esi
mov esi, eax
adc esi, edi
sub ebx, 1
sbb esi, eax
push esi
push ebx
push eax
push edx
call fcn.0048f0c0
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x14]
mov dword [ecx + 0x10], eax
test eax, eax
je 0x4905c4
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 4]
cmp eax, 0xffffffff
je 0x4905c4
push eax
push 0x64f53c
lea edx, [ebp + 0x50]
push edx
call fcn.005fb4cb
add esp, 0xc
mov dword [ebp - 0x20], 0x10
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp]
push ecx
push 0
push 0
lea edx, [ebp + 0x50]
push edx
mov eax, dword [ebp - 0x2c]
push eax
call ebx
test eax, eax
je 0x490480
mov ecx, dword [ebp - 0x30]
push ecx
call fcn.005cfa9b
add esp, 4
mov edx, dword [ebp - 0x2c]
push edx
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
mov eax, dword [ebp - 0x18]
push eax
call esi
mov ecx, dword [ebp - 0x48]
mov byte [ecx + 0xc], 1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x34]
call fcn.00402550
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00402550
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x80]
xor ecx, ebp
call fcn.005f85e7
add ebp, 0x84
mov esp, ebp
pop ebp
ret