Function at 0x545430
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 0x629e68
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 0x5468d8
mov eax, dword [eax + 0x58]
mov ecx, dword [0x6cc708]
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x18], ecx
mov ecx, ebx
mov byte [ebp - 4], 1
call fcn.0054a920
push str.Assembling_all_downloaded_portions_into_one_file..._n
mov ecx, ebx
call fcn.00541a30
mov edx, dword [ebx + 0xd8]
mov eax, dword [edx]
cmp eax, edi
je 0x5454a8
push edi
push 0x147a
push 0x111
jmp 0x5454c2
mov eax, dword [ebx + 0x90]
cmp eax, edi
je 0x5454c9
push eax
mov eax, dword [0x6d1444]
push 0x149f
push 0x111
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, dword [ebx + 0xc]
cmp eax, edi
je 0x5454e5
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 0x545a1d
push esi
call fcn.005e639f
add esp, 4
test eax, eax
je 0x545a1d
cmp dword [ebx], edi
je 0x545a1d
mov eax, dword [ebp - 0x5c]
cmp eax, edi
jne 0x545537
lea eax, [ebp - 0x58]
push esi
push eax
call fcn.005e8a3c
add esp, 8
test eax, eax
je 0x545a1d
push 1
push esi
call fcn.00495aa0
add esp, 8
cmp eax, edi
je 0x545595
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.005fb90b
mov eax, dword [ebp - 0x18]
add esp, 0xc
mov ecx, ebx
push eax
call fcn.00541a30
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 2
call fcn.00602ad6
cmp dword [ebp + 8], edi
jbe 0x545759
cmp dword [0x6a45ac], edi
je 0x5455bd
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 0x545605
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.005e63d0
add esp, 8
test eax, eax
push edi
push edi
push 2
push edi
push 1
push 0xc0000000
jne 0x5455f4
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
jmp 0x5455fb
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
lea ecx, [ebp - 0x20]
mov esi, eax
call fcn.00602ad6
cmp esi, 0xffffffff
jne 0x54563a
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.005fb90b
mov edx, dword [ebp - 0x18]
add esp, 0xc
mov ecx, ebx
push edx
call fcn.00541a30
mov eax, dword [0x6d263c]
push eax
jmp 0x545de9
mov edx, dword [ebp + 0x10]
push 0
push 0
lea ecx, [ebp - 0x28]
push 0
push ecx
push edx
call fcn.005e7163
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.00547170
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
je 0x5456ac
cmp edi, 0x757c
je 0x5456ac
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 1
call fcn.00401070
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0
call fcn.00602ad6
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.005fb90b
mov ecx, dword [ebp - 0x18]
add esp, 0x10
push ecx
mov ecx, ebx
call fcn.00541a30
mov edx, dword [ebp + 0xc]
mov dword [edx], 1
mov eax, dword [ebx + 0x88]
mov ecx, dword [eax + 0x10]
push ecx
call fcn.005e7e7e
add esp, 4
cmp eax, 0xffffffff
jne 0x54574d
mov edx, dword [0x6cc708]
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.005fb90b
mov eax, dword [ebp - 0x20]
add esp, 0xc
mov ecx, ebx
push eax
call fcn.00541a30
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 4
call fcn.00602ad6
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x30]
jmp 0x545a18
mov eax, dword [ebp - 0x5c]
cmp eax, edi
mov edi, eax
jne 0x545765
lea edi, [ebp - 0x58]
mov esi, dword [ebp + 0x10]
push 0
push esi
push edi
mov dword [ebp - 0x24], edi
call fcn.00495670
add esp, 0xc
mov dword [ebp - 0x20], eax
test eax, eax
jne 0x5459cd
mov ecx, dword [0x6cc708]
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.005fb90b
mov eax, dword [ebp - 0x1c]
add esp, 0x14
mov ecx, ebx
push eax
call fcn.00541a30
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.005e62ef
add esp, 8
test eax, eax
jne 0x545801
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 6
call fcn.00401070
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 2
call fcn.00602ad6
jmp 0x545982
add eax, 2
push 0
lea ecx, [ebp - 0x68]
mov word [eax], 0
call fcn.00402400
push eax
call fcn.00495c30
add esp, 8
test eax, eax
jne 0x545963
push str.Folder_does_not_exist__Creating..._n
mov ecx, ebx
call fcn.00541a30
lea ecx, [ebp - 0x68]
call fcn.00402400
add eax, 4
push 0x5c
add eax, 2
push eax
call fcn.005e699b
add esp, 8
mov esi, eax
test esi, esi
je 0x54594e
lea ecx, [ebp - 0x68]
call fcn.00402400
push eax
lea ecx, [ebp - 0x80]
call fcn.0040e5a0
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.00495c30
add esp, 8
test eax, eax
jne 0x54592a
push eax
lea ecx, [ebp - 0x80]
call fcn.00402400
push eax
call fcn.00495e10
add esp, 8
test eax, eax
jne 0x54592a
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.005fb90b
mov ecx, dword [ebp - 0x1c]
add esp, 0x10
push ecx
mov ecx, ebx
call fcn.00541a30
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 8
call fcn.00602ad6
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.00602ad6
mov esi, dword [ebp + 0x10]
jmp 0x54597b
add esi, 2
push 0x5c
push esi
call fcn.005e699b
add esp, 8
lea ecx, [ebp - 0x80]
mov esi, eax
mov byte [ebp - 4], 7
call fcn.00401070
mov edi, dword [ebp - 0x24]
jmp 0x54584b
mov edx, dword [ebp + 0x10]
push 0
push edx
push edi
call fcn.00495670
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.00602ad6
mov eax, dword [ebp - 0x20]
test eax, eax
jne 0x5459cd
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.005fb90b
mov edx, dword [ebp - 0x18]
add esp, 0x14
mov ecx, ebx
push edx
call fcn.00541a30
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x30]
jmp 0x545a18
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.005fb90b
mov edx, dword [ebp - 0x18]
add esp, 0x10
mov ecx, ebx
push edx
call fcn.00541a30
mov eax, dword [ebp + 0xc]
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x30]
mov dword [eax], 1
call fcn.00602ad6
mov eax, dword [ebp + 8]
test eax, eax
jbe 0x545cf3
mov al, byte [ebp - 0x11]
test al, al
jne 0x545cf3
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 0x545b15
test eax, eax
je 0x545b15
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.005e639f
lea esi, [eax + esi + 2]
lea edi, [esi + esi]
push edi
call fcn.005feedc
mov edx, eax
add esp, 8
test edx, edx
mov dword [ebp - 0x2c], edx
je 0x545afa
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.005e632f
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.005e639f
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 0x545b1c
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 0x545b67
mov esi, dword [ebp - 0x2c]
test esi, esi
jne 0x545b3b
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.005fb90b
mov ecx, dword [ebp - 0x18]
add esp, 0x14
push ecx
jmp 0x545ce0
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 0x545bfc
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.005fb90b
mov edx, dword [ebp - 0x18]
add esp, 0xc
mov ecx, ebx
push edx
call fcn.00541a30
mov eax, dword [0x6d263c]
mov ecx, dword [ebx + 0xd4]
push eax
call fcn.00554c40
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.00602ad6
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.005e7163
mov eax, dword [ebp - 0x2c]
add esp, 0x14
test eax, eax
jne 0x545c22
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.00547170
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
je 0x545c81
cmp edi, 0x757c
je 0x545c81
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.00602ad6
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 0x545c8b
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x18]
push str.Skip_first_bytes_via_temp_file__ls._n
push eax
call fcn.005fb90b
mov ecx, dword [ebp - 0x18]
add esp, 0xc
push ecx
mov ecx, ebx
call fcn.00541a30
mov eax, dword [ebp - 0x2c]
test eax, eax
jne 0x545cb2
lea eax, [ebp - 0x28]
push eax
call fcn.005e7e7e
add esp, 4
cmp eax, 0xffffffff
jne 0x545ce7
mov eax, dword [ebp - 0x2c]
test eax, eax
jne 0x545cca
lea eax, [ebp - 0x28]
push eax
lea edx, [ebp - 0x18]
push str.Could_not_delete_temp_file__ls_n
push edx
call fcn.005fb90b
mov eax, dword [ebp - 0x18]
add esp, 0xc
push eax
mov ecx, ebx
call fcn.00541a30
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 2
call fcn.00401070
mov eax, dword [0x6a45ac]
test eax, eax
je 0x545d33
mov ecx, dword [ebp + 0xc]
cmp dword [ecx], 0
je 0x545d09
mov eax, dword [ebp + 0x10]
jmp 0x545d13
mov eax, dword [ebp - 0x5c]
test eax, eax
jne 0x545d13
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 0x545db8
mov esi, dword [ebp + 0xc]
cmp dword [esi], 0
je 0x545d40
mov eax, dword [ebp + 0x10]
jmp 0x545d4a
mov eax, dword [ebp - 0x5c]
test eax, eax
jne 0x545d4a
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.005e63d0
add esp, 8
test eax, eax
jne 0x545d81
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 0x545dab
cmp dword [esi], 0
je 0x545d8b
mov eax, dword [ebp + 0x10]
jmp 0x545d95
mov eax, dword [ebp - 0x5c]
test eax, eax
jne 0x545d95
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.00602ad6
cmp edi, 0xffffffff
jne 0x545e21
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.005fb90b
mov eax, dword [ebp - 0x18]
add esp, 0xc
mov ecx, ebx
push eax
call fcn.00541a30
mov ecx, dword [0x6d263c]
push ecx
mov ecx, dword [ebx + 0xd4]
call fcn.00554c40
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 1
call fcn.00401070
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0
call fcn.00602ad6
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 0x545e8a
mov eax, dword [ebx + 0x104]
test eax, eax
jne 0x545e8a
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
je 0x545e8a
call esi
push eax
lea eax, [ebp - 0x18]
push str.Error_during_GetFileSize____errcode___d._n
push eax
call fcn.005fb90b
mov ecx, dword [ebp - 0x18]
add esp, 0xc
push ecx
mov ecx, ebx
call fcn.00541a30
xor esi, esi
mov dword [ebx + 0x100], esi
mov dword [ebx + 0x104], esi
jmp 0x545eb7
mov edx, dword [ebp - 0x38]
push 1
push 0
push 0
push edx
call fcn.005e8c50
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 0x545eea
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.005fb90b
mov edx, dword [ebp - 0x18]
add esp, 0x14
mov ecx, ebx
push edx
call fcn.00541a30
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 0x545f3b
mov eax, dword [ebp + 0x10]
jmp 0x545f45
mov eax, dword [ebp - 0x5c]
cmp eax, esi
jne 0x545f45
lea eax, [ebp - 0x58]
push 0
push 0
lea edx, [ebp - 0x50]
push 0
push edx
push eax
call fcn.005e7163
mov esi, dword [ebp - 0x44]
add esp, 0x14
jmp 0x545f60
mov edi, dword [ebp + 8]
test esi, esi
je 0x546285
mov eax, dword [ebp + 0xc]
cmp dword [eax], 0
je 0x545f75
mov eax, dword [ebp + 0x10]
jmp 0x545f7e
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.005fb90b
mov ecx, dword [ebp - 0x18]
add esp, 0x10
push ecx
mov ecx, ebx
call fcn.00541a30
mov eax, dword [esi + 0x14]
test eax, eax
je 0x5460c7
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.00547170
mov edi, eax
test edi, edi
je 0x5460d3
cmp edi, 0x757c
je 0x5460d3
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x54609a
push esi
call fcn.005e639f
add esp, 4
test eax, eax
je 0x54609a
mov eax, dword [ebp - 0x5c]
test eax, eax
jne 0x546007
lea eax, [ebp - 0x58]
push esi
push eax
call fcn.005e69c4
add esp, 8
test eax, eax
je 0x54609a
mov eax, dword [ebp - 0x5c]
test eax, eax
jne 0x546023
lea eax, [ebp - 0x58]
push 0
push eax
push esi
call fcn.00495670
add esp, 0xc
test eax, eax
jne 0x546063
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.005fb90b
mov ecx, dword [ebp - 0x18]
add esp, 0x14
push ecx
mov ecx, ebx
call fcn.00541a30
jmp 0x54609a
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.005fb90b
mov edx, dword [ebp - 0x18]
add esp, 0x14
mov ecx, ebx
push edx
call fcn.00541a30
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.00602ad6
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.00541a30
mov ecx, dword [esi + 0x10]
push ecx
call fcn.005e7e7e
mov edx, dword [esi + 0x10]
add esp, 4
cmp eax, 0xffffffff
push edx
jne 0x5460ef
push str.Could_not_delete_temp_file__ls_n
jmp 0x5460f4
push str.Deleting_temp_file__ls_n
lea eax, [ebp - 0x18]
push eax
call fcn.005fb90b
mov ecx, dword [ebp - 0x18]
add esp, 0xc
push ecx
mov ecx, ebx
call fcn.00541a30
mov edx, dword [esi + 0x60]
lea eax, [ebp - 0x48]
push edx
push 0x6a00e4
push eax
call fcn.005e6db3
mov eax, dword [ebx + 0xdc]
mov esi, dword [esi + 0x58]
add esp, 0xc
test eax, eax
je 0x545f5d
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.005fb90b
mov ecx, dword [0x6cc708]
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.005fb90b
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 0x54620b
mov eax, dword [ebp - 0x30]
test eax, eax
jbe 0x54620b
mov ecx, dword [ebx + 0xdc]
lea edx, [ebp - 0x24]
lea eax, [ebp - 0x1c]
push edx
push eax
push 0
push 0
push 0x6bd040
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 0x6bd040
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [ebp - 0x18]
push ecx
mov ecx, ebx
call fcn.00541a30
xor eax, eax
cmp esi, eax
mov dword [ebp - 0x84], eax
mov dword [ebp - 0x7c], eax
mov dword [ebp - 0x78], eax
je 0x546230
mov edx, dword [esi + 0x60]
mov dword [ebp - 0x80], edx
jmp 0x546237
mov dword [ebp - 0x80], 0xffffffff
mov edx, dword [ebx + 0xdc]
lea ecx, [ebp - 0x84]
push 0x10
push ecx
push eax
push eax
push 0x6a7814
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.005fb90b
mov edx, dword [ebp - 0x18]
add esp, 0xc
mov ecx, ebx
push edx
call fcn.00541a30
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 2
call fcn.00602ad6
jmp 0x545f5d
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 0x5462de
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
je 0x5462de
call esi
push eax
lea ecx, [ebp - 0x18]
push str.Error_during_GetFileSize____errcode___ld._n
push ecx
call fcn.005fb90b
mov edx, dword [ebp - 0x18]
add esp, 0xc
mov ecx, ebx
push edx
call fcn.00541a30
xor eax, eax
mov dword [ebx + 0xb0], eax
jmp 0x546303
mov eax, dword [ebp - 0x38]
push 1
push 0
push 0
push eax
call fcn.005e8c50
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 0x54632d
mov ecx, dword [eax + 0x3c]
test ecx, ecx
jne 0x54632d
mov ecx, dword [ebx + 0xb4]
mov edx, dword [ebx + 0xb0]
push ecx
push edx
push edi
mov ecx, ebx
call fcn.00546930
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, ebx
call fcn.00549fe0
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.005fb90b
mov eax, dword [ebp - 0x18]
add esp, 0x10
mov ecx, ebx
push eax
call fcn.00541a30
cmp dword [ebx], 0
je 0x5466d7
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x5466d7
mov ecx, eax
push ecx
call fcn.005e639f
add esp, 4
test eax, eax
je 0x5466d7
mov edx, dword [ebp + 0xc]
cmp dword [edx], 0
jne 0x5466d7
mov eax, dword [ebp - 0x5c]
test eax, eax
jne 0x5463a2
lea eax, [ebp - 0x58]
mov ecx, dword [ebp + 0x10]
push ecx
push eax
call fcn.005e69c4
add esp, 8
test eax, eax
je 0x5466d7
mov esi, dword [ebp + 0x10]
push 1
push esi
call fcn.00495aa0
add esp, 8
test eax, eax
je 0x546406
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.005fb90b
mov edx, dword [ebp - 0x18]
add esp, 0xc
mov ecx, ebx
push edx
call fcn.00541a30
lea ecx, [ebp + 8]
mov byte [ebp - 4], 2
call fcn.00602ad6
mov eax, dword [ebp - 0x5c]
test eax, eax
mov edi, eax
jne 0x546412
lea edi, [ebp - 0x58]
mov eax, dword [ebp + 0x10]
push 1
push eax
push edi
mov dword [ebp - 0x24], edi
call fcn.00495670
mov esi, eax
add esp, 0xc
test esi, esi
mov dword [ebp - 0x44], esi
jne 0x546684
mov ecx, dword [0x6cc708]
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.005fb90b
mov ecx, dword [ebp + 8]
add esp, 0x14
push ecx
mov ecx, ebx
call fcn.00541a30
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 0x54648c
lea eax, [ebp - 0x64]
push 0x5c
push eax
call fcn.005e62ef
add esp, 8
test eax, eax
jne 0x5464b8
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 0x11
call fcn.00401070
lea ecx, [ebp + 8]
mov byte [ebp - 4], 2
call fcn.00602ad6
jmp 0x546636
add eax, 2
mov word [eax], 0
mov eax, dword [ebp - 0x68]
test eax, eax
jne 0x5464ca
lea eax, [ebp - 0x64]
push 1
push eax
call fcn.00495c30
add esp, 8
test eax, eax
jne 0x54661a
push str.Folder_does_not_exist__Creating..._n
mov ecx, ebx
call fcn.00541a30
mov eax, dword [ebp - 0x68]
test eax, eax
jne 0x5464f3
lea eax, [ebp - 0x64]
add eax, 6
push 0x5c
push eax
call fcn.005e699b
add esp, 8
mov esi, eax
test esi, esi
je 0x546609
mov eax, dword [ebp - 0x68]
test eax, eax
jne 0x546515
lea eax, [ebp - 0x64]
push eax
lea ecx, [ebp - 0x80]
call fcn.0040e5a0
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.00495c30
add esp, 8
test eax, eax
jne 0x5465e5
push 1
lea ecx, [ebp - 0x80]
call fcn.00402400
push eax
call fcn.00495e10
add esp, 8
test eax, eax
jne 0x5465e5
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.005fb90b
mov eax, dword [ebp + 8]
add esp, 0x10
mov ecx, ebx
push eax
call fcn.00541a30
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 0x13
call fcn.00602ad6
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.00602ad6
mov esi, dword [ebp - 0x44]
jmp 0x546632
add esi, 2
push 0x5c
push esi
call fcn.005e699b
add esp, 8
lea ecx, [ebp - 0x80]
mov esi, eax
mov byte [ebp - 4], 0x12
call fcn.00401070
mov edi, dword [ebp - 0x24]
jmp 0x546503
mov ecx, dword [ebp + 0x10]
push 1
push ecx
push edi
call fcn.00495670
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.00602ad6
test esi, esi
jne 0x546684
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.005fb90b
mov edx, dword [ebp - 0x18]
add esp, 0x14
mov ecx, ebx
push edx
call fcn.00541a30
mov byte [ebp - 4], 2
lea ecx, [ebp + 8]
jmp 0x5466d2
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.005fb90b
mov eax, dword [ebp - 0x18]
add esp, 0x10
mov ecx, ebx
push eax
call fcn.00541a30
mov ecx, dword [ebp + 0xc]
mov byte [ebp - 4], 2
mov dword [ecx], 1
lea ecx, [ebp + 8]
call fcn.00602ad6
mov esi, dword [ebp + 0xc]
cmp dword [esi], 0
je 0x54688a
mov edx, dword [ebp + 0x10]
push edx
call fcn.00545180
mov eax, dword [esi]
add esp, 4
test eax, eax
je 0x54688a
mov edx, dword [0x6d12f4]
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 0x54672c
cmp dword [ebp + 0xc], 1
je 0x54688a
mov ecx, dword [ebx + 0xd4]
call fcn.00554c20
mov eax, dword [0x6d12b0]
test eax, eax
jne 0x546745
mov eax, 0x6d12b4
push eax
call fcn.005e7a84
mov eax, dword [ebx + 0xd4]
add esp, 4
add eax, 4
cmp word [eax], 0
je 0x54688a
xor ecx, ecx
mov dword [ebp - 0x68], ecx
mov dword [ebp - 0x60], ecx
mov word [ebp - 0x64], cx
mov edx, 0x6a00a0
mov byte [ebp - 4], 0x17
test edx, edx
je 0x54684b
test eax, eax
je 0x54684b
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 0x6a00a0
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 0x5467cd
lea eax, [ebp - 0x70]
mov esi, dword [ebp - 0x78]
push eax
call fcn.005e639f
lea ebx, [eax + esi + 2]
lea esi, [ebx + ebx]
push esi
call fcn.005feedc
mov edi, eax
add esp, 8
test edi, edi
mov dword [ebp - 0x68], edi
je 0x546830
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 0x54680b
lea eax, [ebp - 0x70]
mov ecx, dword [ebp - 0x80]
test ecx, ecx
jne 0x546815
lea ecx, [ebp - 0x7c]
push eax
mov eax, dword [ebp - 0x68]
push ecx
push ebx
push eax
call fcn.005e632f
mov ecx, dword [ebp - 0x68]
push ecx
call fcn.005e639f
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 0x546854
lea eax, [ebp - 0x64]
push 0x5c
push eax
call fcn.005e62ef
add esp, 8
test eax, eax
je 0x54687b
mov word [eax], 0
mov eax, dword [ebp - 0x68]
test eax, eax
jne 0x546872
lea eax, [ebp - 0x64]
push eax
call fcn.005e8c84
add esp, 4
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 2
call fcn.00401070
mov ebx, dword [ebp - 0x3c]
mov eax, dword [0x6d12b0]
test eax, eax
jne 0x546898
mov eax, 0x6d12b4
push eax
call fcn.005e7a84
mov edx, dword [ebx + 0xd8]
add esp, 4
mov eax, dword [edx]
test eax, eax
je 0x5468c0
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.00602ad6
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