Function at 0x544010
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 0x62a5b1
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x7c
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 0x5454ce
mov eax, dword [eax + 0x58]
mov ecx, dword [0x6f175c]
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x18], ecx
mov ecx, ebx
mov byte [ebp - 4], 1
call fcn.005495d0
push str.Assembling_all_downloaded_portions_into_one_file..._n
mov ecx, ebx
call fcn.005406a0
mov edx, dword [ebx + 0xd8]
mov eax, dword [edx]
cmp eax, edi
je 0x544088
push edi
push 0x147a
push 0x111
jmp 0x5440a2
mov eax, dword [ebx + 0x90]
cmp eax, edi
je 0x5440a9
push eax
mov eax, dword [0x6f64a4]
push 0x149f
push 0x111
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, dword [ebx + 0xc]
cmp eax, edi
je 0x5440c5
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 - 0x60]
mov eax, dword [edx + 0x10]
mov dword [ebp - 0x60], edi
push eax
mov dword [ebp - 0x58], edi
mov word [ebp - 0x5c], di
call fcn.004023c0
mov esi, dword [ebp + 0x10]
mov byte [ebp - 4], 2
cmp esi, edi
mov byte [ebp - 0x11], 0
je 0x5445fb
push esi
call fcn.005e519b
add esp, 4
test eax, eax
je 0x5445fb
cmp dword [ebx], edi
je 0x5445fb
mov eax, dword [ebp - 0x60]
cmp eax, edi
jne 0x544117
lea eax, [ebp - 0x5c]
push esi
push eax
call fcn.005e783c
add esp, 8
test eax, eax
je 0x5445fb
push 1
push esi
call fcn.00495f10
add esp, 8
cmp eax, edi
je 0x544171
push esi
lea ecx, [ebp - 0x30]
call fcn.0060198c
mov eax, dword [ebp - 0x30]
lea ecx, [ebp - 0x18]
push eax
push str.Delete_old_file__s_n
push ecx
mov byte [ebp - 4], 3
call fcn.005fa6fb
mov edx, dword [ebp - 0x18]
add esp, 0xc
mov ecx, ebx
push edx
call fcn.005406a0
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 2
call fcn.006018cc
cmp dword [ebp + 8], edi
jbe 0x54432e
cmp dword [0x6c95a4], edi
je 0x544199
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 0x5441dd
push esi
lea ecx, [ebp - 0x20]
call fcn.0060198c
mov eax, dword [ebp - 0x20]
push 0x3f
push eax
call fcn.005e51d0
add esp, 8
test eax, eax
push edi
push edi
push 2
push edi
push 1
push 0xc0000000
jne 0x5441cc
mov ecx, dword [ebp - 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
jmp 0x5441d3
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
lea ecx, [ebp - 0x20]
mov esi, eax
call fcn.006018cc
cmp esi, 0xffffffff
jne 0x544213
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.005fa6fb
mov eax, dword [ebp - 0x18]
add esp, 0xc
mov ecx, ebx
push eax
call fcn.005406a0
mov ecx, dword [0x6f7684]
push ecx
jmp 0x5449d1
mov eax, dword [ebp + 0x10]
push 0
push 0
lea edx, [ebp - 0x28]
push 0
push edx
push eax
call fcn.005e5f68
mov ecx, dword [ebp + 8]
mov eax, dword [ebx + 0x88]
add esp, 0x14
lea edx, [ebp - 0x28]
push ecx
mov ecx, dword [eax + 0x10]
push edx
push ecx
push esi
mov ecx, ebx
call fcn.00545d60
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
je 0x544285
cmp edi, 0x757c
je 0x544285
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 1
call fcn.00401070
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0
call fcn.006018cc
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 edx, dword [ebp + 0x10]
lea ecx, [ebp - 0x30]
push edx
mov byte [ebp - 0x11], 1
call fcn.0060198c
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.005fa6fb
mov ecx, dword [ebp - 0x18]
add esp, 0x10
push ecx
mov ecx, ebx
call fcn.005406a0
mov edx, dword [ebp + 0xc]
mov dword [edx], 1
mov eax, dword [ebx + 0x88]
mov ecx, dword [eax + 0x10]
push ecx
call fcn.005e6c7e
add esp, 4
cmp eax, 0xffffffff
jne 0x544322
mov edx, dword [0x6f175c]
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.005fa6fb
mov eax, dword [ebp - 0x20]
add esp, 0xc
mov ecx, ebx
push eax
call fcn.005406a0
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 4
call fcn.006018cc
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x30]
jmp 0x5445f6
mov eax, dword [ebp - 0x60]
cmp eax, edi
mov edi, eax
jne 0x54433a
lea edi, [ebp - 0x5c]
mov esi, dword [ebp + 0x10]
push 0
push esi
push edi
mov dword [ebp - 0x24], edi
call fcn.00495ae0
add esp, 0xc
mov dword [ebp - 0x20], eax
test eax, eax
jne 0x5445af
mov ecx, dword [0x6f175c]
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.005fa6fb
mov eax, dword [ebp - 0x1c]
add esp, 0x14
mov ecx, ebx
push eax
call fcn.005406a0
xor eax, eax
push esi
lea ecx, [ebp - 0x6c]
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x64], eax
mov word [ebp - 0x68], ax
call fcn.004023c0
push 0x5c
lea ecx, [ebp - 0x6c]
mov byte [ebp - 4], 7
call fcn.004023b0
push eax
call fcn.005e50eb
add esp, 8
test eax, eax
jne 0x5443d6
lea ecx, [ebp - 0x6c]
mov byte [ebp - 4], 6
call fcn.00401070
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 2
call fcn.006018cc
jmp 0x544568
add eax, 2
push 0
lea ecx, [ebp - 0x6c]
mov word [eax], 0
call fcn.004023b0
push eax
call fcn.004960a0
add esp, 8
test eax, eax
jne 0x544549
push str.Folder_does_not_exist__Creating..._n
mov ecx, ebx
call fcn.005406a0
lea ecx, [ebp - 0x6c]
call fcn.004023b0
add eax, 4
push 0x5c
add eax, 2
push eax
call fcn.005e569b
add esp, 8
mov esi, eax
test esi, esi
je 0x544534
lea ecx, [ebp - 0x6c]
call fcn.004023b0
push eax
lea ecx, [ebp - 0x84]
call fcn.0040e5b0
lea ecx, [ebp - 0x6c]
mov byte [ebp - 4], 8
call fcn.004023b0
mov edi, esi
lea ecx, [ebp - 0x84]
sub edi, eax
sar edi, 1
call fcn.004023b0
push 0
lea ecx, [ebp - 0x84]
mov word [eax + edi*2], 0
call fcn.004023b0
push eax
call fcn.004960a0
add esp, 8
test eax, eax
jne 0x54450d
push eax
lea ecx, [ebp - 0x84]
call fcn.004023b0
push eax
call fcn.00496280
add esp, 8
test eax, eax
jne 0x54450d
lea ecx, [ebp - 0x84]
call fcn.004023b0
push eax
lea ecx, [ebp - 0x30]
call fcn.0060198c
mov byte [ebp - 4], 9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0x30]
push eax
push ecx
lea edx, [ebp - 0x1c]
push str.Can_not_create_folder__s__error___ld_n
push edx
call fcn.005fa6fb
mov eax, dword [ebp - 0x1c]
add esp, 0x10
mov ecx, ebx
push eax
call fcn.005406a0
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 8
call fcn.006018cc
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 - 0x1c]
mov byte [ebp - 4], 2
call fcn.006018cc
mov esi, dword [ebp + 0x10]
jmp 0x544561
add esi, 2
push 0x5c
push esi
call fcn.005e569b
add esp, 8
lea ecx, [ebp - 0x84]
mov esi, eax
mov byte [ebp - 4], 7
call fcn.00401070
mov edi, dword [ebp - 0x24]
jmp 0x544420
mov ecx, dword [ebp + 0x10]
push 0
push ecx
push edi
call fcn.00495ae0
mov esi, dword [ebp + 0x10]
add esp, 0xc
mov dword [ebp - 0x20], eax
lea ecx, [ebp - 0x6c]
mov byte [ebp - 4], 6
call fcn.00401070
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 2
call fcn.006018cc
mov eax, dword [ebp - 0x20]
test eax, eax
jne 0x5445af
push esi
lea ecx, [ebp - 0x30]
call fcn.0060198c
mov byte [ebp - 4], 0xa
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [ebp - 0x30]
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.005fa6fb
mov eax, dword [ebp - 0x18]
add esp, 0x14
mov ecx, ebx
push eax
call fcn.005406a0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x30]
jmp 0x5445f6
push esi
lea ecx, [ebp - 0x30]
call fcn.0060198c
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.005fa6fb
mov edx, dword [ebp - 0x18]
add esp, 0x10
mov ecx, ebx
push edx
call fcn.005406a0
mov eax, dword [ebp + 0xc]
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x30]
mov dword [eax], 1
call fcn.006018cc
mov eax, dword [ebp + 8]
test eax, eax
jbe 0x5448e0
mov al, byte [ebp - 0x11]
test al, al
jne 0x5448e0
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 0x544702
test eax, eax
je 0x544702
mov dword [ebp - 0x84], ecx
mov dword [ebp - 0x7c], ecx
mov word [ebp - 0x80], cx
push eax
lea ecx, [ebp - 0x84]
call fcn.004023c0
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 0xd
call fcn.00401070
push str._s_tmp
lea ecx, [ebp - 0x78]
call fcn.00402330
mov esi, dword [ebp - 0x70]
lea ecx, [ebp - 0x84]
mov byte [ebp - 4], 0xe
call fcn.004023b0
push eax
call fcn.005e519b
lea esi, [eax + esi + 2]
lea edi, [esi + esi]
push edi
call fcn.005fdccd
mov edx, eax
add esp, 8
test edx, edx
mov dword [ebp - 0x2c], edx
je 0x5446e4
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.004023b0
push eax
lea ecx, [ebp - 0x78]
call fcn.004023b0
push eax
mov eax, dword [ebp - 0x2c]
push esi
push eax
call fcn.005e512b
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.005e519b
add esp, 0x14
mov dword [ebp - 0x24], eax
lea ecx, [ebp - 0x78]
mov byte [ebp - 4], 0xd
call fcn.00401070
lea ecx, [ebp - 0x84]
mov byte [ebp - 4], 0xc
call fcn.00401070
mov ecx, dword [ebp - 0x2c]
test ecx, ecx
jne 0x544709
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 0x544754
mov esi, dword [ebp - 0x2c]
test esi, esi
jne 0x544728
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.005fa6fb
mov ecx, dword [ebp - 0x18]
add esp, 0x14
push ecx
jmp 0x5448cd
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 0x5447e9
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.005fa6fb
mov edx, dword [ebp - 0x18]
add esp, 0xc
mov ecx, ebx
push edx
call fcn.005406a0
mov eax, dword [0x6f7684]
mov ecx, dword [ebx + 0xd4]
push eax
call fcn.00553840
lea ecx, [ebp - 0x2c]
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.006018cc
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.005e5f68
mov eax, dword [ebp - 0x2c]
add esp, 0x14
test eax, eax
jne 0x54480f
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.00545d60
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
je 0x54486e
cmp edi, 0x757c
je 0x54486e
lea ecx, [ebp - 0x2c]
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.006018cc
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 0x544878
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x18]
push str.Skip_first_bytes_via_temp_file__ls._n
push eax
call fcn.005fa6fb
mov ecx, dword [ebp - 0x18]
add esp, 0xc
push ecx
mov ecx, ebx
call fcn.005406a0
mov eax, dword [ebp - 0x2c]
test eax, eax
jne 0x54489f
lea eax, [ebp - 0x28]
push eax
call fcn.005e6c7e
add esp, 4
cmp eax, 0xffffffff
jne 0x5448d4
mov eax, dword [ebp - 0x2c]
test eax, eax
jne 0x5448b7
lea eax, [ebp - 0x28]
push eax
lea edx, [ebp - 0x18]
push str.Could_not_delete_temp_file__ls_n
push edx
call fcn.005fa6fb
mov eax, dword [ebp - 0x18]
add esp, 0xc
push eax
mov ecx, ebx
call fcn.005406a0
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 2
call fcn.00401070
mov eax, dword [0x6c95a4]
test eax, eax
je 0x544920
mov ecx, dword [ebp + 0xc]
cmp dword [ecx], 0
je 0x5448f6
mov eax, dword [ebp + 0x10]
jmp 0x544900
mov eax, dword [ebp - 0x60]
test eax, eax
jne 0x544900
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 0x5449a1
mov esi, dword [ebp + 0xc]
cmp dword [esi], 0
je 0x54492d
mov eax, dword [ebp + 0x10]
jmp 0x544937
mov eax, dword [ebp - 0x60]
test eax, eax
jne 0x544937
lea eax, [ebp - 0x5c]
push eax
lea ecx, [ebp - 0x20]
call fcn.0060198c
mov edx, dword [ebp - 0x20]
push 0x3f
push edx
call fcn.005e51d0
add esp, 8
test eax, eax
jne 0x54496a
push eax
push eax
push 3
push eax
mov eax, dword [ebp - 0x20]
push 1
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
jmp 0x544994
cmp dword [esi], 0
je 0x544974
mov eax, dword [ebp + 0x10]
jmp 0x54497e
mov eax, dword [ebp - 0x60]
test eax, eax
jne 0x54497e
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 - 0x20]
mov dword [ebp + 8], edi
call fcn.006018cc
cmp edi, 0xffffffff
jne 0x544a09
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.005fa6fb
mov edx, dword [ebp - 0x18]
add esp, 0xc
mov ecx, ebx
push edx
call fcn.005406a0
mov eax, dword [0x6f7684]
push eax
mov ecx, dword [ebx + 0xd4]
call fcn.00553840
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 1
call fcn.00401070
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0
call fcn.006018cc
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 ecx, [ebp - 0x38]
push ecx
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 0x544a72
mov eax, dword [ebx + 0x104]
test eax, eax
jne 0x544a72
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
je 0x544a72
call esi
push eax
lea edx, [ebp - 0x18]
push str.Error_during_GetFileSize____errcode___d._n
push edx
call fcn.005fa6fb
mov eax, dword [ebp - 0x18]
add esp, 0xc
mov ecx, ebx
push eax
call fcn.005406a0
xor esi, esi
mov dword [ebx + 0x100], esi
mov dword [ebx + 0x104], esi
jmp 0x544a9f
mov ecx, dword [ebp - 0x38]
push 1
push 0
push 0
push ecx
call fcn.005e7a50
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 0x544ad2
mov edx, dword [ebx + 0x100]
mov ecx, dword [ebx + 0x104]
mov dword [ebp - 0x34], edx
lea edx, [ebp - 0x34]
mov dword [ebp - 0x30], ecx
mov eax, dword [eax]
push edx
push 0x147b
push 0x111
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov ecx, dword [ebx + 0x104]
mov eax, dword [ebx + 0x88]
mov edx, dword [ebx + 0x100]
push ecx
mov ecx, dword [eax + 0x10]
push edx
push ecx
lea edx, [ebp - 0x18]
push str.Size_of__ls_is__I64d_n
push edx
call fcn.005fa6fb
mov eax, dword [ebp - 0x18]
add esp, 0x14
mov ecx, ebx
push eax
call fcn.005406a0
lea ecx, [ebp - 0x40]
push 2
push ecx
push esi
push edi
mov dword [ebp - 0x40], esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov edx, dword [ebp + 0xc]
cmp dword [edx], esi
je 0x544b23
mov eax, dword [ebp + 0x10]
jmp 0x544b2d
mov eax, dword [ebp - 0x60]
cmp eax, esi
jne 0x544b2d
lea eax, [ebp - 0x5c]
push 0
push 0
lea ecx, [ebp - 0x54]
push 0
push ecx
push eax
call fcn.005e5f68
mov esi, dword [ebp - 0x44]
add esp, 0x14
jmp 0x544b48
mov edi, dword [ebp + 8]
test esi, esi
je 0x544e76
mov edx, dword [ebp + 0xc]
cmp dword [edx], 0
je 0x544b5d
mov eax, dword [ebp + 0x10]
jmp 0x544b66
mov eax, dword [ebx + 0x88]
mov eax, dword [eax + 0x10]
mov ecx, dword [esi + 0x10]
push eax
push ecx
lea edx, [ebp - 0x18]
push str.Adding_file__ls_to_file__ls._n
push edx
call fcn.005fa6fb
mov eax, dword [ebp - 0x18]
add esp, 0x10
mov ecx, ebx
push eax
call fcn.005406a0
mov eax, dword [esi + 0x14]
test eax, eax
je 0x544caf
mov ecx, dword [esi + 0x24]
mov eax, dword [esi + 0x10]
lea edx, [ebp - 0x54]
push ecx
mov ecx, dword [ebp + 8]
push edx
push eax
push ecx
mov ecx, ebx
call fcn.00545d60
mov edi, eax
test edi, edi
je 0x544cbb
cmp edi, 0x757c
je 0x544cbb
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x544c82
push esi
call fcn.005e519b
add esp, 4
test eax, eax
je 0x544c82
mov eax, dword [ebp - 0x60]
test eax, eax
jne 0x544bef
lea eax, [ebp - 0x5c]
push esi
push eax
call fcn.005e56c4
add esp, 8
test eax, eax
je 0x544c82
mov eax, dword [ebp - 0x60]
test eax, eax
jne 0x544c0b
lea eax, [ebp - 0x5c]
push 0
push eax
push esi
call fcn.00495ae0
add esp, 0xc
test eax, eax
jne 0x544c4b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [ebx + 0x88]
lea edx, [ebp - 0x18]
mov ecx, dword [eax + 0x10]
push ecx
push esi
push str.Can_not_rename_back_file__ls_to__ls__errno___ld_n
push edx
call fcn.005fa6fb
mov eax, dword [ebp - 0x18]
add esp, 0x14
mov ecx, ebx
push eax
call fcn.005406a0
jmp 0x544c82
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.Rename_back_file__ls_to__ls._n
push eax
call fcn.005fa6fb
mov ecx, dword [ebp - 0x18]
add esp, 0x14
push ecx
mov ecx, ebx
call fcn.005406a0
mov edx, dword [ebp + 0xc]
mov dword [edx], 0
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 1
call fcn.00401070
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0
call fcn.006018cc
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.005406a0
mov eax, dword [esi + 0x10]
push eax
call fcn.005e6c7e
mov ecx, dword [esi + 0x10]
add esp, 4
cmp eax, 0xffffffff
push ecx
jne 0x544cd7
push str.Could_not_delete_temp_file__ls_n
jmp 0x544cdc
push str.Deleting_temp_file__ls_n
lea edx, [ebp - 0x18]
push edx
call fcn.005fa6fb
mov eax, dword [ebp - 0x18]
add esp, 0xc
mov ecx, ebx
push eax
call fcn.005406a0
mov ecx, dword [esi + 0x60]
lea edx, [ebp - 0x48]
push ecx
push 0x6c50dc
push edx
call fcn.005e5bb8
mov eax, dword [ebx + 0xdc]
mov esi, dword [esi + 0x58]
add esp, 0xc
test eax, eax
je 0x544b45
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.005fa6fb
mov ecx, dword [0x6f175c]
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.005fa6fb
mov eax, dword [ebp - 0x20]
add esp, 0xc
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 dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x544df3
mov eax, dword [ebp - 0x30]
test eax, eax
jbe 0x544df3
mov ecx, dword [ebx + 0xdc]
lea edx, [ebp - 0x24]
lea eax, [ebp - 0x1c]
push edx
push eax
push 0
push 0
push 0x6e206c
push ecx
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x24], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edx, dword [ebp - 0x30]
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebx + 0xdc]
add eax, edx
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x20]
push eax
push ecx
call edi
mov eax, dword [ebx + 0xdc]
lea edx, [ebp - 0x1c]
push 4
push edx
push 4
push 0
push 0x6e206c
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [ebp - 0x18]
push ecx
mov ecx, ebx
call fcn.005406a0
xor eax, eax
cmp esi, eax
mov dword [ebp - 0x88], eax
mov dword [ebp - 0x80], eax
mov dword [ebp - 0x7c], eax
je 0x544e1b
mov edx, dword [esi + 0x60]
mov dword [ebp - 0x84], edx
jmp 0x544e25
mov dword [ebp - 0x84], 0xffffffff
mov edx, dword [ebx + 0xdc]
lea ecx, [ebp - 0x88]
push 0x10
push ecx
push eax
push eax
push 0x6cc840
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.005fa6fb
mov edx, dword [ebp - 0x18]
add esp, 0xc
mov ecx, ebx
push edx
call fcn.005406a0
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 2
call fcn.006018cc
jmp 0x544b45
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 0x544ecf
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
je 0x544ecf
call esi
push eax
lea ecx, [ebp - 0x18]
push str.Error_during_GetFileSize____errcode___ld._n
push ecx
call fcn.005fa6fb
mov edx, dword [ebp - 0x18]
add esp, 0xc
mov ecx, ebx
push edx
call fcn.005406a0
xor eax, eax
mov dword [ebx + 0xb0], eax
jmp 0x544ef4
mov eax, dword [ebp - 0x38]
push 1
push 0
push 0
push eax
call fcn.005e7a50
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 0x544f1e
mov ecx, dword [eax + 0x3c]
test ecx, ecx
jne 0x544f1e
mov ecx, dword [ebx + 0xb4]
mov edx, dword [ebx + 0xb0]
push ecx
push edx
push edi
mov ecx, ebx
call fcn.00545520
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, ebx
call fcn.00548c40
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.005fa6fb
mov eax, dword [ebp - 0x18]
add esp, 0x10
mov ecx, ebx
push eax
call fcn.005406a0
mov eax, dword [ebx]
mov esi, dword [ebp + 0x10]
test eax, eax
je 0x5452c4
test esi, esi
je 0x5452c4
push esi
call fcn.005e519b
add esp, 4
test eax, eax
je 0x5452c4
mov ecx, dword [ebp + 0xc]
cmp dword [ecx], 0
jne 0x5452c4
mov eax, dword [ebp - 0x60]
test eax, eax
jne 0x544f92
lea eax, [ebp - 0x5c]
push esi
push eax
call fcn.005e56c4
add esp, 8
test eax, eax
je 0x5452c4
push 1
push esi
call fcn.00495f10
add esp, 8
test eax, eax
je 0x544fec
push esi
lea ecx, [ebp + 8]
call fcn.0060198c
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.005fa6fb
mov ecx, dword [ebp - 0x18]
add esp, 0xc
push ecx
mov ecx, ebx
call fcn.005406a0
lea ecx, [ebp + 8]
mov byte [ebp - 4], 2
call fcn.006018cc
mov eax, dword [ebp - 0x60]
test eax, eax
je 0x544ffa
mov edi, eax
mov dword [ebp - 0x30], edi
jmp 0x545002
lea edx, [ebp - 0x5c]
mov dword [ebp - 0x30], edx
mov edi, edx
push 1
push esi
push edi
call fcn.00495ae0
add esp, 0xc
mov dword [ebp - 0x20], eax
test eax, eax
jne 0x545272
mov eax, dword [0x6f175c]
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.005fa6fb
mov edx, dword [ebp + 8]
add esp, 0x14
mov ecx, ebx
push edx
call fcn.005406a0
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.004023c0
mov eax, dword [ebp - 0x4c]
mov byte [ebp - 4], 0x12
cmp eax, edi
jne 0x545070
lea eax, [ebp - 0x48]
push 0x5c
push eax
call fcn.005e50eb
add esp, 8
cmp eax, edi
jne 0x54509c
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 0x11
call fcn.00401070
lea ecx, [ebp + 8]
mov byte [ebp - 4], 2
call fcn.006018cc
jmp 0x545223
add eax, 2
mov word [eax], di
mov eax, dword [ebp - 0x4c]
cmp eax, edi
jne 0x5450ac
lea eax, [ebp - 0x48]
push 1
push eax
call fcn.004960a0
add esp, 8
cmp eax, edi
jne 0x545204
push str.Folder_does_not_exist__Creating..._n
mov ecx, ebx
call fcn.005406a0
mov eax, dword [ebp - 0x4c]
cmp eax, edi
jne 0x5450d5
lea eax, [ebp - 0x48]
add eax, 6
push 0x5c
push eax
call fcn.005e569b
add esp, 8
mov esi, eax
xor edi, edi
cmp esi, edi
je 0x5451ef
mov eax, dword [ebp - 0x4c]
cmp eax, edi
jne 0x5450f9
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.004023c0
mov ecx, dword [ebp - 0x6c]
mov byte [ebp - 4], 0x13
cmp ecx, edi
jne 0x54511a
lea ecx, [ebp - 0x68]
mov eax, dword [ebp - 0x4c]
cmp eax, edi
jne 0x545124
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.004023b0
push eax
call fcn.004960a0
add esp, 8
cmp eax, edi
jne 0x5451ce
push 1
lea ecx, [ebp - 0x6c]
call fcn.004023b0
push eax
call fcn.00496280
add esp, 8
cmp eax, edi
jne 0x5451ce
lea ecx, [ebp - 0x6c]
call fcn.004023b0
push eax
lea ecx, [ebp - 0x24]
call fcn.0060198c
mov byte [ebp - 4], 0x14
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [ebp - 0x24]
push eax
lea ecx, [ebp + 8]
push str.Can_not_create_folder__s__error___ld_n
push ecx
call fcn.005fa6fb
mov edx, dword [ebp + 8]
add esp, 0x10
mov ecx, ebx
push edx
call fcn.005406a0
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 0x13
call fcn.006018cc
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.006018cc
jmp 0x54521e
add esi, 2
push 0x5c
push esi
call fcn.005e569b
add esp, 8
lea ecx, [ebp - 0x6c]
mov esi, eax
mov byte [ebp - 4], 0x12
call fcn.00401070
jmp 0x5450e7
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 0x30]
push 1
push eax
push ecx
call fcn.00495ae0
add esp, 0xc
mov dword [ebp - 0x20], eax
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 0x11
call fcn.00401070
lea ecx, [ebp + 8]
mov byte [ebp - 4], 2
call fcn.006018cc
xor edi, edi
cmp dword [ebp - 0x20], edi
jne 0x545272
mov esi, dword [ebp + 0x10]
lea ecx, [ebp + 0x10]
push esi
call fcn.0060198c
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.005fa6fb
mov eax, dword [ebp - 0x18]
add esp, 0x14
mov ecx, ebx
push eax
call fcn.005406a0
lea ecx, [ebp + 0x10]
mov byte [ebp - 4], 2
call fcn.006018cc
jmp 0x5452c4
mov ecx, dword [ebp + 0x10]
push ecx
lea ecx, [ebp + 8]
call fcn.0060198c
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.005fa6fb
mov eax, dword [ebp - 0x18]
add esp, 0x10
mov ecx, ebx
push eax
call fcn.005406a0
mov ecx, dword [ebp + 0xc]
mov byte [ebp - 4], 2
mov dword [ecx], 1
lea ecx, [ebp + 8]
call fcn.006018cc
mov esi, dword [ebp + 0x10]
mov edi, dword [ebp + 0xc]
cmp dword [edi], 0
je 0x545480
push esi
call fcn.00543d60
mov eax, dword [edi]
add esp, 4
test eax, eax
je 0x545480
mov ecx, dword [0x6f6360]
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 0x545316
cmp dword [ebp + 0xc], 1
je 0x545480
mov ecx, dword [ebx + 0xd4]
call fcn.00553820
mov eax, dword [0x6f6320]
test eax, eax
jne 0x54532f
mov eax, 0x6f6324
push eax
call fcn.005e6884
mov eax, dword [ebx + 0xd4]
add esp, 4
add eax, 4
cmp word [eax], 0
je 0x545480
xor ecx, ecx
mov dword [ebp - 0x6c], ecx
mov dword [ebp - 0x64], ecx
mov word [ebp - 0x68], cx
mov edx, 0x6c5098
mov byte [ebp - 4], 0x17
test edx, edx
je 0x545441
test eax, eax
je 0x545441
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.004023c0
lea ecx, [ebp - 0x6c]
mov byte [ebp - 4], 0x18
call fcn.00401070
push esi
push 0x6c5098
lea ecx, [ebp - 0x84]
mov dword [ebp - 0x84], esi
mov dword [ebp - 0x7c], esi
mov word [ebp - 0x80], si
call fcn.00402ce0
mov eax, dword [ebp - 0x78]
mov byte [ebp - 4], 0x19
cmp eax, esi
jne 0x5453bd
lea eax, [ebp - 0x74]
mov esi, dword [ebp - 0x7c]
push eax
call fcn.005e519b
lea ebx, [eax + esi + 2]
lea esi, [ebx + ebx]
push esi
call fcn.005fdccd
mov edi, eax
add esp, 8
test edi, edi
mov dword [ebp - 0x6c], edi
je 0x545423
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 0x5453fb
lea eax, [ebp - 0x74]
mov ecx, dword [ebp - 0x84]
test ecx, ecx
jne 0x545408
lea ecx, [ebp - 0x80]
push eax
mov eax, dword [ebp - 0x6c]
push ecx
push ebx
push eax
call fcn.005e512b
mov ecx, dword [ebp - 0x6c]
push ecx
call fcn.005e519b
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 0x54544a
lea eax, [ebp - 0x68]
push 0x5c
push eax
call fcn.005e50eb
add esp, 8
test eax, eax
je 0x545471
mov word [eax], 0
mov eax, dword [ebp - 0x6c]
test eax, eax
jne 0x545468
lea eax, [ebp - 0x68]
push eax
call fcn.005e7a84
add esp, 4
lea ecx, [ebp - 0x6c]
mov byte [ebp - 4], 2
call fcn.00401070
mov ebx, dword [ebp - 0x3c]
mov eax, dword [0x6f6320]
test eax, eax
jne 0x54548e
mov eax, 0x6f6324
push eax
call fcn.005e6884
mov edx, dword [ebx + 0xd8]
add esp, 4
mov eax, dword [edx]
test eax, eax
je 0x5454b6
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.006018cc
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