Function at 0x5461e0
Capabilities:
Delete registry value
Get file size
Move file
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x62ae58
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x78
push ebx
mov ebx, ecx
push esi
push edi
mov eax, dword [ebx + 0x88]
xor edi, edi
cmp eax, edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 4], edi
je 0x547688
mov eax, dword [eax + 0x58]
mov ecx, dword [0x6cd768]
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x18], ecx
mov ecx, ebx
mov byte [ebp - 4], 1
call fcn.0054b6d0
push str.Assembling_all_downloaded_portions_into_one_file..._n
mov ecx, ebx
call fcn.005427e0
mov edx, dword [ebx + 0xd8]
mov eax, dword [edx]
cmp eax, edi
je 0x546258
push edi
push 0x147a
push 0x111
jmp 0x546272
mov eax, dword [ebx + 0x90]
cmp eax, edi
je 0x546279
push eax
mov eax, dword [0x6d24a4]
push 0x149f
push 0x111
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, dword [ebx + 0xc]
cmp eax, edi
je 0x546295
mov ecx, dword [ebx + 0x10]
push ecx
push 0x147a
push 0x111
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov edx, dword [ebx + 0x88]
lea ecx, [ebp - 0x5c]
mov eax, dword [edx + 0x10]
mov dword [ebp - 0x5c], edi
push eax
mov dword [ebp - 0x54], edi
mov word [ebp - 0x58], di
call fcn.00402410
mov esi, dword [ebp + 0x10]
mov byte [ebp - 4], 2
cmp esi, edi
mov byte [ebp - 0x11], 0
je 0x5467cd
push esi
call fcn.005e71bf
add esp, 4
test eax, eax
je 0x5467cd
cmp dword [ebx], edi
je 0x5467cd
mov eax, dword [ebp - 0x5c]
cmp eax, edi
jne 0x5462e7
lea eax, [ebp - 0x58]
push esi
push eax
call fcn.005e985c
add esp, 8
test eax, eax
je 0x5467cd
push 1
push esi
call fcn.004963e0
add esp, 8
cmp eax, edi
je 0x546345
lea eax, [ebp - 0x30]
push esi
push eax
call fcn.00402500
add esp, 8
mov ecx, dword [ebp - 0x30]
lea edx, [ebp - 0x18]
push ecx
push str.Delete_old_file__s_n
push edx
mov byte [ebp - 4], 3
call fcn.005fc86b
mov eax, dword [ebp - 0x18]
add esp, 0xc
mov ecx, ebx
push eax
call fcn.005427e0
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 2
call fcn.00603a3c
cmp dword [ebp + 8], edi
jbe 0x546509
cmp dword [0x6a55ac], edi
je 0x54636d
push edi
push edi
push 2
push edi
push 1
push 0xc0000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
jmp 0x5463b5
lea ecx, [ebp - 0x20]
push esi
push ecx
call fcn.00402500
mov edx, dword [ebp - 0x20]
add esp, 8
push 0x3f
push edx
call fcn.005e71f0
add esp, 8
test eax, eax
push edi
push edi
push 2
push edi
push 1
push 0xc0000000
jne 0x5463a4
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
jmp 0x5463ab
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
lea ecx, [ebp - 0x20]
mov esi, eax
call fcn.00603a3c
cmp esi, 0xffffffff
jne 0x5463ea
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
lea ecx, [ebp - 0x18]
push esi
push str.Error_opening_local_file_for_writing__errcode___ld._n
push ecx
call fcn.005fc86b
mov edx, dword [ebp - 0x18]
add esp, 0xc
mov ecx, ebx
push edx
call fcn.005427e0
mov eax, dword [0x6d36a4]
push eax
jmp 0x546b99
mov edx, dword [ebp + 0x10]
push 0
push 0
lea ecx, [ebp - 0x28]
push 0
push ecx
push edx
call fcn.005e7f83
mov eax, dword [ebp + 8]
mov edx, dword [ebx + 0x88]
add esp, 0x14
lea ecx, [ebp - 0x28]
push eax
mov eax, dword [edx + 0x10]
push ecx
push eax
push esi
mov ecx, ebx
call fcn.00547f20
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
je 0x54645c
cmp edi, 0x757c
je 0x54645c
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 1
call fcn.00401070
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0
call fcn.00603a3c
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [ebp + 0x10]
lea edx, [ebp - 0x30]
push ecx
push edx
mov byte [ebp - 0x11], 1
call fcn.00402500
add esp, 8
mov ecx, dword [ebx + 0x88]
mov eax, dword [ebp - 0x30]
push eax
lea eax, [ebp - 0x18]
mov edx, dword [ecx + 0x10]
mov byte [ebp - 4], 4
push edx
push str.Rename2_temp_file__ls_to__s._n
push eax
call fcn.005fc86b
mov ecx, dword [ebp - 0x18]
add esp, 0x10
push ecx
mov ecx, ebx
call fcn.005427e0
mov edx, dword [ebp + 0xc]
mov dword [edx], 1
mov eax, dword [ebx + 0x88]
mov ecx, dword [eax + 0x10]
push ecx
call fcn.005e8c9e
add esp, 4
cmp eax, 0xffffffff
jne 0x5464fd
mov edx, dword [0x6cd768]
mov dword [ebp - 0x20], edx
mov eax, dword [ebx + 0x88]
lea edx, [ebp - 0x20]
mov byte [ebp - 4], 5
mov ecx, dword [eax + 0x10]
push ecx
push str.Could_not_delete_temp_file__ls_n
push edx
call fcn.005fc86b
mov eax, dword [ebp - 0x20]
add esp, 0xc
mov ecx, ebx
push eax
call fcn.005427e0
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 4
call fcn.00603a3c
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x30]
jmp 0x5467c8
mov eax, dword [ebp - 0x5c]
cmp eax, edi
mov edi, eax
jne 0x546515
lea edi, [ebp - 0x58]
mov esi, dword [ebp + 0x10]
push 0
push esi
push edi
mov dword [ebp - 0x24], edi
call fcn.00495fb0
add esp, 0xc
mov dword [ebp - 0x20], eax
test eax, eax
jne 0x54677d
mov ecx, dword [0x6cd768]
mov dword [ebp - 0x1c], ecx
mov byte [ebp - 4], 6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push esi
push edi
lea edx, [ebp - 0x1c]
push str.Can_not_rename_temp_file__ls_to__ls__error___ld_n
push edx
call fcn.005fc86b
mov eax, dword [ebp - 0x1c]
add esp, 0x14
mov ecx, ebx
push eax
call fcn.005427e0
xor eax, eax
push esi
lea ecx, [ebp - 0x68]
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x60], eax
mov word [ebp - 0x64], ax
call fcn.00402410
push 0x5c
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 7
call fcn.00402400
push eax
call fcn.005e710f
add esp, 8
test eax, eax
jne 0x5465b1
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 6
call fcn.00401070
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 2
call fcn.00603a3c
jmp 0x546732
add eax, 2
push 0
lea ecx, [ebp - 0x68]
mov word [eax], 0
call fcn.00402400
push eax
call fcn.00496570
add esp, 8
test eax, eax
jne 0x546713
push str.Folder_does_not_exist__Creating..._n
mov ecx, ebx
call fcn.005427e0
lea ecx, [ebp - 0x68]
call fcn.00402400
add eax, 4
push 0x5c
add eax, 2
push eax
call fcn.005e77bb
add esp, 8
mov esi, eax
test esi, esi
je 0x5466fe
lea ecx, [ebp - 0x68]
call fcn.00402400
push eax
lea ecx, [ebp - 0x80]
call fcn.0040e580
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 8
call fcn.00402400
mov edi, esi
lea ecx, [ebp - 0x80]
sub edi, eax
sar edi, 1
call fcn.00402400
push 0
lea ecx, [ebp - 0x80]
mov word [eax + edi*2], 0
call fcn.00402400
push eax
call fcn.00496570
add esp, 8
test eax, eax
jne 0x5466da
push eax
lea ecx, [ebp - 0x80]
call fcn.00402400
push eax
call fcn.00496750
add esp, 8
test eax, eax
jne 0x5466da
lea ecx, [ebp - 0x80]
call fcn.00402400
lea ecx, [ebp - 0x30]
push eax
push ecx
call fcn.00402500
add esp, 8
mov byte [ebp - 4], 9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [ebp - 0x30]
push eax
push edx
lea eax, [ebp - 0x1c]
push str.Can_not_create_folder__s__error___ld_n
push eax
call fcn.005fc86b
mov ecx, dword [ebp - 0x1c]
add esp, 0x10
push ecx
mov ecx, ebx
call fcn.005427e0
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 8
call fcn.00603a3c
lea ecx, [ebp - 0x80]
mov byte [ebp - 4], 7
call fcn.00401070
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 6
call fcn.00401070
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 2
call fcn.00603a3c
mov esi, dword [ebp + 0x10]
jmp 0x54672b
add esi, 2
push 0x5c
push esi
call fcn.005e77bb
add esp, 8
lea ecx, [ebp - 0x80]
mov esi, eax
mov byte [ebp - 4], 7
call fcn.00401070
mov edi, dword [ebp - 0x24]
jmp 0x5465fb
mov edx, dword [ebp + 0x10]
push 0
push edx
push edi
call fcn.00495fb0
mov esi, dword [ebp + 0x10]
add esp, 0xc
mov dword [ebp - 0x20], eax
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 6
call fcn.00401070
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 2
call fcn.00603a3c
mov eax, dword [ebp - 0x20]
test eax, eax
jne 0x54677d
lea eax, [ebp - 0x30]
push esi
push eax
call fcn.00402500
add esp, 8
mov byte [ebp - 4], 0xa
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [ebx + 0x88]
mov ecx, dword [ebp - 0x30]
push eax
push ecx
mov eax, dword [edx + 0x10]
lea ecx, [ebp - 0x18]
push eax
push str.Can_not_rename_temp_file__ls_to__s__errno___ld_n
push ecx
call fcn.005fc86b
mov edx, dword [ebp - 0x18]
add esp, 0x14
mov ecx, ebx
push edx
call fcn.005427e0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x30]
jmp 0x5467c8
lea eax, [ebp - 0x30]
push esi
push eax
call fcn.00402500
add esp, 8
mov edx, dword [ebx + 0x88]
mov ecx, dword [ebp - 0x30]
push ecx
lea ecx, [ebp - 0x18]
mov eax, dword [edx + 0x10]
mov byte [ebp - 4], 0xb
push eax
push str.Rename_temp_file__ls_to__s._n
push ecx
call fcn.005fc86b
mov edx, dword [ebp - 0x18]
add esp, 0x10
mov ecx, ebx
push edx
call fcn.005427e0
mov eax, dword [ebp + 0xc]
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x30]
mov dword [eax], 1
call fcn.00603a3c
mov eax, dword [ebp + 8]
test eax, eax
jbe 0x546aa3
mov al, byte [ebp - 0x11]
test al, al
jne 0x546aa3
xor ecx, ecx
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x24], ecx
mov word [ebp - 0x28], cx
mov edx, dword [ebx + 0x88]
mov byte [ebp - 4], 0xc
mov eax, dword [edx + 0x10]
mov edx, str._s_tmp
test edx, edx
je 0x5468c5
test eax, eax
je 0x5468c5
mov dword [ebp - 0x80], ecx
mov dword [ebp - 0x78], ecx
mov word [ebp - 0x7c], cx
push eax
lea ecx, [ebp - 0x80]
call fcn.00402410
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 0xd
call fcn.00401070
push str._s_tmp
lea ecx, [ebp - 0x74]
call fcn.00402380
mov esi, dword [ebp - 0x6c]
lea ecx, [ebp - 0x80]
mov byte [ebp - 4], 0xe
call fcn.00402400
push eax
call fcn.005e71bf
lea esi, [eax + esi + 2]
lea edi, [esi + esi]
push edi
call fcn.005ffe3f
mov edx, eax
add esp, 8
test edx, edx
mov dword [ebp - 0x2c], edx
je 0x5468aa
mov ecx, edi
mov edi, edx
mov edx, ecx
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
lea ecx, [ebp - 0x80]
call fcn.00402400
push eax
lea ecx, [ebp - 0x74]
call fcn.00402400
push eax
mov eax, dword [ebp - 0x2c]
push esi
push eax
call fcn.005e714f
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.005e71bf
add esp, 0x14
mov dword [ebp - 0x24], eax
lea ecx, [ebp - 0x74]
mov byte [ebp - 4], 0xd
call fcn.00401070
lea ecx, [ebp - 0x80]
mov byte [ebp - 4], 0xc
call fcn.00401070
mov ecx, dword [ebp - 0x2c]
test ecx, ecx
jne 0x5468cc
lea ecx, [ebp - 0x28]
mov edx, dword [ebx + 0x88]
push ecx
mov eax, dword [edx + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
jne 0x546917
mov esi, dword [ebp - 0x2c]
test esi, esi
jne 0x5468eb
lea esi, [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebx + 0x88]
push eax
push esi
lea eax, [ebp - 0x18]
mov edx, dword [ecx + 0x10]
push edx
push str.Step5__can_not_rename_temp_file__ls_to__ls__errno___ld_n
push eax
call fcn.005fc86b
mov ecx, dword [ebp - 0x18]
add esp, 0x14
push ecx
jmp 0x546a90
mov edx, dword [ebx + 0x88]
push 0
push 0
push 2
mov eax, dword [edx + 0x10]
push 0
push 1
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x5469ac
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
lea ecx, [ebp - 0x18]
push esi
push str.Error_opening_local_file_for_writing__errcode___ld._n
push ecx
call fcn.005fc86b
mov edx, dword [ebp - 0x18]
add esp, 0xc
mov ecx, ebx
push edx
call fcn.005427e0
mov eax, dword [0x6d36a4]
mov ecx, dword [ebx + 0xd4]
push eax
call fcn.005559f0
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 2
call fcn.00401070
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 1
call fcn.00401070
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0
call fcn.00603a3c
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov edx, dword [ebx + 0x88]
push 0
push 0
lea ecx, [ebp - 0x34]
mov eax, dword [edx + 0x10]
push 0
push ecx
push eax
call fcn.005e7f83
mov eax, dword [ebp - 0x2c]
add esp, 0x14
test eax, eax
jne 0x5469d2
lea eax, [ebp - 0x28]
mov ecx, dword [ebp + 8]
lea edx, [ebp - 0x34]
push ecx
push edx
push eax
push esi
mov ecx, ebx
call fcn.00547f20
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
je 0x546a31
cmp edi, 0x757c
je 0x546a31
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 2
call fcn.00401070
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 1
call fcn.00401070
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0
call fcn.00603a3c
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebp - 0x2c]
test eax, eax
jne 0x546a3b
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x18]
push str.Skip_first_bytes_via_temp_file__ls._n
push eax
call fcn.005fc86b
mov ecx, dword [ebp - 0x18]
add esp, 0xc
push ecx
mov ecx, ebx
call fcn.005427e0
mov eax, dword [ebp - 0x2c]
test eax, eax
jne 0x546a62
lea eax, [ebp - 0x28]
push eax
call fcn.005e8c9e
add esp, 4
cmp eax, 0xffffffff
jne 0x546a97
mov eax, dword [ebp - 0x2c]
test eax, eax
jne 0x546a7a
lea eax, [ebp - 0x28]
push eax
lea edx, [ebp - 0x18]
push str.Could_not_delete_temp_file__ls_n
push edx
call fcn.005fc86b
mov eax, dword [ebp - 0x18]
add esp, 0xc
push eax
mov ecx, ebx
call fcn.005427e0
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 2
call fcn.00401070
mov eax, dword [0x6a55ac]
test eax, eax
je 0x546ae3
mov ecx, dword [ebp + 0xc]
cmp dword [ecx], 0
je 0x546ab9
mov eax, dword [ebp + 0x10]
jmp 0x546ac3
mov eax, dword [ebp - 0x5c]
test eax, eax
jne 0x546ac3
lea eax, [ebp - 0x58]
push 0
push 0
push 3
push 0
push 1
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
mov dword [ebp + 8], edi
jmp 0x546b68
mov esi, dword [ebp + 0xc]
cmp dword [esi], 0
je 0x546af0
mov eax, dword [ebp + 0x10]
jmp 0x546afa
mov eax, dword [ebp - 0x5c]
test eax, eax
jne 0x546afa
lea eax, [ebp - 0x58]
lea edx, [ebp - 0x20]
push eax
push edx
call fcn.00402500
mov eax, dword [ebp - 0x20]
add esp, 8
push 0x3f
push eax
call fcn.005e71f0
add esp, 8
test eax, eax
jne 0x546b31
mov ecx, dword [ebp - 0x20]
push eax
push eax
push 3
push eax
push 1
push 0xc0000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
jmp 0x546b5b
cmp dword [esi], 0
je 0x546b3b
mov eax, dword [ebp + 0x10]
jmp 0x546b45
mov eax, dword [ebp - 0x5c]
test eax, eax
jne 0x546b45
lea eax, [ebp - 0x58]
push 0
push 0
push 3
push 0
push 1
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
lea ecx, [ebp - 0x20]
mov dword [ebp + 8], edi
call fcn.00603a3c
cmp edi, 0xffffffff
jne 0x546bd1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
lea edx, [ebp - 0x18]
push esi
push str.Error_opening_local_file_for_writing__errcode___ld._n
push edx
call fcn.005fc86b
mov eax, dword [ebp - 0x18]
add esp, 0xc
mov ecx, ebx
push eax
call fcn.005427e0
mov ecx, dword [0x6d36a4]
push ecx
mov ecx, dword [ebx + 0xd4]
call fcn.005559f0
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 1
call fcn.00401070
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0
call fcn.00603a3c
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
lea edx, [ebp - 0x38]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebx + 0x100], eax
mov dword [ebx + 0x104], 0
cmp dword [ebx + 0x100], 0xffffffff
jne 0x546c3a
mov eax, dword [ebx + 0x104]
test eax, eax
jne 0x546c3a
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
je 0x546c3a
call esi
push eax
lea eax, [ebp - 0x18]
push str.Error_during_GetFileSize____errcode___d._n
push eax
call fcn.005fc86b
mov ecx, dword [ebp - 0x18]
add esp, 0xc
push ecx
mov ecx, ebx
call fcn.005427e0
xor esi, esi
mov dword [ebx + 0x100], esi
mov dword [ebx + 0x104], esi
jmp 0x546c67
mov edx, dword [ebp - 0x38]
push 1
push 0
push 0
push edx
call fcn.005e9a70
mov ecx, dword [ebx + 0x100]
add ecx, eax
mov dword [ebx + 0x100], ecx
mov eax, dword [ebx + 0x104]
adc eax, edx
xor esi, esi
mov dword [ebx + 0x104], eax
mov eax, dword [ebx + 0xd8]
cmp dword [eax], esi
je 0x546c9a
mov ecx, dword [ebx + 0x100]
mov edx, dword [ebx + 0x104]
mov dword [ebp - 0x34], ecx
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x30], edx
mov edx, dword [eax]
push ecx
push 0x147b
push 0x111
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, dword [ebx + 0x104]
mov edx, dword [ebx + 0x88]
mov ecx, dword [ebx + 0x100]
push eax
mov eax, dword [edx + 0x10]
push ecx
push eax
lea ecx, [ebp - 0x18]
push str.Size_of__ls_is__I64d_n
push ecx
call fcn.005fc86b
mov edx, dword [ebp - 0x18]
add esp, 0x14
mov ecx, ebx
push edx
call fcn.005427e0
lea eax, [ebp - 0x40]
push 2
push eax
push esi
push edi
mov dword [ebp - 0x40], esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ecx, dword [ebp + 0xc]
cmp dword [ecx], esi
je 0x546ceb
mov eax, dword [ebp + 0x10]
jmp 0x546cf5
mov eax, dword [ebp - 0x5c]
cmp eax, esi
jne 0x546cf5
lea eax, [ebp - 0x58]
push 0
push 0
lea edx, [ebp - 0x50]
push 0
push edx
push eax
call fcn.005e7f83
mov esi, dword [ebp - 0x44]
add esp, 0x14
jmp 0x546d10
mov edi, dword [ebp + 8]
test esi, esi
je 0x547035
mov eax, dword [ebp + 0xc]
cmp dword [eax], 0
je 0x546d25
mov eax, dword [ebp + 0x10]
jmp 0x546d2e
mov ecx, dword [ebx + 0x88]
mov eax, dword [ecx + 0x10]
mov edx, dword [esi + 0x10]
push eax
push edx
lea eax, [ebp - 0x18]
push str.Adding_file__ls_to_file__ls._n
push eax
call fcn.005fc86b
mov ecx, dword [ebp - 0x18]
add esp, 0x10
push ecx
mov ecx, ebx
call fcn.005427e0
mov eax, dword [esi + 0x14]
test eax, eax
je 0x546e77
mov edx, dword [esi + 0x24]
mov ecx, dword [esi + 0x10]
lea eax, [ebp - 0x50]
push edx
mov edx, dword [ebp + 8]
push eax
push ecx
push edx
mov ecx, ebx
call fcn.00547f20
mov edi, eax
test edi, edi
je 0x546e83
cmp edi, 0x757c
je 0x546e83
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x546e4a
push esi
call fcn.005e71bf
add esp, 4
test eax, eax
je 0x546e4a
mov eax, dword [ebp - 0x5c]
test eax, eax
jne 0x546db7
lea eax, [ebp - 0x58]
push esi
push eax
call fcn.005e77e4
add esp, 8
test eax, eax
je 0x546e4a
mov eax, dword [ebp - 0x5c]
test eax, eax
jne 0x546dd3
lea eax, [ebp - 0x58]
push 0
push eax
push esi
call fcn.00495fb0
add esp, 0xc
test eax, eax
jne 0x546e13
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebx + 0x88]
push eax
lea eax, [ebp - 0x18]
mov edx, dword [ecx + 0x10]
push edx
push esi
push str.Can_not_rename_back_file__ls_to__ls__errno___ld_n
push eax
call fcn.005fc86b
mov ecx, dword [ebp - 0x18]
add esp, 0x14
push ecx
mov ecx, ebx
call fcn.005427e0
jmp 0x546e4a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [ebx + 0x88]
push eax
lea ecx, [ebp - 0x18]
mov eax, dword [edx + 0x10]
push eax
push esi
push str.Rename_back_file__ls_to__ls._n
push ecx
call fcn.005fc86b
mov edx, dword [ebp - 0x18]
add esp, 0x14
mov ecx, ebx
push edx
call fcn.005427e0
mov eax, dword [ebp + 0xc]
mov dword [eax], 0
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 1
call fcn.00401070
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0
call fcn.00603a3c
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push str.This_file_has_flag_isCmpleted__0__it_has_not_been_added._n
mov ecx, ebx
call fcn.005427e0
mov ecx, dword [esi + 0x10]
push ecx
call fcn.005e8c9e
mov edx, dword [esi + 0x10]
add esp, 4
cmp eax, 0xffffffff
push edx
jne 0x546e9f
push str.Could_not_delete_temp_file__ls_n
jmp 0x546ea4
push str.Deleting_temp_file__ls_n
lea eax, [ebp - 0x18]
push eax
call fcn.005fc86b
mov ecx, dword [ebp - 0x18]
add esp, 0xc
push ecx
mov ecx, ebx
call fcn.005427e0
mov edx, dword [esi + 0x60]
lea eax, [ebp - 0x48]
push edx
push 0x6a10e4
push eax
call fcn.005e7bd3
mov eax, dword [ebx + 0xdc]
mov esi, dword [esi + 0x58]
add esp, 0xc
test eax, eax
je 0x546d0d
lea ecx, [ebp - 0x48]
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
lea edx, [ebp - 0x48]
lea eax, [ebp - 0x18]
push edx
push str.Deleting_record__s_from_registry_n
push eax
call fcn.005fc86b
mov ecx, dword [0x6cd768]
add esp, 0xc
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x20], ecx
lea edx, [ebp - 0x48]
lea eax, [ebp - 0x20]
push edx
push str.sk_s
push eax
mov byte [ebp - 4], 0xf
call fcn.005fc86b
mov eax, dword [ebp - 0x20]
add esp, 0xc
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea ecx, [ebp - 0x24]
lea edx, [ebp - 0x30]
push ecx
mov ecx, dword [ebx + 0xdc]
push edx
push 0
push 0
push eax
push ecx
mov dword [ebp - 0x24], 4
call edi
test eax, eax
jne 0x546fbb
mov eax, dword [ebp - 0x30]
test eax, eax
jbe 0x546fbb
mov ecx, dword [ebx + 0xdc]
lea edx, [ebp - 0x24]
lea eax, [ebp - 0x1c]
push edx
push eax
push 0
push 0
push 0x6be0e0
push ecx
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x24], 4
call edi
mov edx, dword [ebp - 0x30]
mov edi, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebx + 0xdc]
add edi, edx
push eax
push ecx
mov dword [ebp - 0x1c], edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov eax, dword [ebx + 0xdc]
lea edx, [ebp - 0x1c]
push 4
push edx
push 4
push 0
push 0x6be0e0
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [ebp - 0x18]
push ecx
mov ecx, ebx
call fcn.005427e0
xor eax, eax
cmp esi, eax
mov dword [ebp - 0x84], eax
mov dword [ebp - 0x7c], eax
mov dword [ebp - 0x78], eax
je 0x546fe0
mov edx, dword [esi + 0x60]
mov dword [ebp - 0x80], edx
jmp 0x546fe7
mov dword [ebp - 0x80], 0xffffffff
mov edx, dword [ebx + 0xdc]
lea ecx, [ebp - 0x84]
push 0x10
push ecx
push eax
push eax
push 0x6a8834
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [ebp - 0x80]
lea ecx, [ebp - 0x18]
push eax
push str.Updating_record_with_ID_0__set_nextID__d_n
push ecx
call fcn.005fc86b
mov edx, dword [ebp - 0x18]
add esp, 0xc
mov ecx, ebx
push edx
call fcn.005427e0
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 2
call fcn.00603a3c
jmp 0x546d0d
lea eax, [ebp - 0x38]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebx + 0xb0], eax
mov dword [ebx + 0xb4], 0
cmp dword [ebx + 0xb0], 0xffffffff
jne 0x54708e
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
je 0x54708e
call esi
push eax
lea ecx, [ebp - 0x18]
push str.Error_during_GetFileSize____errcode___ld._n
push ecx
call fcn.005fc86b
mov edx, dword [ebp - 0x18]
add esp, 0xc
mov ecx, ebx
push edx
call fcn.005427e0
xor eax, eax
mov dword [ebx + 0xb0], eax
jmp 0x5470b3
mov eax, dword [ebp - 0x38]
push 1
push 0
push 0
push eax
call fcn.005e9a70
mov ecx, dword [ebx + 0xb0]
add ecx, eax
mov dword [ebx + 0xb0], ecx
mov eax, dword [ebx + 0xb4]
adc eax, edx
mov dword [ebx + 0xb4], eax
mov eax, dword [ebx + 0x18]
test eax, eax
je 0x5470dd
mov ecx, dword [eax + 0x3c]
test ecx, ecx
jne 0x5470dd
mov ecx, dword [ebx + 0xb4]
mov edx, dword [ebx + 0xb0]
push ecx
push edx
push edi
mov ecx, ebx
call fcn.005476e0
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, ebx
call fcn.0054ad90
mov eax, dword [ebx + 0xb4]
mov ecx, dword [ebx + 0xb0]
push eax
push ecx
lea edx, [ebp - 0x18]
push str.Rebuilding_complete__real_size___I64d_n
push edx
call fcn.005fc86b
mov eax, dword [ebp - 0x18]
add esp, 0x10
mov ecx, ebx
push eax
call fcn.005427e0
cmp dword [ebx], 0
je 0x547487
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x547487
mov ecx, eax
push ecx
call fcn.005e71bf
add esp, 4
test eax, eax
je 0x547487
mov edx, dword [ebp + 0xc]
cmp dword [edx], 0
jne 0x547487
mov eax, dword [ebp - 0x5c]
test eax, eax
jne 0x547152
lea eax, [ebp - 0x58]
mov ecx, dword [ebp + 0x10]
push ecx
push eax
call fcn.005e77e4
add esp, 8
test eax, eax
je 0x547487
mov esi, dword [ebp + 0x10]
push 1
push esi
call fcn.004963e0
add esp, 8
test eax, eax
je 0x5471b6
lea edx, [ebp + 8]
push esi
push edx
call fcn.00402500
add esp, 8
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x18]
push eax
push str.Delete_old_file__s_n
push ecx
mov byte [ebp - 4], 0x10
call fcn.005fc86b
mov edx, dword [ebp - 0x18]
add esp, 0xc
mov ecx, ebx
push edx
call fcn.005427e0
lea ecx, [ebp + 8]
mov byte [ebp - 4], 2
call fcn.00603a3c
mov eax, dword [ebp - 0x5c]
test eax, eax
mov edi, eax
jne 0x5471c2
lea edi, [ebp - 0x58]
mov eax, dword [ebp + 0x10]
push 1
push eax
push edi
mov dword [ebp - 0x24], edi
call fcn.00495fb0
mov esi, eax
add esp, 0xc
test esi, esi
mov dword [ebp - 0x44], esi
jne 0x547434
mov ecx, dword [0x6cd768]
mov dword [ebp + 8], ecx
mov byte [ebp - 4], 0x11
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [ebp + 0x10]
push eax
push edx
push edi
lea eax, [ebp + 8]
push str.Can_not_rename_temp_file__ls_to__ls__error___ld_n
push eax
call fcn.005fc86b
mov ecx, dword [ebp + 8]
add esp, 0x14
push ecx
mov ecx, ebx
call fcn.005427e0
mov edx, dword [ebp + 0x10]
xor eax, eax
push edx
lea ecx, [ebp - 0x68]
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x60], eax
mov word [ebp - 0x64], ax
call fcn.00402410
mov eax, dword [ebp - 0x68]
mov byte [ebp - 4], 0x12
test eax, eax
jne 0x54723c
lea eax, [ebp - 0x64]
push 0x5c
push eax
call fcn.005e710f
add esp, 8
test eax, eax
jne 0x547268
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 0x11
call fcn.00401070
lea ecx, [ebp + 8]
mov byte [ebp - 4], 2
call fcn.00603a3c
jmp 0x5473e6
add eax, 2
mov word [eax], 0
mov eax, dword [ebp - 0x68]
test eax, eax
jne 0x54727a
lea eax, [ebp - 0x64]
push 1
push eax
call fcn.00496570
add esp, 8
test eax, eax
jne 0x5473ca
push str.Folder_does_not_exist__Creating..._n
mov ecx, ebx
call fcn.005427e0
mov eax, dword [ebp - 0x68]
test eax, eax
jne 0x5472a3
lea eax, [ebp - 0x64]
add eax, 6
push 0x5c
push eax
call fcn.005e77bb
add esp, 8
mov esi, eax
test esi, esi
je 0x5473b9
mov eax, dword [ebp - 0x68]
test eax, eax
jne 0x5472c5
lea eax, [ebp - 0x64]
push eax
lea ecx, [ebp - 0x80]
call fcn.0040e580
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 0x13
call fcn.00402400
mov edi, esi
lea ecx, [ebp - 0x80]
sub edi, eax
sar edi, 1
call fcn.00402400
push 1
lea ecx, [ebp - 0x80]
mov word [eax + edi*2], 0
call fcn.00402400
push eax
call fcn.00496570
add esp, 8
test eax, eax
jne 0x547395
push 1
lea ecx, [ebp - 0x80]
call fcn.00402400
push eax
call fcn.00496750
add esp, 8
test eax, eax
jne 0x547395
lea ecx, [ebp - 0x80]
call fcn.00402400
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.00402500
add esp, 8
mov byte [ebp - 4], 0x14
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0x30]
push eax
push ecx
lea edx, [ebp + 8]
push str.Can_not_create_folder__s__error___ld_n
push edx
call fcn.005fc86b
mov eax, dword [ebp + 8]
add esp, 0x10
mov ecx, ebx
push eax
call fcn.005427e0
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 0x13
call fcn.00603a3c
lea ecx, [ebp - 0x80]
mov byte [ebp - 4], 0x12
call fcn.00401070
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 0x11
call fcn.00401070
lea ecx, [ebp + 8]
mov byte [ebp - 4], 2
call fcn.00603a3c
mov esi, dword [ebp - 0x44]
jmp 0x5473e2
add esi, 2
push 0x5c
push esi
call fcn.005e77bb
add esp, 8
lea ecx, [ebp - 0x80]
mov esi, eax
mov byte [ebp - 4], 0x12
call fcn.00401070
mov edi, dword [ebp - 0x24]
jmp 0x5472b3
mov ecx, dword [ebp + 0x10]
push 1
push ecx
push edi
call fcn.00495fb0
add esp, 0xc
mov esi, eax
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 0x11
call fcn.00401070
lea ecx, [ebp + 8]
mov byte [ebp - 4], 2
call fcn.00603a3c
test esi, esi
jne 0x547434
mov edx, dword [ebp + 0x10]
lea eax, [ebp + 8]
push edx
push eax
call fcn.00402500
add esp, 8
mov byte [ebp - 4], 0x15
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [ebx + 0x88]
mov ecx, dword [ebp + 8]
push eax
push ecx
mov eax, dword [edx + 0x10]
lea ecx, [ebp - 0x18]
push eax
push str.Can_not_rename_temp_file__ls_to__s__errno___ld_n
push ecx
call fcn.005fc86b
mov edx, dword [ebp - 0x18]
add esp, 0x14
mov ecx, ebx
push edx
call fcn.005427e0
mov byte [ebp - 4], 2
lea ecx, [ebp + 8]
jmp 0x547482
mov eax, dword [ebp + 0x10]
lea ecx, [ebp + 8]
push eax
push ecx
call fcn.00402500
add esp, 8
mov eax, dword [ebx + 0x88]
mov edx, dword [ebp + 8]
push edx
lea edx, [ebp - 0x18]
mov ecx, dword [eax + 0x10]
mov byte [ebp - 4], 0x16
push ecx
push str.Rename_temp_file__ls_to__s._n
push edx
call fcn.005fc86b
mov eax, dword [ebp - 0x18]
add esp, 0x10
mov ecx, ebx
push eax
call fcn.005427e0
mov ecx, dword [ebp + 0xc]
mov byte [ebp - 4], 2
mov dword [ecx], 1
lea ecx, [ebp + 8]
call fcn.00603a3c
mov esi, dword [ebp + 0xc]
cmp dword [esi], 0
je 0x54763a
mov edx, dword [ebp + 0x10]
push edx
call fcn.00545f30
mov eax, dword [esi]
add esp, 4
test eax, eax
je 0x54763a
mov edx, dword [0x6d2354]
lea eax, [ebp + 0x10]
lea ecx, [ebp + 0xc]
push eax
push ecx
push 0
push 0
push str.bSaveLogs
push edx
mov dword [ebp + 0x10], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x5474dc
cmp dword [ebp + 0xc], 1
je 0x54763a
mov ecx, dword [ebx + 0xd4]
call fcn.005559d0
mov eax, dword [0x6d2310]
test eax, eax
jne 0x5474f5
mov eax, 0x6d2314
push eax
call fcn.005e88a4
mov eax, dword [ebx + 0xd4]
add esp, 4
add eax, 4
cmp word [eax], 0
je 0x54763a
xor ecx, ecx
mov dword [ebp - 0x68], ecx
mov dword [ebp - 0x60], ecx
mov word [ebp - 0x64], cx
mov edx, 0x6a10a0
mov byte [ebp - 4], 0x17
test edx, edx
je 0x5475fb
test eax, eax
je 0x5475fb
xor esi, esi
push eax
lea ecx, [ebp - 0x74]
mov dword [ebp - 0x74], esi
mov dword [ebp - 0x6c], esi
mov word [ebp - 0x70], si
call fcn.00402410
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 0x18
call fcn.00401070
push esi
push 0x6a10a0
lea ecx, [ebp - 0x80]
mov dword [ebp - 0x80], esi
mov dword [ebp - 0x78], esi
mov word [ebp - 0x7c], si
call fcn.00402e00
mov eax, dword [ebp - 0x74]
mov byte [ebp - 4], 0x19
cmp eax, esi
jne 0x54757d
lea eax, [ebp - 0x70]
mov esi, dword [ebp - 0x78]
push eax
call fcn.005e71bf
lea ebx, [eax + esi + 2]
lea esi, [ebx + ebx]
push esi
call fcn.005ffe3f
mov edi, eax
add esp, 8
test edi, edi
mov dword [ebp - 0x68], edi
je 0x5475e0
mov ecx, esi
xor eax, eax
mov edx, ecx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [ebp - 0x74]
test eax, eax
jne 0x5475bb
lea eax, [ebp - 0x70]
mov ecx, dword [ebp - 0x80]
test ecx, ecx
jne 0x5475c5
lea ecx, [ebp - 0x7c]
push eax
mov eax, dword [ebp - 0x68]
push ecx
push ebx
push eax
call fcn.005e714f
mov ecx, dword [ebp - 0x68]
push ecx
call fcn.005e71bf
add esp, 0x14
mov dword [ebp - 0x60], eax
lea ecx, [ebp - 0x80]
mov byte [ebp - 4], 0x18
call fcn.00401070
lea ecx, [ebp - 0x74]
mov byte [ebp - 4], 0x17
call fcn.00401070
mov ecx, dword [ebp - 0x68]
test ecx, ecx
mov eax, ecx
jne 0x547604
lea eax, [ebp - 0x64]
push 0x5c
push eax
call fcn.005e710f
add esp, 8
test eax, eax
je 0x54762b
mov word [eax], 0
mov eax, dword [ebp - 0x68]
test eax, eax
jne 0x547622
lea eax, [ebp - 0x64]
push eax
call fcn.005e9aa4
add esp, 4
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 2
call fcn.00401070
mov ebx, dword [ebp - 0x3c]
mov eax, dword [0x6d2310]
test eax, eax
jne 0x547648
mov eax, 0x6d2314
push eax
call fcn.005e88a4
mov edx, dword [ebx + 0xd8]
add esp, 4
mov eax, dword [edx]
test eax, eax
je 0x547670
push 0
push 0x147d
push 0x111
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 1
call fcn.00401070
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0
call fcn.00603a3c
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc