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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x61e124
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xd4
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x2c], esi
call fcn.0048ab40
mov eax, dword [0x6cd768]
mov dword [esp + 0x28], eax
mov ecx, dword [esi + 0x24c]
xor ebx, ebx
mov dword [esp + 0x64], ebx
mov dword [esp + 0x68], ebx
mov dword [esp + 0x40], ebx
mov dword [esp + 0x44], ebx
mov edx, dword [ecx + 0x480]
lea eax, [esp + 0x28]
push edx
push str.SoftwareDownloadManager_ld
push eax
mov dword [esp + 0xf8], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
call fcn.005fc86b
add esp, 0xc
mov eax, dword [esp + 0x28]
lea ecx, [esp + 0x6c]
lea edx, [esp + 0x14]
push ecx
push edx
push ebx
push 0xf003f
push ebx
push 0x6d1c98
push ebx
push eax
push reloc.WS2_32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x48b7a2
mov ecx, dword [esp + 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegFlushKey]
push ebx
lea edx, [esp + 0x1c]
push ebx
mov eax, dword [esp + 0x1c]
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 0x48b7a2
mov ecx, dword [esp + 0x18]
inc ecx
push ecx
call fcn.005ffe3f
mov ebp, eax
add esp, 4
cmp ebp, ebx
mov dword [esp + 0x4c], ebp
jne 0x48aecd
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x48b7a2
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x18]
push eax
push ebp
push ebx
push ebx
push 0x6a887c
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x48af02
push ebp
call fcn.005ffe68
mov edx, dword [esp + 0x18]
add esp, 4
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x48b7a2
mov eax, dword [0x6cd768]
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x18]
lea edx, [esp + 0x48]
push ecx
push edx
push ebx
push ebx
push str.TPswitch
push eax
mov byte [esp + 0x104], 1
mov edi, 1
mov dword [esp + 0x30], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x48af44
mov edi, dword [esp + 0x48]
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x18]
lea edx, [esp + 0x48]
push ecx
push edx
push ebx
push ebx
push str.nAggrV
push eax
mov byte [esp + 0x3f], 0
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x48af72
cmp dword [esp + 0x48], ebx
setne byte [esp + 0x27]
cmp edi, 4
je 0x48b005
cmp edi, 5
je 0x48b005
mov al, byte [esp + 0x27]
test al, al
jne 0x48b005
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x18]
lea edx, [esp + 0x64]
push ecx
push edx
push ebx
push ebx
push str.FileSize
push eax
mov dword [esp + 0x30], 8
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x48afcd
push ebp
call fcn.005ffe68
mov ecx, dword [esp + 0x18]
add esp, 4
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x48b791
mov eax, dword [esp + 0x64]
mov ecx, dword [esp + 0x68]
mov edx, eax
or edx, ecx
jne 0x48aff4
push ebp
call fcn.005ffe68
mov eax, dword [esp + 0x18]
add esp, 4
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x48b791
mov dword [esi + 0x230], eax
mov dword [esi + 0x234], ecx
jmp 0x48b0ac
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x18]
lea edx, [esp + 0x50]
push ecx
push edx
push ebx
push ebx
mov esi, 8
push str.Duration
push eax
mov dword [esp + 0x30], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x48b057
fld qword [esp + 0x50]
fmul qword [0x6369f0]
call fcn.005e7794
mov esi, dword [esp + 0x2c]
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], edx
mov dword [esi + 0x230], eax
mov dword [esi + 0x234], edx
jmp 0x48b0b0
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x18]
lea edx, [esp + 0x40]
push ecx
push edx
push ebx
push ebx
push str.nExpectedSize
push eax
mov dword [esp + 0x30], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x48b094
push ebp
call fcn.005ffe68
mov ecx, dword [esp + 0x18]
add esp, 4
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x48b791
mov eax, dword [esp + 0x2c]
mov edx, dword [esp + 0x40]
mov ecx, dword [esp + 0x44]
mov dword [eax + 0x230], edx
mov dword [eax + 0x234], ecx
mov esi, dword [esp + 0x2c]
lea edx, [esp + 0x6c]
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x38]
push edx
push eax
push ebx
push 0xf003f
push ebx
push 0x6d1c98
push ebx
push str.ChList
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x48b0f4
push ebp
call fcn.005ffe68
mov edx, dword [esp + 0x18]
add esp, 4
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x48b791
cmp edi, 4
je 0x48b5bd
cmp edi, 5
je 0x48b5bd
mov al, byte [esp + 0x27]
test al, al
je 0x48b376
lea ecx, [esp + 0xa0]
call fcn.005562a0
mov eax, dword [esp + 0x38]
lea ecx, [esp + 0xa0]
push eax
mov byte [esp + 0xf0], 2
call fcn.00556a00
cmp dword [esp + 0x44], ebx
jl 0x48b1a1
jg 0x48b145
cmp dword [esp + 0x40], ebx
jbe 0x48b1a1
mov ecx, dword [0x6cd768]
mov dword [esp + 0x1c], ecx
mov ecx, dword [esi + 0x24c]
lea edx, [esp + 0x1c]
push ebx
push edx
add ecx, 0x20
mov byte [esp + 0xf4], 3
call fcn.00582290
mov eax, dword [esi + 0x24c]
mov edx, dword [esp + 0x1c]
xor ecx, ecx
cmp dword [eax + 0x31c], 0x10
setne cl
inc ecx
push ecx
push edx
lea ecx, [esp + 0xa8]
call fcn.00557070
lea ecx, [esp + 0x1c]
mov byte [esp + 0xec], 2
call fcn.00603a3c
mov eax, dword [esp + 0xc8]
cmp eax, ebx
je 0x48b35d
xor ecx, ecx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], ecx
mov dword [esp + 0x30], ecx
mov dword [esp + 0x34], ecx
mov ebx, eax
xor ebp, ebp
cmp dword [esp + 0x44], ebp
jl 0x48b294
jg 0x48b1dc
cmp dword [esp + 0x40], ebp
jbe 0x48b294
cmp dword [ebx + 0x44], ebp
je 0x48b1f8
mov esi, dword [ebx + 0x10]
mov edi, dword [ebx + 8]
mov edx, dword [ebx + 0xc]
sub esi, edi
mov edi, dword [ebx + 0x14]
sbb edi, edx
sub esi, 1
sbb edi, ebp
jmp 0x48b1ff
mov esi, 1
xor edi, edi
mov eax, dword [ebx + 0x38]
push 0x18
cmp eax, 1
jne 0x48b242
call fcn.005ffe3f
add esp, 4
cmp eax, ebp
je 0x48b225
mov dword [eax], ebp
mov dword [eax + 8], esi
mov dword [eax + 0x10], ebp
mov dword [eax + 4], ebp
mov dword [eax + 0xc], edi
jmp 0x48b227
xor eax, eax
mov ecx, dword [esp + 0x2c]
cmp eax, ebp
mov dword [ecx + 0x250], eax
je 0x48b35d
mov dword [esp + 0x20], eax
jmp 0x48b34f
call fcn.005ffe3f
add esp, 4
cmp eax, ebp
je 0x48b27a
mov ecx, dword [esp + 0x1c]
mov ebp, dword [ecx + 8]
mov ebx, dword [ecx + 0xc]
mov ecx, ebp
mov edx, ebx
add ecx, esi
mov dword [eax], ebp
adc edx, edi
mov dword [eax + 4], ebx
mov ebx, dword [esp + 0x1c]
mov dword [eax + 8], ecx
mov dword [eax + 0x10], 0
mov dword [eax + 0xc], edx
xor ebp, ebp
jmp 0x48b27c
xor eax, eax
mov edx, dword [esp + 0x20]
cmp eax, ebp
mov dword [edx + 0x10], eax
je 0x48b35d
mov dword [esp + 0x20], eax
jmp 0x48b34f
cmp dword [ebx + 0x44], ebp
je 0x48b2b5
fld qword [ebx + 0x28]
fmul qword [0x636a00]
call fcn.005e7794
or esi, 0xffffffff
mov edi, 0xffffffff
sub esi, eax
sbb edi, edx
jmp 0x48b2bc
mov esi, 1
xor edi, edi
mov eax, dword [ebx + 0x38]
push 0x18
cmp eax, 1
jne 0x48b2f4
call fcn.005ffe3f
add esp, 4
cmp eax, ebp
je 0x48b2e2
mov dword [eax], ebp
mov dword [eax + 8], esi
mov dword [eax + 0x10], ebp
mov dword [eax + 4], ebp
mov dword [eax + 0xc], edi
jmp 0x48b2e4
xor eax, eax
mov ecx, dword [esp + 0x2c]
cmp eax, ebp
mov dword [ecx + 0x250], eax
je 0x48b35d
jmp 0x48b329
call fcn.005ffe3f
add esp, 4
cmp eax, ebp
je 0x48b31c
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x34]
add esi, ecx
mov dword [eax], ecx
adc edi, edx
mov dword [eax + 8], esi
mov dword [eax + 0x10], ebp
mov dword [eax + 4], edx
mov dword [eax + 0xc], edi
jmp 0x48b31e
xor eax, eax
mov edx, dword [esp + 0x20]
cmp eax, ebp
mov dword [edx + 0x10], eax
je 0x48b35d
fld qword [ebx + 0x28]
fmul qword [0x6369f0]
mov dword [esp + 0x20], eax
call fcn.005e7794
mov ecx, dword [esp + 0x30]
add ecx, eax
mov eax, dword [esp + 0x34]
adc eax, edx
mov dword [esp + 0x30], ecx
mov dword [esp + 0x34], eax
mov ebx, dword [ebx]
cmp ebx, ebp
mov dword [esp + 0x1c], ebx
jne 0x48b1c6
lea ecx, [esp + 0xa0]
mov byte [esp + 0xec], 1
call fcn.00556300
jmp 0x48b768
mov edx, dword [esp + 0x38]
lea eax, [esp + 0x18]
lea ecx, [esp + 0x70]
push eax
push ecx
push ebx
push ebx
mov esi, 0x10
push 0x6a8834
push edx
mov dword [esp + 0x30], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x48b768
mov eax, dword [esp + 0x4c]
push ebx
push ebx
push 3
push ebx
push 3
push bind
mov dword [esp + 0x30], esi
push eax
xor esi, esi
xor edi, edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x48b411
lea ecx, [esp + 0x1c]
push ecx
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x48b3ea
cmp edi, ebx
jne 0x48b3ea
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jne 0x48b3fc
mov edx, dword [esp + 0x1c]
push 1
push ebx
push ebx
push edx
call fcn.005e9a70
add esi, eax
adc edi, edx
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp edi, ebx
jg 0x48b411
jl 0x48b40d
cmp esi, ebx
jae 0x48b411
xor esi, esi
xor edi, edi
push 0x18
call fcn.005ffe3f
add esp, 4
cmp eax, ebx
je 0x48b434
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 0x48b436
xor eax, eax
mov ecx, dword [esp + 0x2c]
cmp eax, ebx
mov dword [ecx + 0x250], eax
je 0x48b768
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x74]
cmp eax, 0xffffffff
je 0x48b768
push eax
lea edx, [esp + 0x84]
push 0x6a1150
push edx
call fcn.005e7bd3
add esp, 0xc
lea eax, [esp + 0x18]
lea ecx, [esp + 0x70]
lea edx, [esp + 0x80]
push eax
mov eax, dword [esp + 0x3c]
push ecx
push ebx
push ebx
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, ebx
jne 0x48b768
mov ecx, dword [0x6cd768]
mov dword [esp + 0x20], ecx
mov edx, dword [esp + 0x70]
mov eax, dword [esp + 0x4c]
push edx
push eax
lea ecx, [esp + 0x28]
push str._s_ld
push ecx
mov byte [esp + 0xfc], 4
call fcn.005fc86b
mov edx, dword [esp + 0x30]
add esp, 0x10
push ebx
push ebx
push 3
push ebx
push 3
push bind
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x48b571
lea eax, [esp + 0x1c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
xor ebp, ebp
cmp edi, 0xffffffff
jne 0x48b509
cmp ebp, ebx
jne 0x48b509
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, ebx
jne 0x48b587
mov ecx, dword [esp + 0x1c]
push 1
push ebx
push ebx
push ecx
call fcn.005e9a70
add edi, eax
push esi
adc ebp, edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x18
mov dword [esp + 0xf0], 4
call fcn.005ffe3f
add esp, 4
cmp eax, ebx
je 0x48b560
mov esi, dword [esp + 0x78]
mov ecx, esi
add ecx, edi
mov edi, dword [esp + 0x7c]
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 0x48b562
xor eax, eax
mov edx, dword [esp + 0x30]
cmp eax, ebx
mov dword [edx + 0x10], eax
je 0x48b5a7
mov dword [esp + 0x30], eax
lea ecx, [esp + 0x20]
mov byte [esp + 0xec], 1
call fcn.00603a3c
jmp 0x48b44c
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x20]
mov dword [esp + 0xec], 1
call fcn.00603a3c
jmp 0x48b768
lea ecx, [esp + 0x20]
mov byte [esp + 0xec], 1
call fcn.00603a3c
jmp 0x48b768
mov edx, dword [esp + 0x38]
lea eax, [esp + 0x18]
lea ecx, [esp + 0x50]
push eax
push ecx
push ebx
push ebx
push 0x6a8834
push edx
mov dword [esp + 0x30], 0x10
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x48b607
push ebp
call fcn.005ffe68
mov eax, dword [esp + 0x18]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add esp, 4
push eax
call esi
mov ecx, dword [esp + 0x38]
push ecx
call esi
jmp 0x48b791
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [esp + 0x1c], ebx
mov edx, dword [esp + 0x50]
lea eax, [esp + 0x70]
push edx
push str._dkf
push eax
xor esi, esi
xor edi, edi
call fcn.005e7bd3
add esp, 0xc
lea ecx, [esp + 0x20]
lea edx, [esp + 0x80]
lea eax, [esp + 0x70]
push ecx
mov ecx, dword [esp + 0x3c]
push edx
push ebx
push ebx
push eax
push ecx
mov dword [esp + 0x38], 0x10
call ebp
cmp eax, ebx
jne 0x48b697
mov eax, dword [esp + 0x88]
cmp eax, 0xffffffff
jne 0x48b685
mov eax, dword [esp + 0x5c]
mov ecx, dword [esp + 0x34]
cmp ecx, eax
mov ecx, dword [esp + 0x58]
jl 0x48b697
jg 0x48b677
cmp dword [esp + 0x30], ecx
jbe 0x48b697
mov esi, dword [esp + 0x30]
mov edi, dword [esp + 0x34]
sub esi, ecx
sbb edi, eax
jmp 0x48b697
mov ecx, dword [esp + 0x58]
cmp eax, ecx
jbe 0x48b693
sub eax, ecx
mov esi, eax
jmp 0x48b695
xor esi, esi
xor edi, edi
mov eax, dword [esp + 0x50]
push 0x18
cmp eax, ebx
jne 0x48b6d8
call fcn.005ffe3f
add esp, 4
cmp eax, ebx
je 0x48b6c2
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 0x48b6c4
xor eax, eax
mov edx, dword [esp + 0x2c]
cmp eax, ebx
mov dword [edx + 0x250], eax
je 0x48b768
jmp 0x48b71a
call fcn.005ffe3f
add esp, 4
cmp eax, ebx
je 0x48b70d
mov ebp, dword [esp + 0x58]
xor ebx, ebx
mov ecx, ebp
mov edx, ebx
add ecx, 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], ebx
mov dword [eax + 0xc], edx
jmp 0x48b70f
xor eax, eax
mov ecx, dword [esp + 0x1c]
cmp eax, ebx
mov dword [ecx + 0x10], eax
je 0x48b768
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x54]
cmp eax, 0xffffffff
je 0x48b768
push eax
lea edx, [esp + 0x94]
push 0x6a1150
push edx
call fcn.005e7bd3
add esp, 0xc
lea eax, [esp + 0x20]
lea ecx, [esp + 0x50]
lea edx, [esp + 0x90]
push eax
mov eax, dword [esp + 0x3c]
push ecx
push ebx
push ebx
push edx
push eax
mov dword [esp + 0x38], 0x10
call ebp
cmp eax, ebx
je 0x48b611
mov ecx, dword [esp + 0x4c]
push ecx
call fcn.005ffe68
mov edx, dword [esp + 0x3c]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add esp, 4
push edx
call esi
mov eax, dword [esp + 0x14]
push eax
call esi
mov ecx, dword [esp + 0x2c]
mov byte [ecx + 0xc], 1
lea ecx, [esp + 0x3c]
mov byte [esp + 0xec], 0
call fcn.00603a3c
lea ecx, [esp + 0x28]
mov dword [esp + 0xec], 0xffffffff
call fcn.00603a3c
mov ecx, dword [esp + 0xe4]
pop edi
mov dword fs:[0], ecx
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret