Function at 0x52d9b0
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 0x6087f1
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x7c
push ebx
push esi
push edi
mov edi, ecx
xor esi, esi
mov dword [ebp - 0x10], esp
mov eax, dword [edi + 0x88]
mov dword [ebp - 0x1c], edi
cmp eax, esi
mov dword [ebp - 4], esi
je 0x52ee56
mov eax, dword [eax + 0x38]
mov ecx, dword [0x6ca27c]
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x18], ecx
mov ecx, edi
mov byte [ebp - 4], 1
call fcn.00532f30
push str.Assembling_all_downloaded_portions_into_one_file..._n
mov ecx, edi
call fcn.0052b240
mov edx, dword [edi + 0xd8]
mov eax, dword [edx]
cmp eax, esi
je 0x52da28
push esi
push 0x147a
push 0x111
jmp 0x52da42
mov eax, dword [edi + 0x90]
cmp eax, esi
je 0x52da49
push eax
mov eax, dword [0x6cefbc]
push 0x149f
push 0x111
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, dword [edi + 0xc]
cmp eax, esi
je 0x52da65
mov ecx, dword [edi + 0x10]
push ecx
push 0x147a
push 0x111
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov edx, dword [edi + 0x88]
lea ecx, [ebp - 0x60]
mov eax, dword [edx + 0x10]
mov dword [ebp - 0x60], esi
push eax
mov dword [ebp - 0x58], esi
mov word [ebp - 0x5c], si
call fcn.00401f60
mov ebx, dword [ebp + 0x10]
mov byte [ebp - 4], 2
cmp ebx, esi
mov byte [ebp - 0x11], 0
je 0x52df9f
push ebx
call fcn.005c4b4a
add esp, 4
test eax, eax
je 0x52df9f
cmp dword [edi], esi
je 0x52df9f
mov eax, dword [ebp - 0x60]
cmp eax, esi
jne 0x52dab7
lea eax, [ebp - 0x5c]
push ebx
push eax
call fcn.005c722c
add esp, 8
test eax, eax
je 0x52df9f
push 1
push ebx
call fcn.00488f50
add esp, 8
cmp eax, esi
je 0x52db11
push ebx
lea ecx, [ebp - 0x38]
call fcn.005e124c
mov eax, dword [ebp - 0x38]
lea ecx, [ebp - 0x18]
push eax
push str.Delete_old_file__s_n
push ecx
mov byte [ebp - 4], 3
call fcn.005d9fbb
mov edx, dword [ebp - 0x18]
add esp, 0xc
mov ecx, edi
push edx
call fcn.0052b240
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 2
call fcn.005e118c
cmp dword [ebp + 8], esi
jbe 0x52dccb
cmp dword [0x6a3f58], esi
je 0x52db39
push esi
push esi
push 2
push esi
push 1
push 0xc0000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
jmp 0x52db7d
push ebx
lea ecx, [ebp - 0x24]
call fcn.005e124c
mov eax, dword [ebp - 0x24]
push 0x3f
push eax
call fcn.005c4b80
add esp, 8
test eax, eax
push esi
push esi
push 2
push esi
push 1
push 0xc0000000
jne 0x52db6c
mov ecx, dword [ebp - 0x24]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
jmp 0x52db73
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
lea ecx, [ebp - 0x24]
mov esi, eax
call fcn.005e118c
cmp esi, 0xffffffff
jne 0x52dbb3
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.005d9fbb
mov eax, dword [ebp - 0x18]
add esp, 0xc
mov ecx, edi
push eax
call fcn.0052b240
mov ecx, dword [0x6d005c]
push ecx
jmp 0x52e383
push 0
push 0
lea edx, [ebp - 0x2c]
push 0
push edx
push ebx
call fcn.005c5908
mov eax, dword [ebp + 8]
add esp, 0x14
lea ecx, [ebp - 0x2c]
push eax
push ecx
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ecx + 0x88]
mov eax, dword [edx + 0x10]
push eax
push esi
call fcn.0052f6f0
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
je 0x52dc23
cmp edi, 0x757c
je 0x52dc23
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 1
call fcn.00401070
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0
call fcn.005e118c
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 ebx
lea ecx, [ebp - 0x38]
mov byte [ebp - 0x11], 1
call fcn.005e124c
mov esi, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x38]
push ecx
lea ecx, [ebp - 0x18]
mov edx, dword [esi + 0x88]
mov byte [ebp - 4], 4
mov eax, dword [edx + 0x10]
push eax
push str.Rename2_temp_file__ls_to__s._n
push ecx
call fcn.005d9fbb
mov edx, dword [ebp - 0x18]
add esp, 0x10
mov ecx, esi
push edx
call fcn.0052b240
mov eax, dword [ebp + 0xc]
mov dword [eax], 1
mov ecx, dword [esi + 0x88]
mov edx, dword [ecx + 0x10]
push edx
call fcn.005c6663
add esp, 4
cmp eax, 0xffffffff
jne 0x52dcbf
mov eax, dword [0x6ca27c]
mov dword [ebp - 0x24], eax
mov ecx, dword [esi + 0x88]
lea eax, [ebp - 0x24]
mov byte [ebp - 4], 5
mov edx, dword [ecx + 0x10]
push edx
push str.Could_not_delete_temp_file__ls_n
push eax
call fcn.005d9fbb
mov ecx, dword [ebp - 0x24]
add esp, 0xc
push ecx
mov ecx, esi
call fcn.0052b240
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 4
call fcn.005e118c
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x38]
jmp 0x52df9a
mov eax, dword [ebp - 0x60]
cmp eax, esi
mov edi, eax
jne 0x52dcd7
lea edi, [ebp - 0x5c]
push 0
push ebx
push edi
mov dword [ebp - 0x28], edi
call fcn.00488b20
mov esi, eax
add esp, 0xc
test esi, esi
mov dword [ebp - 0x24], esi
jne 0x52df50
mov edx, dword [0x6ca27c]
mov dword [ebp - 0x20], edx
mov byte [ebp - 4], 6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ebx
push edi
lea eax, [ebp - 0x20]
push str.Can_not_rename_temp_file__ls_to__ls__error___ld_n
push eax
call fcn.005d9fbb
mov ecx, dword [ebp - 0x20]
add esp, 0x14
push ecx
mov ecx, dword [ebp - 0x1c]
call fcn.0052b240
xor eax, eax
push ebx
lea ecx, [ebp - 0x6c]
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x64], eax
mov word [ebp - 0x68], ax
call fcn.00401f60
push 0x5c
lea ecx, [ebp - 0x6c]
mov byte [ebp - 4], 7
call fcn.00401f50
push eax
call fcn.005c4a9a
add esp, 8
test eax, eax
jne 0x52dd73
lea ecx, [ebp - 0x6c]
mov byte [ebp - 4], 6
call fcn.00401070
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 2
call fcn.005e118c
jmp 0x52df06
add eax, 2
push 0
lea ecx, [ebp - 0x6c]
mov word [eax], 0
call fcn.00401f50
push eax
call fcn.004890e0
add esp, 8
test eax, eax
jne 0x52deea
mov ecx, dword [ebp - 0x1c]
push str.Folder_does_not_exist__Creating..._n
call fcn.0052b240
lea ecx, [ebp - 0x6c]
call fcn.00401f50
add eax, 4
push 0x5c
add eax, 2
push eax
call fcn.005c4fbf
add esp, 8
mov esi, eax
mov bl, 8
test esi, esi
je 0x52ded6
lea ecx, [ebp - 0x6c]
call fcn.00401f50
push eax
lea ecx, [ebp - 0x84]
call fcn.0040d680
lea ecx, [ebp - 0x6c]
mov byte [ebp - 4], bl
call fcn.00401f50
mov edi, esi
lea ecx, [ebp - 0x84]
sub edi, eax
sar edi, 1
call fcn.00401f50
push 0
lea ecx, [ebp - 0x84]
mov word [eax + edi*2], 0
call fcn.00401f50
push eax
call fcn.004890e0
add esp, 8
test eax, eax
jne 0x52deaf
push eax
lea ecx, [ebp - 0x84]
call fcn.00401f50
push eax
call fcn.004892c0
add esp, 8
test eax, eax
jne 0x52deaf
lea ecx, [ebp - 0x84]
call fcn.00401f50
push eax
lea ecx, [ebp - 0x38]
call fcn.005e124c
mov byte [ebp - 4], 9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [ebp - 0x38]
push eax
push edx
lea eax, [ebp - 0x20]
push str.Can_not_create_folder__s__error___ld_n
push eax
call fcn.005d9fbb
mov ecx, dword [ebp - 0x20]
add esp, 0x10
push ecx
mov ecx, dword [ebp - 0x1c]
call fcn.0052b240
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], bl
call fcn.005e118c
lea ecx, [ebp - 0x84]
mov byte [ebp - 4], 7
call fcn.00401070
lea ecx, [ebp - 0x6c]
mov byte [ebp - 4], 6
call fcn.00401070
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 2
call fcn.005e118c
mov esi, dword [ebp - 0x24]
mov ebx, dword [ebp + 0x10]
jmp 0x52df02
add esi, 2
push 0x5c
push esi
call fcn.005c4fbf
add esp, 8
lea ecx, [ebp - 0x84]
mov esi, eax
mov byte [ebp - 4], 7
call fcn.00401070
mov edi, dword [ebp - 0x28]
jmp 0x52ddc0
mov edx, dword [ebp + 0x10]
push 0
push edx
push edi
call fcn.00488b20
mov ebx, dword [ebp + 0x10]
add esp, 0xc
mov esi, eax
lea ecx, [ebp - 0x6c]
mov byte [ebp - 4], 6
call fcn.00401070
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 2
call fcn.005e118c
test esi, esi
jne 0x52df50
push ebx
lea ecx, [ebp - 0x38]
call fcn.005e124c
mov byte [ebp - 4], 0xa
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x38]
mov ecx, dword [esi + 0x88]
push eax
lea eax, [ebp - 0x18]
mov edx, dword [ecx + 0x10]
push edx
push str.Can_not_rename_temp_file__ls_to__s__errno___ld_n
push eax
call fcn.005d9fbb
mov ecx, dword [ebp - 0x18]
add esp, 0x14
push ecx
mov ecx, esi
call fcn.0052b240
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x38]
jmp 0x52df9a
push ebx
lea ecx, [ebp - 0x38]
call fcn.005e124c
mov esi, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x38]
push edx
lea edx, [ebp - 0x18]
mov eax, dword [esi + 0x88]
mov byte [ebp - 4], 0xb
mov ecx, dword [eax + 0x10]
push ecx
push str.Rename_temp_file__ls_to__s._n
push edx
call fcn.005d9fbb
mov eax, dword [ebp - 0x18]
add esp, 0x10
mov ecx, esi
push eax
call fcn.0052b240
mov ecx, dword [ebp + 0xc]
mov byte [ebp - 4], 2
mov dword [ecx], 1
lea ecx, [ebp - 0x38]
call fcn.005e118c
mov eax, dword [ebp + 8]
test eax, eax
jbe 0x52e28f
mov al, byte [ebp - 0x11]
test al, al
jne 0x52e28f
xor ecx, ecx
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x28], ecx
mov word [ebp - 0x2c], cx
mov edx, dword [ebp - 0x1c]
mov byte [ebp - 4], 0xc
mov eax, dword [edx + 0x88]
mov edx, str._s_tmp
test edx, edx
mov eax, dword [eax + 0x10]
je 0x52e0a9
test eax, eax
je 0x52e0a9
mov dword [ebp - 0x84], ecx
mov dword [ebp - 0x7c], ecx
mov word [ebp - 0x80], cx
push eax
lea ecx, [ebp - 0x84]
call fcn.00401f60
mov bl, 0xd
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], bl
call fcn.00401070
push str._s_tmp
lea ecx, [ebp - 0x78]
call fcn.00401ed0
mov esi, dword [ebp - 0x70]
lea ecx, [ebp - 0x84]
mov byte [ebp - 4], 0xe
call fcn.00401f50
push eax
call fcn.005c4b4a
lea esi, [eax + esi + 2]
lea edi, [esi + esi]
push edi
call fcn.005dd58d
mov edx, eax
add esp, 8
test edx, edx
mov dword [ebp - 0x30], edx
je 0x52e08c
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 - 0x84]
call fcn.00401f50
push eax
lea ecx, [ebp - 0x78]
call fcn.00401f50
push eax
mov eax, dword [ebp - 0x30]
push esi
push eax
call fcn.005c4ada
mov ecx, dword [ebp - 0x30]
push ecx
call fcn.005c4b4a
add esp, 0x14
mov dword [ebp - 0x28], eax
lea ecx, [ebp - 0x78]
mov byte [ebp - 4], bl
call fcn.00401070
lea ecx, [ebp - 0x84]
mov byte [ebp - 4], 0xc
call fcn.00401070
mov ecx, dword [ebp - 0x30]
test ecx, ecx
jne 0x52e0b0
lea ecx, [ebp - 0x2c]
mov edi, dword [ebp - 0x1c]
push ecx
mov edx, dword [edi + 0x88]
mov eax, dword [edx + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
jne 0x52e100
mov esi, dword [ebp - 0x30]
test esi, esi
jne 0x52e0d2
lea esi, [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [edi + 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.005d9fbb
mov ecx, dword [ebp - 0x18]
add esp, 0x14
push ecx
mov ecx, edi
jmp 0x52e27e
mov edx, dword [edi + 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 0x52e195
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.005d9fbb
mov edx, dword [ebp - 0x18]
add esp, 0xc
mov ecx, edi
push edx
call fcn.0052b240
mov eax, dword [0x6d005c]
mov ecx, dword [edi + 0xd4]
push eax
call fcn.0053c5b0
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 2
call fcn.00401070
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 1
call fcn.00401070
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0
call fcn.005e118c
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 [edi + 0x88]
push 0
push 0
lea ecx, [ebp - 0x38]
mov eax, dword [edx + 0x10]
push 0
push ecx
push eax
call fcn.005c5908
mov eax, dword [ebp - 0x30]
add esp, 0x14
test eax, eax
jne 0x52e1bb
lea eax, [ebp - 0x2c]
mov ecx, dword [ebp + 8]
mov ebx, dword [ebp - 0x1c]
lea edx, [ebp - 0x38]
push ecx
push edx
push eax
push esi
mov ecx, ebx
call fcn.0052f6f0
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
je 0x52e21d
cmp edi, 0x757c
je 0x52e21d
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 2
call fcn.00401070
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 1
call fcn.00401070
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0
call fcn.005e118c
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 - 0x30]
test eax, eax
jne 0x52e227
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x18]
push str.Skip_first_bytes_via_temp_file__ls._n
push eax
call fcn.005d9fbb
mov ecx, dword [ebp - 0x18]
add esp, 0xc
push ecx
mov ecx, ebx
call fcn.0052b240
mov eax, dword [ebp - 0x30]
test eax, eax
jne 0x52e24e
lea eax, [ebp - 0x2c]
push eax
call fcn.005c6663
add esp, 4
cmp eax, 0xffffffff
jne 0x52e283
mov eax, dword [ebp - 0x30]
test eax, eax
jne 0x52e266
lea eax, [ebp - 0x2c]
push eax
lea edx, [ebp - 0x18]
push str.Could_not_delete_temp_file__ls_n
push edx
call fcn.005d9fbb
mov eax, dword [ebp - 0x18]
add esp, 0xc
mov ecx, ebx
push eax
call fcn.0052b240
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 2
call fcn.00401070
mov eax, dword [0x6a3f58]
test eax, eax
je 0x52e2cf
mov ecx, dword [ebp + 0xc]
cmp dword [ecx], 0
je 0x52e2a5
mov eax, dword [ebp + 0x10]
jmp 0x52e2af
mov eax, dword [ebp - 0x60]
test eax, eax
jne 0x52e2af
lea eax, [ebp - 0x5c]
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 0x52e350
mov esi, dword [ebp + 0xc]
cmp dword [esi], 0
je 0x52e2dc
mov eax, dword [ebp + 0x10]
jmp 0x52e2e6
mov eax, dword [ebp - 0x60]
test eax, eax
jne 0x52e2e6
lea eax, [ebp - 0x5c]
push eax
lea ecx, [ebp - 0x24]
call fcn.005e124c
mov edx, dword [ebp - 0x24]
push 0x3f
push edx
call fcn.005c4b80
add esp, 8
test eax, eax
jne 0x52e319
push eax
push eax
push 3
push eax
mov eax, dword [ebp - 0x24]
push 1
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
jmp 0x52e343
cmp dword [esi], 0
je 0x52e323
mov eax, dword [ebp + 0x10]
jmp 0x52e32d
mov eax, dword [ebp - 0x60]
test eax, eax
jne 0x52e32d
lea eax, [ebp - 0x5c]
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 - 0x24]
mov dword [ebp + 8], edi
call fcn.005e118c
cmp edi, 0xffffffff
jne 0x52e3bb
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.005d9fbb
mov edx, dword [ebp - 0x18]
mov edi, dword [ebp - 0x1c]
add esp, 0xc
mov ecx, edi
push edx
call fcn.0052b240
mov eax, dword [0x6d005c]
push eax
mov ecx, dword [edi + 0xd4]
call fcn.0053c5b0
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 1
call fcn.00401070
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0
call fcn.005e118c
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 ebx, dword [ebp - 0x1c]
lea ecx, [ebp - 0x3c]
push ecx
push edi
lea esi, [ebx + 0x100]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [esi], eax
mov dword [esi + 4], 0
cmp dword [esi], 0xffffffff
jne 0x52e420
mov eax, dword [esi + 4]
test eax, eax
jne 0x52e420
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x52e420
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea edx, [ebp - 0x18]
push str.Error_during_GetFileSize____errcode___d._n
push edx
call fcn.005d9fbb
mov eax, dword [ebp - 0x18]
add esp, 0xc
mov ecx, ebx
push eax
call fcn.0052b240
mov dword [esi], 0
mov dword [esi + 4], 0
jmp 0x52e43d
mov ecx, dword [ebp - 0x3c]
push 1
push 0
push 0
push ecx
call fcn.005c7440
mov ecx, dword [esi]
add ecx, eax
mov dword [esi], ecx
mov eax, dword [esi + 4]
adc eax, edx
mov dword [esi + 4], eax
mov edx, dword [ebx + 0xd8]
mov eax, dword [edx]
test eax, eax
je 0x52e45b
push esi
push 0x147b
push 0x111
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, dword [esi + 4]
mov edx, dword [ebx + 0x88]
mov ecx, dword [esi]
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.005d9fbb
mov edx, dword [ebp - 0x18]
add esp, 0x14
mov ecx, ebx
push edx
call fcn.0052b240
lea eax, [ebp - 0x40]
push 2
push eax
push 0
push edi
mov dword [ebp - 0x40], 0
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ecx, dword [ebp + 0xc]
cmp dword [ecx], 0
je 0x52e4ab
mov eax, dword [ebp + 0x10]
jmp 0x52e4b5
mov eax, dword [ebp - 0x60]
test eax, eax
jne 0x52e4b5
lea eax, [ebp - 0x5c]
push 0
push 0
lea edx, [ebp - 0x54]
push 0
push edx
push eax
call fcn.005c5908
mov esi, dword [ebp - 0x44]
add esp, 0x14
jmp 0x52e4d0
mov edi, dword [ebp + 8]
test esi, esi
je 0x52e7fe
mov eax, dword [ebp + 0xc]
cmp dword [eax], 0
je 0x52e4e5
mov eax, dword [ebp + 0x10]
jmp 0x52e4ee
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.005d9fbb
mov ecx, dword [ebp - 0x18]
add esp, 0x10
push ecx
mov ecx, ebx
call fcn.0052b240
mov eax, dword [esi + 0x14]
test eax, eax
je 0x52e637
mov edx, dword [esi + 0x24]
mov ecx, dword [esi + 0x10]
lea eax, [ebp - 0x54]
push edx
mov edx, dword [ebp + 8]
push eax
push ecx
push edx
mov ecx, ebx
call fcn.0052f6f0
mov edi, eax
test edi, edi
je 0x52e643
cmp edi, 0x757c
je 0x52e643
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x52e60a
push esi
call fcn.005c4b4a
add esp, 4
test eax, eax
je 0x52e60a
mov eax, dword [ebp - 0x60]
test eax, eax
jne 0x52e577
lea eax, [ebp - 0x5c]
push esi
push eax
call fcn.005c505f
add esp, 8
test eax, eax
je 0x52e60a
mov eax, dword [ebp - 0x60]
test eax, eax
jne 0x52e593
lea eax, [ebp - 0x5c]
push 0
push eax
push esi
call fcn.00488b20
add esp, 0xc
test eax, eax
jne 0x52e5d3
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.005d9fbb
mov ecx, dword [ebp - 0x18]
add esp, 0x14
push ecx
mov ecx, ebx
call fcn.0052b240
jmp 0x52e60a
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.005d9fbb
mov edx, dword [ebp - 0x18]
add esp, 0x14
mov ecx, ebx
push edx
call fcn.0052b240
mov eax, dword [ebp + 0xc]
mov dword [eax], 0
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 1
call fcn.00401070
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0
call fcn.005e118c
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.0052b240
mov ecx, dword [esi + 0x10]
push ecx
call fcn.005c6663
mov edx, dword [esi + 0x10]
add esp, 4
cmp eax, 0xffffffff
push edx
jne 0x52e65f
push str.Could_not_delete_temp_file__ls_n
jmp 0x52e664
push str.Deleting_temp_file__ls_n
lea eax, [ebp - 0x18]
push eax
call fcn.005d9fbb
mov ecx, dword [ebp - 0x18]
add esp, 0xc
push ecx
mov ecx, ebx
call fcn.0052b240
mov edx, dword [esi + 0x40]
lea eax, [ebp - 0x48]
push edx
push 0x6a0000
push eax
call fcn.005c5558
mov eax, dword [ebx + 0xdc]
mov esi, dword [esi + 0x38]
add esp, 0xc
test eax, eax
je 0x52e4cd
mov edi, dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
lea ecx, [ebp - 0x48]
push ecx
push eax
call edi
lea edx, [ebp - 0x48]
lea eax, [ebp - 0x18]
push edx
push str.Deleting_record__s_from_registry_n
push eax
call fcn.005d9fbb
mov ecx, dword [0x6ca27c]
add esp, 0xc
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x24], ecx
lea edx, [ebp - 0x48]
lea eax, [ebp - 0x24]
push edx
push str.sk_s
push eax
mov byte [ebp - 4], 0xf
call fcn.005d9fbb
mov eax, dword [ebp - 0x24]
add esp, 0xc
lea ecx, [ebp - 0x28]
lea edx, [ebp - 0x38]
push ecx
mov ecx, dword [ebx + 0xdc]
push edx
push 0
push 0
push eax
push ecx
mov dword [ebp - 0x28], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x52e77b
mov eax, dword [ebp - 0x38]
test eax, eax
jbe 0x52e77b
mov ecx, dword [ebx + 0xdc]
lea edx, [ebp - 0x28]
lea eax, [ebp - 0x20]
push edx
push eax
push 0
push 0
push 0x6bb338
push ecx
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x28], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edx, dword [ebp - 0x38]
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebx + 0xdc]
add eax, edx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x24]
push eax
push ecx
call edi
mov eax, dword [ebx + 0xdc]
lea edx, [ebp - 0x20]
push 4
push edx
push 4
push 0
push 0x6bb338
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [ebp - 0x18]
push ecx
mov ecx, ebx
call fcn.0052b240
xor eax, eax
cmp esi, eax
mov dword [ebp - 0x88], eax
mov dword [ebp - 0x80], eax
mov dword [ebp - 0x7c], eax
je 0x52e7a3
mov edx, dword [esi + 0x40]
mov dword [ebp - 0x84], edx
jmp 0x52e7ad
mov dword [ebp - 0x84], 0xffffffff
mov edx, dword [ebx + 0xdc]
lea ecx, [ebp - 0x88]
push 0x10
push ecx
push eax
push eax
push 0x6a7028
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [ebp - 0x84]
lea ecx, [ebp - 0x18]
push eax
push str.Updating_record_with_ID_0__set_nextID__d_n
push ecx
call fcn.005d9fbb
mov edx, dword [ebp - 0x18]
add esp, 0xc
mov ecx, ebx
push edx
call fcn.0052b240
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 2
call fcn.005e118c
jmp 0x52e4cd
lea eax, [ebp - 0x3c]
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 0x52e857
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
je 0x52e857
call esi
push eax
lea ecx, [ebp - 0x18]
push str.Error_during_GetFileSize____errcode___ld._n
push ecx
call fcn.005d9fbb
mov edx, dword [ebp - 0x18]
add esp, 0xc
mov ecx, ebx
push edx
call fcn.0052b240
xor eax, eax
mov dword [ebx + 0xb0], eax
jmp 0x52e87c
mov eax, dword [ebp - 0x3c]
push 1
push 0
push 0
push eax
call fcn.005c7440
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 0x52e8a6
mov ecx, dword [eax + 0x34]
test ecx, ecx
jne 0x52e8a6
mov ecx, dword [ebx + 0xb4]
mov edx, dword [ebx + 0xb0]
push ecx
push edx
push edi
mov ecx, ebx
call fcn.0052eeb0
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, ebx
call fcn.005325a0
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.005d9fbb
mov eax, dword [ebp - 0x18]
add esp, 0x10
mov ecx, ebx
push eax
call fcn.0052b240
mov eax, dword [ebx]
mov esi, dword [ebp + 0x10]
test eax, eax
je 0x52ec4c
test esi, esi
je 0x52ec4c
push esi
call fcn.005c4b4a
add esp, 4
test eax, eax
je 0x52ec4c
mov ecx, dword [ebp + 0xc]
cmp dword [ecx], 0
jne 0x52ec4c
mov eax, dword [ebp - 0x60]
test eax, eax
jne 0x52e91a
lea eax, [ebp - 0x5c]
push esi
push eax
call fcn.005c505f
add esp, 8
test eax, eax
je 0x52ec4c
push 1
push esi
call fcn.00488f50
add esp, 8
test eax, eax
je 0x52e974
push esi
lea ecx, [ebp + 8]
call fcn.005e124c
mov edx, dword [ebp + 8]
lea eax, [ebp - 0x18]
push edx
push str.Delete_old_file__s_n
push eax
mov byte [ebp - 4], 0x10
call fcn.005d9fbb
mov ecx, dword [ebp - 0x18]
add esp, 0xc
push ecx
mov ecx, ebx
call fcn.0052b240
lea ecx, [ebp + 8]
mov byte [ebp - 4], 2
call fcn.005e118c
mov eax, dword [ebp - 0x60]
test eax, eax
je 0x52e982
mov edi, eax
mov dword [ebp - 0x38], edi
jmp 0x52e98a
lea edx, [ebp - 0x5c]
mov dword [ebp - 0x38], edx
mov edi, edx
push 1
push esi
push edi
call fcn.00488b20
add esp, 0xc
mov dword [ebp - 0x24], eax
test eax, eax
jne 0x52ebfa
mov eax, dword [0x6ca27c]
mov dword [ebp + 8], eax
mov byte [ebp - 4], 0x11
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [ebp + 0x10]
push eax
push esi
push edi
lea ecx, [ebp + 8]
push str.Can_not_rename_temp_file__ls_to__ls__error___ld_n
push ecx
call fcn.005d9fbb
mov edx, dword [ebp + 8]
add esp, 0x14
mov ecx, ebx
push edx
call fcn.0052b240
xor edi, edi
push esi
lea ecx, [ebp - 0x4c]
mov dword [ebp - 0x4c], edi
mov dword [ebp - 0x44], edi
mov word [ebp - 0x48], di
call fcn.00401f60
mov eax, dword [ebp - 0x4c]
mov byte [ebp - 4], 0x12
cmp eax, edi
jne 0x52e9f8
lea eax, [ebp - 0x48]
push 0x5c
push eax
call fcn.005c4a9a
add esp, 8
cmp eax, edi
jne 0x52ea24
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 0x11
call fcn.00401070
lea ecx, [ebp + 8]
mov byte [ebp - 4], 2
call fcn.005e118c
jmp 0x52ebab
add eax, 2
mov word [eax], di
mov eax, dword [ebp - 0x4c]
cmp eax, edi
jne 0x52ea34
lea eax, [ebp - 0x48]
push 1
push eax
call fcn.004890e0
add esp, 8
cmp eax, edi
jne 0x52eb8c
push str.Folder_does_not_exist__Creating..._n
mov ecx, ebx
call fcn.0052b240
mov eax, dword [ebp - 0x4c]
cmp eax, edi
jne 0x52ea5d
lea eax, [ebp - 0x48]
add eax, 6
push 0x5c
push eax
call fcn.005c4fbf
add esp, 8
mov esi, eax
xor edi, edi
cmp esi, edi
je 0x52eb77
mov eax, dword [ebp - 0x4c]
cmp eax, edi
jne 0x52ea81
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x6c]
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x64], edi
mov word [ebp - 0x68], di
call fcn.00401f60
mov ecx, dword [ebp - 0x6c]
mov byte [ebp - 4], 0x13
cmp ecx, edi
jne 0x52eaa2
lea ecx, [ebp - 0x68]
mov eax, dword [ebp - 0x4c]
cmp eax, edi
jne 0x52eaac
lea eax, [ebp - 0x48]
mov edx, esi
push 1
sub edx, eax
sar edx, 1
mov word [ecx + edx*2], di
lea ecx, [ebp - 0x6c]
call fcn.00401f50
push eax
call fcn.004890e0
add esp, 8
cmp eax, edi
jne 0x52eb56
push 1
lea ecx, [ebp - 0x6c]
call fcn.00401f50
push eax
call fcn.004892c0
add esp, 8
cmp eax, edi
jne 0x52eb56
lea ecx, [ebp - 0x6c]
call fcn.00401f50
push eax
lea ecx, [ebp - 0x28]
call fcn.005e124c
mov byte [ebp - 4], 0x14
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [ebp - 0x28]
push eax
lea ecx, [ebp + 8]
push str.Can_not_create_folder__s__error___ld_n
push ecx
call fcn.005d9fbb
mov edx, dword [ebp + 8]
add esp, 0x10
mov ecx, ebx
push edx
call fcn.0052b240
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0x13
call fcn.005e118c
lea ecx, [ebp - 0x6c]
mov byte [ebp - 4], 0x12
call fcn.00401070
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 0x11
call fcn.00401070
lea ecx, [ebp + 8]
mov byte [ebp - 4], 2
call fcn.005e118c
jmp 0x52eba6
add esi, 2
push 0x5c
push esi
call fcn.005c4fbf
add esp, 8
lea ecx, [ebp - 0x6c]
mov esi, eax
mov byte [ebp - 4], 0x12
call fcn.00401070
jmp 0x52ea6f
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 0x38]
push 1
push eax
push ecx
call fcn.00488b20
add esp, 0xc
mov dword [ebp - 0x24], eax
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 0x11
call fcn.00401070
lea ecx, [ebp + 8]
mov byte [ebp - 4], 2
call fcn.005e118c
xor edi, edi
cmp dword [ebp - 0x24], edi
jne 0x52ebfa
mov esi, dword [ebp + 0x10]
lea ecx, [ebp + 0x10]
push esi
call fcn.005e124c
mov byte [ebp - 4], 0x15
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [ebp + 0x10]
push eax
mov eax, dword [ebx + 0x88]
push edx
lea edx, [ebp - 0x18]
mov ecx, dword [eax + 0x10]
push ecx
push str.Can_not_rename_temp_file__ls_to__s__errno___ld_n
push edx
call fcn.005d9fbb
mov eax, dword [ebp - 0x18]
add esp, 0x14
mov ecx, ebx
push eax
call fcn.0052b240
lea ecx, [ebp + 0x10]
mov byte [ebp - 4], 2
call fcn.005e118c
jmp 0x52ec4c
mov ecx, dword [ebp + 0x10]
push ecx
lea ecx, [ebp + 8]
call fcn.005e124c
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.005d9fbb
mov eax, dword [ebp - 0x18]
add esp, 0x10
mov ecx, ebx
push eax
call fcn.0052b240
mov ecx, dword [ebp + 0xc]
mov byte [ebp - 4], 2
mov dword [ecx], 1
lea ecx, [ebp + 8]
call fcn.005e118c
mov esi, dword [ebp + 0x10]
mov edi, dword [ebp + 0xc]
cmp dword [edi], 0
je 0x52ee05
push esi
call fcn.0052d700
mov eax, dword [edi]
add esp, 4
test eax, eax
je 0x52ee05
mov ecx, dword [0x6cee7c]
lea edx, [ebp + 0x10]
lea eax, [ebp + 0xc]
push edx
push eax
push 0
push 0
push str.bSaveLogs
push ecx
mov dword [ebp + 0x10], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x52ec9e
cmp dword [ebp + 0xc], 1
je 0x52ee05
mov ecx, dword [ebx + 0xd4]
call fcn.0053c590
mov eax, dword [0x6cee40]
test eax, eax
jne 0x52ecb7
mov eax, 0x6cee44
push eax
call fcn.005c7baa
mov eax, dword [ebx + 0xd4]
add esp, 4
add eax, 4
cmp word [eax], 0
je 0x52ee05
xor ecx, ecx
mov dword [ebp - 0x6c], ecx
mov dword [ebp - 0x64], ecx
mov word [ebp - 0x68], cx
mov edx, 0x69ffbc
mov byte [ebp - 4], 0x17
test edx, edx
je 0x52edc9
test eax, eax
je 0x52edc9
xor esi, esi
push eax
lea ecx, [ebp - 0x78]
mov dword [ebp - 0x78], esi
mov dword [ebp - 0x70], esi
mov word [ebp - 0x74], si
call fcn.00401f60
lea ecx, [ebp - 0x6c]
mov byte [ebp - 4], 0x18
call fcn.00401070
push esi
push 0x69ffbc
lea ecx, [ebp - 0x84]
mov dword [ebp - 0x84], esi
mov dword [ebp - 0x7c], esi
mov word [ebp - 0x80], si
call fcn.00402890
mov eax, dword [ebp - 0x78]
mov byte [ebp - 4], 0x19
cmp eax, esi
jne 0x52ed45
lea eax, [ebp - 0x74]
mov esi, dword [ebp - 0x7c]
push eax
call fcn.005c4b4a
lea ebx, [eax + esi + 2]
lea esi, [ebx + ebx]
push esi
call fcn.005dd58d
mov edi, eax
add esp, 8
test edi, edi
mov dword [ebp - 0x6c], edi
je 0x52edab
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 - 0x78]
test eax, eax
jne 0x52ed83
lea eax, [ebp - 0x74]
mov ecx, dword [ebp - 0x84]
test ecx, ecx
jne 0x52ed90
lea ecx, [ebp - 0x80]
push eax
mov eax, dword [ebp - 0x6c]
push ecx
push ebx
push eax
call fcn.005c4ada
mov ecx, dword [ebp - 0x6c]
push ecx
call fcn.005c4b4a
add esp, 0x14
mov dword [ebp - 0x64], eax
lea ecx, [ebp - 0x84]
mov byte [ebp - 4], 0x18
call fcn.00401070
lea ecx, [ebp - 0x78]
mov byte [ebp - 4], 0x17
call fcn.00401070
mov ecx, dword [ebp - 0x6c]
test ecx, ecx
mov eax, ecx
jne 0x52edd2
lea eax, [ebp - 0x68]
push 0x5c
push eax
call fcn.005c4a9a
add esp, 8
test eax, eax
je 0x52edf9
mov word [eax], 0
mov eax, dword [ebp - 0x6c]
test eax, eax
jne 0x52edf0
lea eax, [ebp - 0x68]
push eax
call fcn.005c7474
add esp, 4
lea ecx, [ebp - 0x6c]
mov byte [ebp - 4], 2
call fcn.00401070
mov eax, dword [0x6cee40]
test eax, eax
jne 0x52ee13
mov eax, 0x6cee44
push eax
call fcn.005c7baa
mov edx, dword [ebp - 0x1c]
add esp, 4
mov eax, dword [edx + 0xd8]
mov eax, dword [eax]
test eax, eax
je 0x52ee3e
push 0
push 0x147d
push 0x111
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 1
call fcn.00401070
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0
call fcn.005e118c
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