Function at 0x5b57e0
Capabilities:
Set registry value

Disassembly:
push ebp
lea ebp, [esp - 0x23c]
sub esp, 0x23c
push 0xffffffffffffffff
push 0x665830
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x758898]
xor eax, ebp
mov dword [ebp + 0x238], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, ecx
mov dword [ebp - 0x2c], edi
mov dword [ebp - 4], 0
wait
lea esi, [edi + 0x1c0]
mov edx, dword [ebp + 0x244]
mov dword [esi], edx
mov ecx, dword [ebp + 0x248]
mov dword [esi + 4], ecx
mov eax, dword [edi + 0xc]
mov eax, dword [eax + 0x334]
test eax, eax
je 0x5b5858
cmp eax, 0x400
jne 0x5b5935
mov eax, dword [edi + 0x14]
cmp dword [eax], 0
je 0x5b588a
mov ebx, dword [edi + 0x240]
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x34], edx
mov dword [ebp - 0x30], ecx
lea ecx, [ebp - 0x3c]
push ecx
push 0x1393
push 0x111
mov edx, dword [eax]
push edx
mov ebx, dword [sym.imp.USER32.dll_SendMessageA]
call ebx
jmp 0x5b5890
mov ebx, dword [sym.imp.USER32.dll_SendMessageA]
mov eax, dword [edi + 0x10]
cmp dword [eax], 0
je 0x5b58ae
lea ecx, [ebp + 0x244]
push ecx
push 0x1473
push 0x111
mov edx, dword [eax]
push edx
call ebx
mov eax, dword [edi + 0x18]
cmp dword [eax], 0
je 0x5b58dd
mov ecx, dword [edi + 0x240]
mov dword [ebp - 0x4c], ecx
mov edx, dword [esi]
mov dword [ebp - 0x44], edx
mov ecx, dword [esi + 4]
mov dword [ebp - 0x40], ecx
lea edx, [ebp - 0x4c]
push edx
push 0x1393
push 0x111
mov eax, dword [eax]
push eax
call ebx
mov eax, dword [edi + 0x244]
test eax, eax
je 0x5b58fa
push 8
push esi
push 0
push 0
push str.FileSize
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [edi + 0xc]
cmp byte [eax + 0x33a], 0
je 0x5b5935
mov eax, dword [eax + 0x328]
test eax, eax
je 0x5b5935
mov ecx, dword [eax + 0x950]
test ecx, ecx
je 0x5b5935
mov edx, dword [ecx + 0x1c0]
mov esi, dword [ecx + 0x1c4]
mov eax, edx
or eax, esi
je 0x5b5935
push 0
push esi
push edx
call fcn.005b57e0
cmp byte [ebp + 0x24c], 0
je 0x5b5b24
fild qword [ebp + 0x244]
fmul qword [0x6b4e88]
fstp qword [ebp - 0x34]
mov byte [ebp - 0x12], 0
mov byte [ebp - 0x11], 0
mov eax, dword [ebp + 0x248]
cmp eax, 1
jl 0x5b5975
jg 0x5b596f
cmp dword [ebp + 0x244], 0
jbe 0x5b5975
mov byte [ebp - 0x11], 1
jmp 0x5b598b
test eax, eax
jl 0x5b598b
jg 0x5b5987
cmp dword [ebp + 0x244], 0x80000000
jbe 0x5b598b
mov byte [ebp - 0x12], 1
or eax, 0xffffffff
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
xor ecx, ecx
mov word [ebp + 0x30], cx
xor eax, eax
mov dword [ebp + 0x24], eax
mov dword [ebp + 0x2c], eax
xor edx, edx
mov word [ebp + 0x28], dx
mov byte [ebp - 4], 1
cmp byte [ebp - 0x12], dl
jne 0x5b59b6
cmp byte [ebp - 0x11], dl
je 0x5b59b9
lea eax, [ebp + 0x30]
lea ecx, [ebp + 0x24]
push ecx
lea edx, [ebp - 0x24]
push edx
push 0x104
push eax
mov eax, dword [edi + 0xc]
mov ecx, dword [eax + 0x30]
push ecx
call fcn.005cc360
add esp, 0x14
test eax, eax
je 0x5b5b18
push 0
push 0xa
mov ebx, dword [ebp + 0x248]
push ebx
mov esi, dword [ebp + 0x244]
push esi
call fcn.00624b70
sub eax, dword [edi + 0xc8]
sbb edx, dword [edi + 0xcc]
add eax, esi
adc edx, ebx
mov esi, dword [ebp - 0x20]
cmp esi, edx
jg 0x5b5b4c
mov ecx, dword [ebp - 0x24]
jl 0x5b5a1d
cmp ecx, eax
ja 0x5b5b4c
and ecx, esi
cmp ecx, 0xffffffff
je 0x5b5b4c
mov dword [edi + 0x1c], 1
lea ecx, [ebp - 0x1c]
call fcn.004024f0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x18]
call fcn.004024f0
mov byte [ebp - 4], 3
mov edx, dword [edi + 0xc]
mov eax, dword [edx + 8]
push eax
push str.__s_
lea ecx, [ebp - 0x18]
push ecx
call fcn.00402f60
add esp, 0xc
mov edx, dword [edi + 0xc]
mov eax, dword [edx + 8]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x5b5a68
sub eax, edx
cmp eax, 0x24
jbe 0x5b5a8f
push 0x3f
mov eax, dword [ebp - 0x18]
push eax
call fcn.00622170
add esp, 8
test eax, eax
je 0x5b5a8f
mov byte [eax], 0x22
inc eax
mov byte [eax], 0
mov eax, dword [ebp + 0x24]
test eax, eax
jne 0x5b5a99
lea eax, [ebp + 0x28]
push eax
mov ecx, dword [ebp + 0x248]
push ecx
mov edx, dword [ebp + 0x244]
push edx
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [0x75ebcc]
push ecx
lea edx, [ebp - 0x1c]
push edx
call fcn.00402f60
push 0x50030
push 0x678d88
mov eax, dword [ebp - 0x1c]
push eax
push 0
call fcn.00473680
add esp, 0x28
push str.Not_enough_disk_space_to_store_files_chunks__canceling_download._n
mov ecx, edi
call fcn.005b42c0
mov ecx, dword [edi + 0x1c8]
or ecx, dword [edi + 0x1cc]
jne 0x5b5b00
mov ecx, dword [edi + 0x20]
call fcn.0056b100
mov edx, dword [edi + 0xc]
mov byte [edx + 0x182], 1
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x18]
call fcn.00402560
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1c]
call fcn.00402560
mov byte [ebp - 4], 0
lea ecx, [ebp + 0x24]
call fcn.00401210
wait
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x238]
xor ecx, ebp
call fcn.00620b8d
add ebp, 0x23c
mov esp, ebp
pop ebp
ret 0xc
cmp byte [ebp - 0x12], 0
jne 0x5b5b5c
cmp byte [ebp - 0x11], 0
je 0x5b5ea0
cmp word [ebp + 0x30], 0
je 0x5b5ea0
push 0x6b4e80
lea eax, [ebp + 0x30]
push eax
call fcn.0062609a
add esp, 8
test eax, eax
je 0x5b5b9f
cmp byte [ebp - 0x11], 0
je 0x5b5e9a
push str.FAT32
lea ecx, [ebp + 0x30]
push ecx
call fcn.0062609a
add esp, 8
test eax, eax
jne 0x5b5e9a
mov eax, dword [ebp + 0x24]
xor esi, esi
cmp eax, esi
jne 0x5b5bab
lea eax, [ebp + 0x28]
push eax
push 0x6b4e6c
call fcn.0062609a
add esp, 8
test eax, eax
je 0x5b5d11
push str.Checking_drive_type_n
mov ecx, edi
call fcn.005b42c0
mov eax, dword [ebp + 0x24]
cmp eax, esi
mov ecx, eax
jne 0x5b5bd9
lea ecx, [ebp + 0x28]
mov eax, dword [0x75f820]
cmp eax, esi
jne 0x5b5be7
mov eax, 0x75f824
push ecx
push eax
call fcn.0062609a
add esp, 8
test eax, eax
jne 0x5b5c06
push str.This_is_google_drive_n
mov ecx, edi
call fcn.005b42c0
jmp 0x5b5b18
mov dword [ebp + 0x18], esi
mov dword [ebp + 0x20], esi
xor edx, edx
mov word [ebp + 0x1c], dx
mov byte [ebp - 4], 4
mov eax, dword [ebp + 0x24]
cmp eax, esi
jne 0x5b5c20
lea eax, [ebp + 0x28]
lea ecx, [ebp + 0x18]
push ecx
push eax
call fcn.00532600
add esp, 8
test eax, eax
je 0x5b5cf9
mov eax, dword [ebp + 0x18]
cmp eax, esi
jne 0x5b5c3f
lea eax, [ebp + 0x1c]
push eax
lea ecx, [ebp - 0x1c]
call fcn.00418220
mov bl, 5
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x18]
call fcn.004024f0
mov byte [ebp - 4], 6
mov edx, dword [ebp - 0x1c]
push edx
push str.Drive_type___s_n
lea eax, [ebp - 0x18]
push eax
call fcn.00402f60
add esp, 0xc
mov ecx, dword [ebp - 0x18]
push ecx
mov ecx, edi
call fcn.005b42c0
mov eax, dword [ebp + 0x18]
test eax, eax
jne 0x5b5c83
lea eax, [ebp + 0x1c]
push str.Google_Drive
push eax
call fcn.0062609a
add esp, 8
test eax, eax
jne 0x5b5cde
mov eax, dword [ebp + 0x24]
test eax, eax
jne 0x5b5c9f
lea eax, [ebp + 0x28]
push eax
mov ecx, 0x75f820
call fcn.004017e0
push str.This_is_google_drive_n
mov ecx, edi
call fcn.005b42c0
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x18]
call fcn.00402560
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x1c]
call fcn.00402560
mov byte [ebp - 4], 1
lea ecx, [ebp + 0x18]
call fcn.00401210
jmp 0x5b5b18
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x18]
call fcn.00402560
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x1c]
call fcn.00402560
xor esi, esi
jmp 0x5b5d05
push str.Drive_type_not_found_n
mov ecx, edi
call fcn.005b42c0
mov byte [ebp - 4], 1
lea ecx, [ebp + 0x18]
call fcn.00401210
mov dword [edi + 0x1c], 1
mov dword [ebp + 0xc], esi
mov dword [ebp + 0x14], esi
xor edx, edx
mov word [ebp + 0x10], dx
mov byte [ebp - 4], 7
push esi
push 1
lea eax, [ebp + 0xc]
push eax
mov ecx, dword [edi + 0xc]
call fcn.00591de0
mov eax, dword [0x75f674]
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x5b5d40
sub eax, edx
mov ebx, eax
mov eax, dword [ebp + 0xc]
cmp eax, esi
jne 0x5b5d55
lea eax, [ebp + 0x10]
lea edx, [eax + 2]
jmp 0x5b5d60
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x5b5d60
sub eax, edx
sar eax, 1
mov esi, eax
mov eax, dword [ebp + 0x24]
test eax, eax
jne 0x5b5d7b
lea eax, [ebp + 0x28]
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x5b5d80
sub eax, edx
sar eax, 1
add eax, esi
lea ebx, [eax + ebx + 0x100]
xor ecx, ecx
mov eax, ebx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.005f4e47
add esp, 4
mov esi, eax
test esi, esi
je 0x5b5e77
xor eax, eax
mov dword [ebp], eax
mov dword [ebp + 8], eax
mov word [ebp + 4], ax
mov byte [ebp - 4], 8
mov ecx, dword [0x75dd28]
push ecx
mov edx, dword [0x75f674]
push edx
lea ecx, [ebp]
call fcn.00401970
mov eax, dword [ebp + 0x24]
test eax, eax
jne 0x5b5ded
lea eax, [ebp + 0x28]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x5b5dfc
mov dword [ebp - 0x18], eax
jmp 0x5b5e02
lea ecx, [ebp + 0x10]
mov dword [ebp - 0x18], ecx
mov eax, dword [ebp]
test eax, eax
je 0x5b5e0e
mov dword [ebp - 0x28], eax
jmp 0x5b5e14
lea edx, [ebp + 4]
mov dword [ebp - 0x28], edx
push 0x6b4e80
lea eax, [ebp + 0x30]
push eax
call fcn.0062609a
add esp, 8
neg eax
sbb eax, eax
and eax, 2
add eax, 2
push eax
lea ecx, [ebp + 0x30]
push ecx
mov edx, dword [ebp - 0x1c]
push edx
sub esp, 8
fld qword [ebp - 0x34]
fstp qword [esp]
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0x28]
push ecx
push ebx
push esi
call fcn.00621195
push 0x50030
push 0x678d88
push esi
push 0
call fcn.00473810
push esi
call fcn.005f4e52
add esp, 0x38
mov byte [ebp - 4], 7
lea ecx, [ebp]
call fcn.00401210
mov ecx, dword [edi + 0x20]
call fcn.0056b100
mov edx, dword [edi + 0xc]
mov byte [edx + 0x182], 1
mov byte [ebp - 4], 1
lea ecx, [ebp + 0xc]
call fcn.00401210
jmp 0x5b5b18
mov ebx, dword [ebp + 0x248]
mov edi, dword [edi + 0xc]
cmp dword [edi + 0x3c], 0
je 0x5b5ec7
cmp dword [edi + 0x34], 0
je 0x5b5eb4
mov eax, dword [edi + 0x34]
jmp 0x5b5eb7
lea eax, [edi + 0x38]
push eax
push ebx
mov eax, dword [ebp + 0x244]
push eax
mov ecx, edi
call fcn.005cfa70
mov byte [ebp - 4], 0
lea ecx, [ebp + 0x24]
call fcn.00401210
wait
mov dword [ebp - 4], 0xffffffff
jmp 0x5b5b25