Function at 0x412fcc
Capabilities:
Check http status code
Check if file exists
Delete file

Disassembly:
push 0x21c
mov eax, 0x488305
call fcn.0044465a
push 0x7d0
mov edi, str.kvStoreInfo
xor ebx, ebx
push edi
mov ecx, 0x490e08
mov dword [ebp - 0xb4], ebx
call fcn.004118ae
mov esi, eax
cmp esi, ebx
je 0x413823
push esi
lea ecx, [ebp - 0x88]
call fcn.0040344e
push esi
mov dword [ebp - 4], ebx
call fcn.0041f4d9
push ebx
push ebx
lea eax, [ebp - 0x12c]
call fcn.0042a348
lea eax, [ebp - 0x228]
push eax
mov byte [ebp - 4], 3
call fcn.00426295
lea ecx, [ebp - 0x12c]
push ecx
lea ecx, [ebp - 0x88]
push ecx
mov byte [ebp - 4], 4
push eax
mov dword [ebp - 0xb4], 1
call fcn.004262f9
test al, al
je 0x413069
cmp byte [ebp - 0x124], 7
mov byte [ebp - 0xa5], bl
je 0x413070
mov byte [ebp - 0xa5], 1
lea eax, [ebp - 0x228]
mov dword [ebp - 4], 3
call fcn.00407c4c
cmp byte [ebp - 0xa5], bl
je 0x41309a
push str.invalid_kvstore_info
call fcn.0041fc97
pop ecx
jmp 0x413807
push edi
lea eax, [ebp - 0xa4]
push str.Softwareprojonepodlp_
push eax
call fcn.004012e7
add esp, 0xc
push ebx
push ebx
lea eax, [ebp - 0x144]
call fcn.0042a348
lea eax, [ebp - 0x228]
push eax
mov byte [ebp - 4], 8
call fcn.00426295
lea ecx, [ebp - 0x144]
push ecx
lea ecx, [ebp - 0xa4]
push ecx
mov byte [ebp - 4], 9
push eax
mov dword [ebp - 0xb4], 2
call fcn.004262f9
test al, al
je 0x413101
cmp byte [ebp - 0x13c], 7
mov byte [ebp - 0xa5], bl
je 0x413108
mov byte [ebp - 0xa5], 1
lea eax, [ebp - 0x228]
mov dword [ebp - 4], 8
call fcn.00407c4c
cmp byte [ebp - 0xa5], bl
je 0x413140
sub esp, 0x18
mov dword [ebp - 0xbc], esp
push 7
pop edx
mov ebx, esp
call fcn.00429369
lea edi, [ebp - 0x144]
call fcn.004296ef
call fcn.0041c358
xor edx, edx
mov ecx, 0x2710
div ecx
push edx
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x114]
push eax
lea ecx, [ebp - 0x12c]
call fcn.0042a67c
lea eax, [ebp - 0xfc]
push eax
lea ecx, [ebp - 0x144]
mov byte [ebp - 4], 0xa
call fcn.0042a67c
push 7
pop edx
lea ebx, [ebp - 0x194]
mov byte [ebp - 4], 0xb
call fcn.00429369
mov byte [ebp - 4], 0xc
mov esi, dword [ebp - 0x108]
cmp esi, dword [ebp - 0x104]
jbe 0x4131a6
call fcn.004437aa
mov eax, dword [ebp - 0x114]
mov dword [ebp - 0xb0], eax
mov eax, dword [ebp - 0x104]
mov dword [ebp - 0xac], esi
mov dword [ebp - 0xbc], eax
cmp dword [ebp - 0x108], eax
jbe 0x4131d1
call fcn.004437aa
mov eax, dword [ebp - 0x114]
mov dword [ebp - 0xc4], eax
mov eax, dword [ebp - 0xb0]
test eax, eax
je 0x4131ef
cmp eax, dword [ebp - 0xc4]
je 0x4131f4
call fcn.004437aa
mov eax, dword [ebp - 0xbc]
cmp dword [ebp - 0xac], eax
je 0x413614
lea esi, [ebp - 0xb0]
call fcn.00404dde
push eax
lea ecx, [ebp - 0x4c]
call fcn.00403470
mov byte [ebp - 4], 0xd
call fcn.00404dde
mov ecx, eax
lea edi, [ebp - 0x30]
call fcn.00412ece
and dword [ebp - 0xb8], 0
push 8
mov byte [ebp - 4], 0xe
mov eax, dword [ebp - 0x2c]
pop ebx
cmp dword [ebp - 0x18], ebx
jae 0x413246
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x413293
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x6c]
push eax
call fcn.0040121b
pop ecx
pop ecx
mov byte [ebp - 4], 0xf
cmp dword [eax + 0x18], ebx
jb 0x41326e
mov eax, dword [eax + 4]
jmp 0x413271
add eax, 4
push eax
push str.local_kvstore__s_not_found__update_now
call fcn.0041fa04
pop ecx
pop ecx
push 0
push 1
lea esi, [ebp - 0x6c]
mov byte [ebp - 4], 0xe
call fcn.00403d0d
jmp 0x413443
lea esi, [ebp - 0xb0]
call fcn.00404dde
push eax
lea eax, [ebp - 0xfc]
call fcn.00412f6b
pop ecx
test eax, eax
jne 0x4132d7
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x6c]
push eax
call fcn.0040121b
pop ecx
pop ecx
mov byte [ebp - 4], 0x10
cmp dword [eax + 0x18], ebx
jb 0x4132cc
mov eax, dword [eax + 4]
jmp 0x4132cf
add eax, 4
push eax
push str.new_kvstore__s_found__update_now
jmp 0x413277
lea eax, [ebp - 0x12c]
push eax
lea eax, [ebp - 0x4c]
call fcn.0042a649
push eax
lea ebx, [ebp - 0x6c]
call fcn.004294d8
lea eax, [ebp - 0x144]
push eax
lea eax, [ebp - 0x4c]
mov byte [ebp - 4], 0x11
call fcn.0042a649
push eax
lea ebx, [ebp - 0x17c]
call fcn.004294d8
mov byte [ebp - 4], 0x12
mov al, byte [ebp - 0x64]
cmp al, byte [ebp - 0x174]
je 0x413339
mov esi, ebx
mov byte [ebp - 4], 0x11
call fcn.0042966c
lea esi, [ebp - 0x6c]
mov byte [ebp - 4], 0xe
call fcn.0042966c
jmp 0x4135e8
lea eax, [ebp - 0x17c]
push eax
lea ecx, [ebp - 0xe4]
call fcn.0042aa9b
mov esi, eax
lea eax, [ebp - 0x6c]
push eax
lea ecx, [ebp - 0x160]
mov byte [ebp - 4], 0x13
call fcn.0042aa9b
mov ecx, esi
mov byte [ebp - 4], 0x14
call fcn.004058be
xor esi, esi
xor edi, edi
push esi
inc edi
push edi
lea ecx, [ebp - 0x160]
mov bl, al
call fcn.00403c15
push esi
push edi
lea ecx, [ebp - 0xe4]
mov byte [ebp - 4], 0x12
call fcn.00403c15
test bl, bl
je 0x4133d4
lea eax, [ebp - 0x12c]
push eax
lea eax, [ebp - 0x4c]
call fcn.0042a649
sub esp, 0x18
mov ebx, esp
mov dword [ebp - 0xc8], esp
push eax
call fcn.004294d8
lea eax, [ebp - 0x194]
push eax
lea eax, [ebp - 0x4c]
mov byte [ebp - 4], 0x15
call fcn.0042a649
mov edi, eax
mov byte [ebp - 4], 0x12
call fcn.004296ef
jmp 0x413418
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0xe4]
push eax
call fcn.0040121b
pop ecx
pop ecx
mov byte [ebp - 4], 0x16
cmp dword [eax + 0x18], 8
jb 0x4133f5
mov eax, dword [eax + 4]
jmp 0x4133f8
add eax, 4
push eax
push str.kvstore__s_changed__update_now
call fcn.0041fa04
pop ecx
pop ecx
push esi
push edi
lea esi, [ebp - 0xe4]
call fcn.00403d0d
mov dword [ebp - 0xb8], edi
lea esi, [ebp - 0x17c]
mov byte [ebp - 4], 0x11
call fcn.0042966c
lea esi, [ebp - 0x6c]
mov byte [ebp - 4], 0xe
call fcn.0042966c
cmp dword [ebp - 0xb8], 0
je 0x4135e8
push 8
pop ebx
mov edi, dword [ebp - 0x2c]
cmp dword [ebp - 0x18], ebx
jae 0x41344e
lea edi, [ebp - 0x2c]
call fcn.0041b9e3
and dword [ebp - 0xb4], 0
push 1
lea ecx, [ebp - 0xe4]
call fcn.00420d9c
pop ecx
mov byte [ebp - 4], 0x17
cmp dword [ebp - 0x34], 0x10
mov ecx, dword [ebp - 0x48]
jae 0x413478
lea ecx, [ebp - 0x48]
cmp dword [eax + 0x18], 0x10
jb 0x413483
mov eax, dword [eax + 4]
jmp 0x413486
add eax, 4
push ecx
push 0x32e3
push eax
push str.https:___s:_d_kvstore__s
lea esi, [ebp - 0x6c]
call fcn.0041dc15
add esp, 0x10
xor esi, esi
push esi
push 1
lea ecx, [ebp - 0xe4]
mov byte [ebp - 4], 0x19
call fcn.00403c15
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp - 0x160]
push eax
call fcn.00422494
pop ecx
pop ecx
push 0xffffffffffffffff
push esi
push eax
lea ecx, [ebp - 0x6c]
mov byte [ebp - 4], 0x1a
call fcn.00403a7a
push esi
push 1
lea ecx, [ebp - 0x160]
mov byte [ebp - 4], 0x19
call fcn.00403c15
mov ecx, dword [ebp - 0x2c]
cmp dword [ebp - 0x18], ebx
jae 0x4134f0
lea ecx, [ebp - 0x2c]
cmp dword [ebp - 0x54], 0x10
mov eax, dword [ebp - 0x68]
jae 0x4134fc
lea eax, [ebp - 0x68]
lea edx, [ebp - 0xb4]
push edx
push ecx
push eax
call fcn.0041fe6a
test eax, eax
je 0x413585
cmp dword [ebp - 0xb4], 0xc8
jne 0x413585
lea eax, [ebp - 0x12c]
push eax
lea eax, [ebp - 0x4c]
call fcn.0042a649
sub esp, 0x18
mov ebx, esp
mov dword [ebp - 0xc8], esp
push eax
call fcn.004294d8
lea eax, [ebp - 0x194]
push eax
lea eax, [ebp - 0x4c]
mov byte [ebp - 4], 0x1b
call fcn.0042a649
mov edi, eax
mov byte [ebp - 4], 0x19
call fcn.004296ef
cmp dword [ebp - 0x34], 0x10
mov eax, dword [ebp - 0x48]
jae 0x413564
lea eax, [ebp - 0x48]
push eax
mov esi, str.KVSTORE_CHANGED
push esi
call fcn.0041f529
cmp dword [ebp - 0x34], 0x10
mov eax, dword [ebp - 0x48]
jae 0x41357c
lea eax, [ebp - 0x48]
push eax
push esi
call fcn.0041fe42
jmp 0x4135dc
mov eax, dword [ebp - 0x2c]
cmp dword [ebp - 0x18], ebx
jae 0x413590
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x160]
push eax
call fcn.0040121b
pop ecx
pop ecx
mov byte [ebp - 4], 0x1c
cmp dword [eax + 0x18], ebx
jb 0x4135b7
mov eax, dword [eax + 4]
jmp 0x4135ba
add eax, 4
push dword [ebp - 0xb4]
push eax
push str.kvstore__s_download_failed:_d
call fcn.0041fc97
add esp, 0xc
push esi
push 1
lea esi, [ebp - 0x160]
call fcn.00403d0d
push 0
push 1
lea ecx, [ebp - 0x6c]
call fcn.00403c15
push 0
push 1
lea esi, [ebp - 0x30]
call fcn.00403d0d
push 0
push 1
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 0xc
call fcn.00403c15
lea esi, [ebp - 0xb0]
call fcn.0040376f
jmp 0x4131dd
mov esi, dword [ebp - 0xf0]
cmp esi, dword [ebp - 0xec]
jbe 0x413627
call fcn.004437aa
mov ebx, dword [ebp - 0xec]
mov eax, dword [ebp - 0xfc]
mov dword [ebp - 0xb0], eax
mov dword [ebp - 0xac], esi
cmp dword [ebp - 0xf0], ebx
jbe 0x41364c
call fcn.004437aa
mov eax, dword [ebp - 0xfc]
mov dword [ebp - 0xc4], eax
mov eax, dword [ebp - 0xb0]
test eax, eax
je 0x41366a
cmp eax, dword [ebp - 0xc4]
je 0x41366f
call fcn.004437aa
cmp dword [ebp - 0xac], ebx
je 0x41376c
lea esi, [ebp - 0xb0]
call fcn.00404dde
push eax
lea ecx, [ebp - 0x30]
call fcn.00403470
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x114]
mov byte [ebp - 4], 0x1d
call fcn.00412f6b
pop ecx
test eax, eax
jne 0x41374c
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0xe4]
push eax
call fcn.0040121b
pop ecx
pop ecx
mov byte [ebp - 4], 0x1e
cmp dword [eax + 0x18], 8
jb 0x4136cc
mov eax, dword [eax + 4]
jmp 0x4136cf
add eax, 4
push eax
push str.kvstore__s_removed__clear_now
call fcn.0041fa04
pop ecx
pop ecx
push 0
push 1
lea esi, [ebp - 0xe4]
mov byte [ebp - 4], 0x1d
call fcn.00403d0d
lea ecx, [ebp - 0x30]
lea edi, [ebp - 0xe4]
call fcn.00412ece
cmp dword [eax + 0x18], 8
jb 0x413708
mov eax, dword [eax + 4]
jmp 0x41370b
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
push 1
lea esi, [ebp - 0xe4]
call fcn.00403d0d
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0x41372d
lea eax, [ebp - 0x2c]
push eax
mov esi, str.KVSTORE_CHANGED
push esi
call fcn.0041f529
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0x413745
lea eax, [ebp - 0x2c]
push eax
push esi
call fcn.0041fe42
push 0
push 1
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 0xc
call fcn.00403c15
lea esi, [ebp - 0xb0]
call fcn.0040376f
jmp 0x413658
lea eax, [ebp - 0x194]
push eax
lea ecx, [ebp - 0xe4]
call fcn.0042aa9b
cmp dword [eax + 0x18], 0x10
jb 0x413789
mov eax, dword [eax + 4]
jmp 0x41378c
add eax, 4
mov esi, eax
mov ebx, str.kvStoreInfo
mov edi, str.Softwareprojonepodlp_
call fcn.0041dce5
xor ebx, ebx
push ebx
push 1
lea ecx, [ebp - 0xe4]
call fcn.00403c15
lea esi, [ebp - 0x194]
mov byte [ebp - 4], 0xb
call fcn.0042966c
lea esi, [ebp - 0xfc]
call fcn.00403eb6
push dword [ebp - 0xfc]
call fcn.004437e4
pop ecx
lea esi, [ebp - 0x114]
call fcn.00403eb6
push dword [ebp - 0x114]
call fcn.004437e4
pop ecx
lea esi, [ebp - 0x144]
mov byte [ebp - 4], 5
call fcn.0042966c
push ebx
push 1
lea ecx, [ebp - 0xa4]
call fcn.00403c15
lea esi, [ebp - 0x12c]
mov byte [ebp - 4], bl
call fcn.0042966c
push ebx
push 1
lea ecx, [ebp - 0x88]
call fcn.00403c15
call fcn.004446dd
ret