Function at 0x599560
Capabilities:
Set registry value

Disassembly:
push ebp
lea ebp, [esp - 0x230]
sub esp, 0x230
push 0xffffffffffffffff
push 0x63bfb0
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x70a308]
xor eax, ebp
mov dword [ebp + 0x22c], 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 + 0x1b8]
mov eax, dword [ebp + 0x238]
mov dword [esi], eax
mov ecx, dword [ebp + 0x23c]
mov dword [esi + 4], ecx
mov edx, dword [edi + 0xc]
cmp dword [edx + 0x310], 0
jne 0x59966f
mov eax, dword [edi + 0x10]
mov ebx, dword [sym.imp.USER32.dll_SendMessageA]
cmp dword [eax], 0
je 0x5995f4
lea ecx, [ebp + 0x238]
push ecx
push 0x1473
push 0x111
mov edx, dword [eax]
push edx
call ebx
mov eax, dword [edi + 0x14]
cmp dword [eax], 0
je 0x599623
mov ecx, dword [edi + 0x238]
mov dword [ebp - 0x3c], ecx
mov edx, dword [esi]
mov dword [ebp - 0x34], edx
mov ecx, dword [esi + 4]
mov dword [ebp - 0x30], ecx
lea edx, [ebp - 0x3c]
push edx
push 0x1393
push 0x111
mov eax, dword [eax]
push eax
call ebx
mov eax, dword [edi + 0x18]
cmp dword [eax], 0
je 0x599652
mov ecx, dword [edi + 0x238]
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 + 0x23c]
test eax, eax
je 0x59966f
push 8
push esi
push 0
push 0
push str.FileSize
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
cmp byte [ebp + 0x240], 0
je 0x599800
fild qword [ebp + 0x238]
fmul qword [0x689188]
fstp qword [ebp - 0x34]
mov byte [ebp - 0x12], 0
mov byte [ebp - 0x11], 0
mov eax, dword [ebp + 0x23c]
cmp eax, 1
jl 0x5996af
jg 0x5996a9
cmp dword [ebp + 0x238], 0
jbe 0x5996af
mov byte [ebp - 0x11], 1
jmp 0x5996c5
test eax, eax
jl 0x5996c5
jg 0x5996c1
cmp dword [ebp + 0x238], 0x80000000
jbe 0x5996c5
mov byte [ebp - 0x12], 1
or eax, 0xffffffff
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
xor ecx, ecx
mov word [ebp + 0x24], cx
xor eax, eax
mov dword [ebp + 0x18], eax
mov dword [ebp + 0x20], eax
xor edx, edx
mov word [ebp + 0x1c], dx
mov byte [ebp - 4], 1
cmp byte [ebp - 0x12], dl
jne 0x5996f0
cmp byte [ebp - 0x11], dl
je 0x5996f3
lea eax, [ebp + 0x24]
lea ecx, [ebp + 0x18]
push ecx
lea edx, [ebp - 0x20]
push edx
push 0x104
push eax
mov eax, dword [edi + 0xc]
mov ecx, dword [eax + 0x30]
push ecx
call fcn.005aeff0
add esp, 0x14
test eax, eax
je 0x5997f4
push 0
push 0xa
mov ebx, dword [ebp + 0x23c]
push ebx
mov esi, dword [ebp + 0x238]
push esi
call fcn.005fc580
sub eax, dword [edi + 0xc8]
sbb edx, dword [edi + 0xcc]
add eax, esi
adc edx, ebx
mov esi, dword [ebp - 0x1c]
cmp esi, edx
jg 0x599828
mov ecx, dword [ebp - 0x20]
jl 0x599757
cmp ecx, eax
ja 0x599828
and ecx, esi
cmp ecx, 0xffffffff
je 0x599828
mov dword [edi + 0x1c], 1
lea ecx, [ebp - 0x18]
call fcn.004024e0
mov byte [ebp - 4], 2
mov eax, dword [ebp + 0x18]
test eax, eax
jne 0x59977f
lea eax, [ebp + 0x1c]
push eax
mov edx, dword [ebp + 0x23c]
push edx
mov eax, dword [ebp + 0x238]
push eax
mov ecx, dword [edi + 0xc]
mov edx, dword [ecx + 8]
push edx
mov eax, dword [0x7104cc]
push eax
lea ecx, [ebp - 0x18]
push ecx
call fcn.00402f60
push 0x50030
push 0x64ed18
mov edx, dword [ebp - 0x18]
push edx
push 0
call fcn.00469b60
add esp, 0x28
push str.Not_enough_disk_space_to_store_files_chunks__canceling_download._n
mov ecx, edi
call fcn.00597fd0
mov eax, dword [edi + 0x1c0]
or eax, dword [edi + 0x1c4]
jne 0x5997e8
mov ecx, dword [edi + 0x20]
call fcn.00554ba0
mov ecx, dword [edi + 0xc]
mov byte [ecx + 0x16a], 1
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x18]
call fcn.00402550
mov byte [ebp - 4], 0
lea ecx, [ebp + 0x18]
call fcn.004011f0
wait
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x22c]
xor ecx, ebp
call fcn.005f85e7
add ebp, 0x230
mov esp, ebp
pop ebp
ret 0xc
cmp byte [ebp - 0x12], 0
jne 0x599838
cmp byte [ebp - 0x11], 0
je 0x599a10
xor esi, esi
cmp word [ebp + 0x24], si
je 0x599a10
push 0x68917c
lea edx, [ebp + 0x24]
push edx
call fcn.005fdd2a
add esp, 8
test eax, eax
je 0x59987c
cmp byte [ebp - 0x11], 0
je 0x599a0a
push str.FAT32
lea eax, [ebp + 0x24]
push eax
call fcn.005fdd2a
add esp, 8
test eax, eax
jne 0x599a0a
mov dword [edi + 0x1c], 1
mov dword [ebp + 0xc], esi
mov dword [ebp + 0x14], esi
xor ecx, ecx
mov word [ebp + 0x10], cx
mov byte [ebp - 4], 3
push 1
lea edx, [ebp + 0xc]
push edx
mov ecx, dword [edi + 0xc]
call fcn.00579980
mov eax, dword [0x710f74]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x5998b0
sub eax, edx
mov ebx, eax
mov eax, dword [ebp + 0xc]
cmp eax, esi
jne 0x5998c5
lea eax, [ebp + 0x10]
lea edx, [eax + 2]
jmp 0x5998d0
mov cx, word [eax]
add eax, 2
cmp cx, si
jne 0x5998d0
sub eax, edx
sar eax, 1
mov esi, eax
mov eax, dword [ebp + 0x18]
test eax, eax
jne 0x5998eb
lea eax, [ebp + 0x1c]
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x5998f0
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.005cfaa6
add esp, 4
mov esi, eax
xor eax, eax
cmp esi, eax
je 0x5999e7
mov dword [ebp], eax
mov dword [ebp + 8], eax
mov word [ebp + 4], ax
mov byte [ebp - 4], 4
mov ecx, dword [0x70f730]
push ecx
mov edx, dword [0x710f74]
push edx
lea ecx, [ebp]
call fcn.00401960
mov eax, dword [ebp + 0x18]
test eax, eax
jne 0x59995d
lea eax, [ebp + 0x1c]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x59996c
mov dword [ebp - 0x24], eax
jmp 0x599972
lea ecx, [ebp + 0x10]
mov dword [ebp - 0x24], ecx
mov eax, dword [ebp]
test eax, eax
je 0x59997e
mov dword [ebp - 0x28], eax
jmp 0x599984
lea edx, [ebp + 4]
mov dword [ebp - 0x28], edx
push 0x68917c
lea eax, [ebp + 0x24]
push eax
call fcn.005fdd2a
add esp, 8
neg eax
sbb eax, eax
and eax, 2
add eax, 2
push eax
lea ecx, [ebp + 0x24]
push ecx
mov edx, dword [ebp - 0x18]
push edx
sub esp, 8
fld qword [ebp - 0x34]
fstp qword [esp]
mov eax, dword [ebp - 0x24]
push eax
mov ecx, dword [ebp - 0x28]
push ecx
push ebx
push esi
call fcn.005f8bd2
push 0x50030
push 0x64ed18
push esi
push 0
call fcn.00469cf0
push esi
call fcn.005cfa9b
add esp, 0x38
mov byte [ebp - 4], 3
lea ecx, [ebp]
call fcn.004011f0
mov ecx, dword [edi + 0x20]
call fcn.00554ba0
mov edx, dword [edi + 0xc]
mov byte [edx + 0x16a], 1
mov byte [ebp - 4], 1
lea ecx, [ebp + 0xc]
call fcn.004011f0
jmp 0x5997f4
mov ebx, dword [ebp + 0x23c]
mov edi, dword [edi + 0xc]
cmp dword [edi + 0x3c], 0
je 0x599a37
cmp dword [edi + 0x34], 0
je 0x599a24
mov eax, dword [edi + 0x34]
jmp 0x599a27
lea eax, [edi + 0x38]
push eax
push ebx
mov eax, dword [ebp + 0x238]
push eax
mov ecx, edi
call fcn.005af450
mov byte [ebp - 4], 0
lea ecx, [ebp + 0x18]
call fcn.004011f0
wait
mov dword [ebp - 4], 0xffffffff
jmp 0x599801