Function at 0x5b5a40
Capabilities:
Get file size
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
lea ebp, [esp - 0x90c]
sub esp, 0x90c
push 0xffffffffffffffff
push 0x664e78
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x758898]
xor eax, ebp
mov dword [ebp + 0x908], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov ebx, ecx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], 0
wait
mov eax, dword [ebx + 0xc]
mov esi, dword [eax + 0xe0]
test esi, esi
jne 0x5b5abc
wait
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x908]
xor ecx, ebp
call fcn.0062023e
add ebp, 0x90c
mov esp, ebp
pop ebp
ret
cmp dword [eax + 0x334], 0
jne 0x5b5a96
cmp dword [esi + 0x800], 0x800
jl 0x5b5a96
push 0x800
push 0
lea eax, [ebp]
push eax
call fcn.00620920
add esp, 0xc
mov eax, 0x800
mov ecx, esi
lea edx, [ebp]
mov edi, edi
cmp eax, 4
jb 0x5b5a96
mov esi, dword [edx]
cmp esi, dword [ecx]
jne 0x5b5b06
sub eax, 4
add ecx, 4
add edx, 4
jmp 0x5b5af0
mov edi, dword [ebx + 0xb0]
test edi, edi
je 0x5b5b13
mov edi, dword [edi + 0x58]
mov dword [ebp - 0x38], edi
mov byte [ebp - 0x11], 0
lea ebx, [ebx]
test edi, edi
je 0x5b5cb7
push 0
push 0
push 3
push 0
push 3
push 0x80000000
mov ecx, dword [edi + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 0x18], esi
cmp esi, 0xffffffff
je 0x5b5caf
mov dword [ebp - 0x20], 0
lea edx, [ebp - 0x20]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
xor ecx, ecx
cmp eax, 0xffffffff
jne 0x5b5b7a
test ecx, ecx
jne 0x5b5b7a
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x5b5ca5
push 0
push 0
push esi
mov eax, dword [ebx + 0xc]
mov ecx, dword [eax + 0xe0]
push ecx
call fcn.005b4560
add esp, 0x10
test al, al
je 0x5b5b99
mov byte [ebp - 0x11], 1
mov dword [ebp - 0x34], 0x10
mov edx, dword [edi + 0x60]
push edx
push 0x67942c
lea eax, [ebp + 0x900]
push eax
call fcn.0062311b
add esp, 0xc
lea ecx, [ebp - 0x34]
push ecx
lea edx, [ebp - 0x30]
push edx
push 0
push 0
lea eax, [ebp + 0x900]
push eax
mov ecx, dword [ebx + 0x104]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x5b5ca5
mov edx, dword [edi + 8]
mov esi, dword [edi + 0xc]
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x24]
cmp eax, edx
jne 0x5b5bf4
cmp ecx, esi
je 0x5b5c32
cmp ecx, esi
jg 0x5b5c08
jl 0x5b5bfe
cmp eax, edx
jae 0x5b5c08
sub edx, eax
sbb esi, ecx
mov eax, edx
mov ecx, esi
jmp 0x5b5c0c
sub eax, edx
sbb ecx, esi
push ecx
push eax
mov edx, dword [ebp - 0x18]
push edx
mov eax, dword [ebx + 0xc]
mov ecx, dword [eax + 0xe0]
push ecx
call fcn.005b4560
add esp, 0x10
test al, al
je 0x5b5c2c
mov byte [ebp - 0x11], 1
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x24]
cmp dword [edi], 0
je 0x5b5ca5
mov esi, dword [edi]
mov edx, dword [esi + 0x60]
mov esi, dword [esi + 0x64]
cmp eax, edx
jne 0x5b5c47
cmp ecx, esi
je 0x5b5ca5
mov ebx, dword [edi + 8]
cmp ebx, edx
jne 0x5b5c55
mov ebx, dword [edi + 0xc]
cmp ebx, esi
je 0x5b5ca2
cmp ecx, esi
jg 0x5b5c69
jl 0x5b5c5f
cmp eax, edx
jae 0x5b5c69
sub edx, eax
sbb esi, ecx
mov eax, edx
mov ecx, esi
jmp 0x5b5c6d
sub eax, edx
sbb ecx, esi
push ecx
push eax
mov edx, dword [ebp - 0x18]
push edx
mov ebx, dword [ebp - 0x1c]
mov eax, dword [ebx + 0xc]
mov ecx, dword [eax + 0xe0]
push ecx
call fcn.005b4560
add esp, 0x10
test al, al
je 0x5b5ca5
mov byte [ebp - 0x11], 1
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [edi + 0x58]
jmp 0x5b5b20
mov ebx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [edi + 0x58]
jmp 0x5b5b20
cmp dword [ebx + 0xf4], 0
je 0x5b5df1
mov eax, dword [ebx + 0x240]
test eax, eax
je 0x5b5ce5
push eax
push str.SoftwareDownloadManager_ldChList
lea eax, [ebp + 0x800]
push eax
call fcn.0062311b
add esp, 0xc
jmp 0x5b5d07
mov ecx, dword [ebx + 0x160]
push ecx
mov edx, dword [ebx + 0x15c]
push edx
push str.SoftwareDownloadManagerGrabberStsProjects_ld_ldChList
lea eax, [ebp + 0x800]
push eax
call fcn.0062311b
add esp, 0x10
xor edi, edi
xor esi, esi
jmp 0x5b5d10
cmp esi, 0xffffffff
je 0x5b5df1
push esi
push 0x67942c
lea ecx, [ebp + 0x900]
push ecx
call fcn.0062311b
add esp, 0xc
mov dword [ebp - 0x1c], 0x10
lea edx, [ebp - 0x1c]
push edx
lea eax, [ebp - 0x30]
push eax
push edi
push edi
lea ecx, [ebp + 0x900]
push ecx
mov edx, dword [ebx + 0x104]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x5b5df1
cmp esi, edi
je 0x5b5de9
push esi
mov eax, dword [ebx + 0xb0]
mov ecx, dword [eax + 0x10]
push ecx
push str._s_d
lea edx, [ebp + 0x3f0]
push edx
call fcn.0040f8d0
add esp, 0x10
push edi
push edi
push 3
push edi
push 3
push 0x80000000
lea eax, [ebp + 0x3f0]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x5b5de9
mov dword [ebp - 0x18], edi
lea ecx, [ebp - 0x18]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
xor ecx, ecx
cmp eax, 0xffffffff
jne 0x5b5dc5
cmp ecx, edi
jne 0x5b5dc5
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x5b5de2
push edi
push edi
push esi
mov edx, dword [ebx + 0xc]
mov eax, dword [edx + 0xe0]
push eax
call fcn.005b4560
add esp, 0x10
test al, al
je 0x5b5de2
mov byte [ebp - 0x11], 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp - 0x2c]
jmp 0x5b5d10
cmp byte [ebp - 0x11], 0
je 0x5b5f99
push 0x6b4e40
mov ecx, ebx
call fcn.005b3e00
lea ecx, [ebp - 0x18]
call fcn.00402510
mov byte [ebp - 4], 1
mov esi, dword [ebp - 0x38]
mov ecx, dword [ebx + 0xb0]
xor edi, edi
mov dword [ecx + 0x58], edi
cmp esi, edi
je 0x5b5ed5
cmp dword [esi], edi
je 0x5b5e36
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 0xc]
call eax
mov ecx, dword [esi + 0x10]
push ecx
call fcn.00623da3
add esp, 4
cmp eax, 0xffffffff
jne 0x5b5e80
mov edx, dword [esi + 0x10]
push edx
lea ecx, [ebp - 0x1c]
call fcn.00417be0
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x1c]
push eax
push str.Could_not_delete_temp_file__s_n
lea ecx, [ebp - 0x18]
push ecx
call fcn.00402f80
add esp, 0xc
mov edx, dword [ebp - 0x18]
push edx
mov ecx, ebx
call fcn.005b3e00
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1c]
jmp 0x5b5eb7
mov eax, dword [esi + 0x10]
push eax
lea ecx, [ebp - 0x20]
call fcn.00417be0
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x20]
push ecx
push str.Deleting_temp_file__s_n
lea edx, [ebp - 0x18]
push edx
call fcn.00402f80
add esp, 0xc
mov eax, dword [ebp - 0x18]
push eax
mov ecx, ebx
call fcn.005b3e00
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x20]
call fcn.00402580
mov ecx, esi
mov esi, dword [esi + 0x58]
cmp ecx, edi
je 0x5b5e21
push 1
call fcn.00554b70
jmp 0x5b5e21
lea ecx, [ebx + 0x28]
call fcn.00555ee0
mov eax, dword [ebx + 0x104]
cmp eax, edi
je 0x5b5f0b
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x2c], 0xffffffff
push 0x10
lea ecx, [ebp - 0x30]
push ecx
push edi
push edi
push 0x687b48
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [ebx + 0xc8], edi
mov dword [ebx + 0xcc], edi
mov dword [ebx + 0xf4], edi
mov eax, dword [ebx + 0xb0]
cmp eax, edi
je 0x5b5f79
mov dword [eax + 0x58], edi
mov eax, dword [ebx + 0xb0]
cmp dword [eax], edi
je 0x5b5f8d
mov edx, dword [eax]
mov ecx, dword [edx + 0x58]
mov eax, dword [edx + 0x5c]
cmp eax, edi
jl 0x5b5f4d
jg 0x5b5f46
cmp ecx, edi
jbe 0x5b5f4d
sub ecx, 1
sbb eax, edi
jmp 0x5b5f51
xor ecx, ecx
xor eax, eax
mov dword [edx + 0x78], ecx
mov dword [edx + 0x7c], eax
mov edx, dword [ebx + 0xb0]
mov eax, dword [edx]
mov ecx, dword [eax + 0x80]
mov dword [ebx + 0x1c8], ecx
mov edx, dword [eax + 0x84]
mov dword [ebx + 0x1cc], edx
jmp 0x5b5f8d
mov dword [ebx + 0x1c8], edi
mov dword [ebx + 0x1cc], edi
fldz
fstp qword [ebx + 0x190]
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x18]
call fcn.00402580
wait
mov dword [ebp - 4], 0xffffffff
jmp 0x5b5a97