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

Disassembly:
push ebp
lea ebp, [esp - 0x6c]
sub esp, 0x6c
push 0xffffffffffffffff
push 0x637598
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x70a308]
xor eax, ebp
mov dword [ebp + 0x68], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov dword [ebp - 0x18], esi
mov eax, dword [ebp + 0x78]
mov dword [ebp + 0x14], eax
mov ecx, dword [ebp + 0x7c]
mov dword [ebp + 0x34], ecx
xor edi, edi
mov dword [ebp - 4], edi
mov eax, dword [esi + 0x88]
cmp eax, edi
je 0x548b0a
mov ebx, dword [eax + 0x58]
mov dword [ebp + 0x1c], ebx
lea ecx, [ebp + 0x38]
call fcn.004024e0
mov byte [ebp - 4], 1
mov ecx, esi
call fcn.00545640
push str.Assembling_all_downloaded_portions_into_one_file..._n
mov ecx, esi
call fcn.00540ff0
mov eax, dword [esi + 0xd8]
cmp dword [eax], edi
je 0x547b56
push edi
push 0x147a
push 0x111
mov edx, dword [eax]
push edx
jmp 0x547b71
mov eax, dword [esi + 0x90]
cmp eax, edi
je 0x547b77
push eax
push 0
nop
nop
nop
push 0x111
mov eax, dword [0x70fbf0]
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, dword [esi + 0xc]
cmp eax, edi
je 0x547b93
mov ecx, dword [esi + 0x10]
push ecx
push 0x147a
push 0x111
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov edx, dword [esi + 0x88]
mov eax, dword [edx + 0x10]
push eax
lea ecx, [ebp + 0x54]
call fcn.00402160
mov byte [ebp - 4], 2
mov byte [ebp + 0x23], 0
cmp dword [ebp + 0x34], edi
je 0x547f25
mov eax, dword [ebp + 0x34]
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x547bc0
sub eax, edx
sar eax, 1
je 0x547f25
cmp dword [esi], edi
je 0x547f25
mov eax, dword [ebp + 0x54]
cmp eax, edi
jne 0x547be7
lea eax, [ebp + 0x58]
mov ecx, dword [ebp + 0x34]
push ecx
push eax
call fcn.005fdd2a
add esp, 8
test eax, eax
je 0x547f25
push 1
mov ebx, dword [ebp + 0x34]
push ebx
call fcn.0049be40
add esp, 8
test eax, eax
je 0x547c49
push edi
push ebx
lea edx, [ebp + 0x2c]
push edx
call fcn.00402a50
mov byte [ebp - 4], 3
mov eax, dword [ebp + 0x2c]
push eax
push str.Delete_old_file__s_n
lea ecx, [ebp + 0x38]
push ecx
call fcn.00402f60
add esp, 0x18
mov edx, dword [ebp + 0x38]
push edx
mov ecx, esi
call fcn.00540ff0
mov byte [ebp - 4], 2
lea ecx, [ebp + 0x2c]
call fcn.00402550
cmp dword [ebp + 0x74], edi
jbe 0x547e3f
cmp dword [0x704d14], edi
je 0x547c77
push 0
push 0
push 2
push 0
push 1
push 0xc0000000
mov eax, dword [ebp + 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
jmp 0x547ccb
push edi
push ebx
lea ecx, [ebp + 0x30]
push ecx
call fcn.00402a50
mov byte [ebp - 4], 4
push 0x3f
mov edx, dword [ebp + 0x30]
push edx
call fcn.005f9b50
add esp, 0x14
push 0
push 0
push 2
push 0
push 1
push 0xc0000000
test eax, eax
jne 0x547cb3
mov eax, dword [ebp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
jmp 0x547cbd
mov ecx, dword [ebp + 0x34]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
mov byte [ebp - 4], 2
lea ecx, [ebp + 0x30]
call fcn.00402550
cmp edi, 0xffffffff
jne 0x547d26
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
push edi
push str.Error_opening_local_file_for_writing__errcode___ld._n
lea edx, [ebp + 0x38]
push edx
call fcn.00402f60
add esp, 0xc
mov eax, dword [ebp + 0x38]
push eax
mov ecx, esi
call fcn.00540ff0
mov ecx, dword [0x71032c]
push ecx
mov ecx, dword [esi + 0xd4]
call fcn.00554e70
mov byte [ebp - 4], 1
lea ecx, [ebp + 0x54]
call fcn.004011f0
mov byte [ebp - 4], 0
lea ecx, [ebp + 0x38]
call fcn.00402550
mov eax, edi
jmp 0x548b3e
mov edx, dword [ebp + 0x74]
push edx
mov eax, dword [ebp + 0x34]
push eax
mov ecx, dword [esi + 0x88]
mov edx, dword [ecx + 0x10]
push edx
push edi
mov ecx, esi
call fcn.00544930
mov ebx, eax
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
je 0x547d59
cmp ebx, 0x757c
jne 0x548095
mov byte [ebp + 0x23], 1
push 0
mov eax, dword [ebp + 0x34]
push eax
lea ecx, [ebp + 0x18]
push ecx
call fcn.00402a50
add esp, 0xc
mov byte [ebp - 4], 5
mov edx, dword [esi + 0x88]
mov eax, dword [edx + 0x10]
push eax
lea ecx, [ebp + 0x24]
call fcn.00417ab0
mov bl, 6
mov byte [ebp - 4], bl
mov ecx, dword [ebp + 0x18]
push ecx
mov edx, dword [ebp + 0x24]
push edx
push str.Rename2_temp_file__s_to__s._n
lea eax, [ebp + 0x38]
push eax
call fcn.00402f60
add esp, 0x10
mov ecx, dword [ebp + 0x38]
push ecx
mov ecx, esi
call fcn.00540ff0
mov edx, dword [ebp + 0x14]
mov dword [edx], 1
mov eax, dword [esi + 0x88]
mov ecx, dword [eax + 0x10]
push ecx
call fcn.005fc153
add esp, 4
cmp eax, 0xffffffff
jne 0x547e27
lea ecx, [ebp + 0x30]
call fcn.004024e0
mov byte [ebp - 4], 7
mov edx, dword [esi + 0x88]
mov eax, dword [edx + 0x10]
push eax
lea ecx, [ebp + 0x2c]
call fcn.00417ab0
mov byte [ebp - 4], 8
mov ecx, dword [ebp + 0x2c]
push ecx
push str.Could_not_delete_temp_file__s_n
lea edx, [ebp + 0x30]
push edx
call fcn.00402f60
add esp, 0xc
mov eax, dword [ebp + 0x30]
push eax
mov ecx, esi
call fcn.00540ff0
mov byte [ebp - 4], 7
lea ecx, [ebp + 0x2c]
call fcn.00402550
mov byte [ebp - 4], bl
lea ecx, [ebp + 0x30]
call fcn.00402550
mov byte [ebp - 4], 5
lea ecx, [ebp + 0x24]
call fcn.00402550
mov byte [ebp - 4], 2
lea ecx, [ebp + 0x18]
jmp 0x547f1b
mov eax, dword [ebp + 0x54]
cmp eax, edi
jne 0x547e49
lea eax, [ebp + 0x58]
push edi
push ebx
push eax
mov ecx, esi
call fcn.00543cd0
push 0
test eax, eax
jne 0x547eb1
mov ecx, dword [ebp + 0x34]
push ecx
lea edx, [ebp + 0x24]
push edx
call fcn.00402a50
add esp, 0xc
mov bl, 9
mov byte [ebp - 4], bl
mov eax, dword [esi + 0x88]
mov ecx, dword [eax + 0x10]
push ecx
lea ecx, [ebp + 0x2c]
call fcn.00417ab0
mov byte [ebp - 4], 0xa
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov edx, dword [ebp + 0x24]
push edx
mov eax, dword [ebp + 0x2c]
push eax
push str.Can_not_rename_temp_file__s_to__s__errno___ld_n
lea ecx, [ebp + 0x38]
push ecx
call fcn.00402f60
add esp, 0x14
mov edx, dword [ebp + 0x38]
push edx
mov ecx, esi
call fcn.00540ff0
jmp 0x547f09
mov eax, dword [ebp + 0x34]
push eax
lea ecx, [ebp + 0x24]
push ecx
call fcn.00402a50
add esp, 0xc
mov bl, 0xb
mov byte [ebp - 4], bl
mov edx, dword [esi + 0x88]
mov eax, dword [edx + 0x10]
push eax
lea ecx, [ebp + 0x2c]
call fcn.00417ab0
mov byte [ebp - 4], 0xc
mov ecx, dword [ebp + 0x24]
push ecx
mov edx, dword [ebp + 0x2c]
push edx
push str.Rename_temp_file__s_to__s._n
lea eax, [ebp + 0x38]
push eax
call fcn.00402f60
add esp, 0x10
mov ecx, dword [ebp + 0x38]
push ecx
mov ecx, esi
call fcn.00540ff0
mov edx, dword [ebp + 0x14]
mov dword [edx], 1
mov byte [ebp - 4], bl
lea ecx, [ebp + 0x2c]
call fcn.00402550
mov byte [ebp - 4], 2
lea ecx, [ebp + 0x24]
call fcn.00402550
mov ebx, dword [ebp + 0x1c]
xor edi, edi
cmp dword [ebp + 0x74], edi
jbe 0x548144
cmp byte [ebp + 0x23], 0
jne 0x548144
mov dword [ebp + 0x48], edi
mov dword [ebp + 0x50], edi
xor eax, eax
mov word [ebp + 0x4c], ax
mov byte [ebp - 4], 0xd
push edi
mov ecx, dword [esi + 0x88]
mov edx, dword [ecx + 0x10]
push edx
push str._s_tmp
lea ecx, [ebp + 0x48]
call fcn.00402190
mov eax, dword [ebp + 0x48]
cmp eax, edi
jne 0x547f6a
lea eax, [ebp + 0x4c]
push eax
mov eax, dword [esi + 0x88]
mov ecx, dword [eax + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileW]
mov edx, dword [esi + 0x88]
test eax, eax
mov eax, dword [edx + 0x10]
jne 0x547fef
push eax
lea ecx, [ebp + 0x24]
call fcn.00417ab0
mov bl, 0xe
mov byte [ebp - 4], bl
mov eax, dword [ebp + 0x48]
test eax, eax
jne 0x547fa0
lea eax, [ebp + 0x4c]
push eax
lea ecx, [ebp + 0x2c]
call fcn.00417ab0
mov byte [ebp - 4], 0xf
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, dword [ebp + 0x2c]
push ecx
mov edx, dword [ebp + 0x24]
push edx
push str.Step5__can_not_rename_temp_file__s_to__s__errno___ld_n
lea eax, [ebp + 0x38]
push eax
call fcn.00402f60
add esp, 0x14
mov ecx, dword [ebp + 0x38]
push ecx
mov ecx, esi
call fcn.00540ff0
mov byte [ebp - 4], bl
lea ecx, [ebp + 0x2c]
call fcn.00402550
mov byte [ebp - 4], 0xd
lea ecx, [ebp + 0x24]
jmp 0x54812e
push 0
push 0
push 2
push 0
push 1
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x548053
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
push edi
push str.Error_opening_local_file_for_writing__errcode___ld._n
lea ecx, [ebp + 0x38]
push ecx
call fcn.00402f60
add esp, 0xc
mov edx, dword [ebp + 0x38]
push edx
mov ecx, esi
call fcn.00540ff0
mov eax, dword [0x71032c]
push eax
mov ecx, dword [esi + 0xd4]
call fcn.00554e70
mov byte [ebp - 4], 2
lea ecx, [ebp + 0x48]
call fcn.004011f0
jmp 0x547d07
mov eax, dword [ebp + 0x48]
test eax, eax
jne 0x54805d
lea eax, [ebp + 0x4c]
mov ecx, dword [ebp + 0x74]
push ecx
mov edx, dword [esi + 0x88]
mov ecx, dword [edx + 0x10]
push ecx
push eax
push edi
mov ecx, esi
call fcn.00544930
mov ebx, eax
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
je 0x5480b4
cmp ebx, 0x757c
je 0x5480b4
mov byte [ebp - 4], 2
lea ecx, [ebp + 0x48]
call fcn.004011f0
mov byte [ebp - 4], 1
lea ecx, [ebp + 0x54]
call fcn.004011f0
mov byte [ebp - 4], 0
lea ecx, [ebp + 0x38]
call fcn.00402550
mov eax, ebx
jmp 0x548b3e
mov byte [ebp + 0x23], 1
mov eax, dword [ebp + 0x48]
test eax, eax
jne 0x5480c2
lea eax, [ebp + 0x4c]
push eax
lea ecx, [ebp + 0x30]
call fcn.00417ab0
mov byte [ebp - 4], 0x10
mov edx, dword [ebp + 0x30]
push edx
push str.Skip_first_bytes_via_temp_file__s._n
lea eax, [ebp + 0x38]
push eax
call fcn.00402f60
add esp, 0xc
mov ecx, dword [ebp + 0x38]
push ecx
mov ecx, esi
call fcn.00540ff0
mov eax, dword [ebp + 0x48]
test eax, eax
jne 0x5480f9
lea eax, [ebp + 0x4c]
push eax
call fcn.005fc153
add esp, 4
cmp eax, 0xffffffff
jne 0x548127
mov edx, dword [ebp + 0x30]
push edx
push str.Could_not_delete_temp_file__s_n
lea eax, [ebp + 0x38]
push eax
call fcn.00402f60
add esp, 0xc
mov ecx, dword [ebp + 0x38]
push ecx
mov ecx, esi
call fcn.00540ff0
mov byte [ebp - 4], 0xd
lea ecx, [ebp + 0x30]
call fcn.00402550
mov byte [ebp - 4], 2
lea ecx, [ebp + 0x48]
call fcn.004011f0
mov ebx, dword [ebp + 0x1c]
xor edi, edi
cmp dword [0x704d14], edi
je 0x54817d
mov edx, dword [ebp + 0x14]
cmp dword [edx], edi
je 0x548158
mov eax, dword [ebp + 0x34]
jmp 0x548162
mov eax, dword [ebp + 0x54]
cmp eax, edi
jne 0x548162
lea eax, [ebp + 0x58]
push edi
push edi
push 3
push edi
push 1
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp + 0x1c], eax
jmp 0x548204
mov eax, dword [ebp + 0x14]
cmp dword [eax], edi
je 0x548189
mov eax, dword [ebp + 0x34]
jmp 0x548193
mov eax, dword [ebp + 0x54]
cmp eax, edi
jne 0x548193
lea eax, [ebp + 0x58]
push edi
push eax
lea ecx, [ebp + 0x30]
push ecx
call fcn.00402a50
mov byte [ebp - 4], 0x11
push 0x3f
mov edx, dword [ebp + 0x30]
push edx
call fcn.005f9b50
add esp, 0x14
test eax, eax
jne 0x5481cc
push edi
push edi
push 3
push edi
push 1
push 0xc0000000
mov eax, dword [ebp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
jmp 0x5481f5
mov ecx, dword [ebp + 0x14]
cmp dword [ecx], edi
je 0x5481d8
mov eax, dword [ebp + 0x34]
jmp 0x5481e2
mov eax, dword [ebp + 0x54]
cmp eax, edi
jne 0x5481e2
lea eax, [ebp + 0x58]
push edi
push edi
push 3
push edi
push 1
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp + 0x1c], eax
mov byte [ebp - 4], 2
lea ecx, [ebp + 0x30]
call fcn.00402550
cmp dword [ebp + 0x1c], 0xffffffff
je 0x547cd0
lea edx, [ebp + 4]
push edx
mov eax, dword [ebp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [esi + 0x100], eax
mov dword [esi + 0x104], edi
cmp eax, 0xffffffff
jne 0x54826c
cmp edi, edi
jne 0x54826c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, edi
je 0x54826c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Error_during_GetFileSize____errcode___d._n
lea ecx, [ebp + 0x38]
push ecx
call fcn.00402f60
add esp, 0xc
mov edx, dword [ebp + 0x38]
push edx
mov ecx, esi
call fcn.00540ff0
mov dword [esi + 0x100], edi
mov dword [esi + 0x104], edi
jmp 0x548285
push 1
push edi
push edi
mov eax, dword [ebp + 4]
push eax
call fcn.005fd4d0
add dword [esi + 0x100], eax
adc dword [esi + 0x104], edx
mov eax, dword [esi + 0xd8]
cmp dword [eax], edi
je 0x5482b8
mov ecx, dword [esi + 0x100]
mov dword [ebp + 0x60], ecx
mov edx, dword [esi + 0x104]
mov dword [ebp + 0x64], edx
lea ecx, [ebp + 0x60]
push ecx
push 0x147b
push 0x111
mov edx, dword [eax]
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, dword [esi + 0x88]
mov ecx, dword [eax + 0x10]
push ecx
lea ecx, [ebp]
call fcn.00417ab0
mov byte [ebp - 4], 0x12
mov edx, dword [esi + 0x104]
push edx
mov eax, dword [esi + 0x100]
push eax
mov ecx, dword [ebp]
push ecx
push str.Size_of__s_is__I64d_n
lea edx, [ebp + 0x38]
push edx
call fcn.00402f60
add esp, 0x14
mov eax, dword [ebp + 0x38]
push eax
mov ecx, esi
call fcn.00540ff0
mov dword [ebp - 0x1c], edi
push 2
lea ecx, [ebp - 0x1c]
push ecx
push edi
mov edx, dword [ebp + 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp ebx, edi
je 0x54873d
mov eax, dword [ebp + 0x14]
cmp dword [eax], edi
je 0x548324
mov eax, dword [ebp + 0x34]
jmp 0x54832d
mov ecx, dword [esi + 0x88]
mov eax, dword [ecx + 0x10]
push eax
lea ecx, [ebp + 0x2c]
call fcn.00417ab0
mov byte [ebp - 4], 0x13
mov edx, dword [ebx + 0x10]
push edx
lea ecx, [ebp + 0x24]
call fcn.00417ab0
mov byte [ebp - 4], 0x14
mov eax, dword [ebp + 0x2c]
push eax
mov ecx, dword [ebp + 0x24]
push ecx
push str.Adding_file__s_to_file__s._n
lea edx, [ebp + 0x38]
push edx
call fcn.00402f60
add esp, 0x10
mov eax, dword [ebp + 0x38]
push eax
mov ecx, esi
call fcn.00540ff0
cmp dword [ebx + 0x14], edi
je 0x548534
mov ecx, dword [ebp + 0x14]
cmp dword [ecx], edi
je 0x548383
mov eax, dword [ebp + 0x34]
jmp 0x54838d
mov eax, dword [ebp + 0x54]
cmp eax, edi
jne 0x54838d
lea eax, [ebp + 0x58]
mov edx, dword [ebx + 0x24]
push edx
push eax
mov eax, dword [ebx + 0x10]
push eax
mov ecx, dword [ebp + 0x1c]
push ecx
mov ecx, esi
call fcn.00544930
mov edi, eax
test edi, edi
je 0x548542
cmp edi, 0x757c
je 0x548542
mov edx, dword [ebp + 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp + 0x34]
test eax, eax
je 0x54850b
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x5483d0
sub eax, edx
sar eax, 1
je 0x54850b
mov ebx, dword [ebp + 0x54]
test ebx, ebx
mov eax, ebx
jne 0x5483f1
lea eax, [ebp + 0x58]
mov ecx, dword [ebp + 0x34]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x54841a
test dx, dx
je 0x548416
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x54841a
add eax, 4
add ecx, 4
test dx, dx
jne 0x5483f4
xor eax, eax
jmp 0x54841f
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x54850b
test ebx, ebx
mov eax, ebx
jne 0x548430
lea eax, [ebp + 0x58]
push 0
push eax
mov eax, dword [ebp + 0x34]
push eax
call fcn.0049b9d0
add esp, 0xc
test eax, eax
jne 0x548498
mov ecx, dword [ebp + 0x34]
push ecx
lea ecx, [ebp + 0xc]
call fcn.00417ab0
mov bl, 0x15
mov byte [ebp - 4], bl
mov eax, dword [ebp + 0x54]
test eax, eax
jne 0x54845e
lea eax, [ebp + 0x58]
push eax
lea ecx, [ebp + 0x18]
call fcn.00417ab0
mov byte [ebp - 4], 0x16
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov edx, dword [ebp + 0x18]
push edx
mov eax, dword [ebp + 0xc]
push eax
push str.Can_not_rename_back_file__s_to__s__errno___ld_n
lea ecx, [ebp + 0x38]
push ecx
call fcn.00402f60
add esp, 0x14
mov edx, dword [ebp + 0x38]
push edx
mov ecx, esi
call fcn.00540ff0
jmp 0x5484f4
mov eax, dword [ebp + 0x34]
push eax
lea ecx, [ebp + 0xc]
call fcn.00417ab0
mov bl, 0x17
mov byte [ebp - 4], bl
mov eax, dword [ebp + 0x54]
test eax, eax
jne 0x5484b3
lea eax, [ebp + 0x58]
push eax
lea ecx, [ebp + 0x18]
call fcn.00417ab0
mov byte [ebp - 4], 0x18
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, dword [ebp + 0x18]
push ecx
mov edx, dword [ebp + 0xc]
push edx
push str.Rename_back_file__s_to__s._n
lea eax, [ebp + 0x38]
push eax
call fcn.00402f60
add esp, 0x14
mov ecx, dword [ebp + 0x38]
push ecx
mov ecx, esi
call fcn.00540ff0
mov edx, dword [ebp + 0x14]
mov dword [edx], 0
mov byte [ebp - 4], bl
lea ecx, [ebp + 0x18]
call fcn.00402550
mov byte [ebp - 4], 0x14
lea ecx, [ebp + 0xc]
call fcn.00402550
mov byte [ebp - 4], 0x13
lea ecx, [ebp + 0x24]
call fcn.00402550
mov byte [ebp - 4], 0x12
lea ecx, [ebp + 0x2c]
call fcn.00402550
mov byte [ebp - 4], 2
lea ecx, [ebp]
call fcn.00402550
jmp 0x547d07
push str.This_file_has_flag_isCmpleted__0__it_has_not_been_added._n
mov ecx, esi
call fcn.00540ff0
jmp 0x548544
xor edi, edi
mov eax, dword [ebx + 0x10]
push eax
call fcn.005fc153
add esp, 4
cmp eax, 0xffffffff
jne 0x54858e
mov ecx, dword [ebx + 0x10]
push ecx
lea ecx, [ebp + 0x10]
call fcn.00417ab0
mov byte [ebp - 4], 0x19
mov edx, dword [ebp + 0x10]
push edx
push str.Could_not_delete_temp_file__s_n
lea eax, [ebp + 0x38]
push eax
call fcn.00402f60
add esp, 0xc
mov ecx, dword [ebp + 0x38]
push ecx
mov ecx, esi
call fcn.00540ff0
mov byte [ebp - 4], 0x14
lea ecx, [ebp + 0x10]
jmp 0x5485c5
mov edx, dword [ebx + 0x10]
push edx
lea ecx, [ebp + 0x28]
call fcn.00417ab0
mov byte [ebp - 4], 0x1a
mov eax, dword [ebp + 0x28]
push eax
push str.Deleting_temp_file__s_n
lea ecx, [ebp + 0x38]
push ecx
call fcn.00402f60
add esp, 0xc
mov edx, dword [ebp + 0x38]
push edx
mov ecx, esi
call fcn.00540ff0
mov byte [ebp - 4], 0x14
lea ecx, [ebp + 0x28]
call fcn.00402550
mov eax, dword [ebx + 0x60]
push eax
push 0x64f36c
lea ecx, [ebp + 0x60]
push ecx
call fcn.005fb4cb
add esp, 0xc
mov ebx, dword [ebx + 0x58]
mov eax, dword [esi + 0xdc]
cmp eax, edi
je 0x548720
lea edx, [ebp + 0x60]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
lea eax, [ebp + 0x60]
push eax
push str.Deleting_record__s_from_registry_n
lea ecx, [ebp + 0x38]
push ecx
call fcn.00402f60
add esp, 0xc
mov dword [ebp + 0x18], edi
lea ecx, [ebp + 0x30]
call fcn.004024e0
mov byte [ebp - 4], 0x1b
lea edx, [ebp + 0x60]
push edx
push str.sk_s
lea eax, [ebp + 0x30]
push eax
call fcn.00402f60
add esp, 0xc
mov dword [ebp + 0xc], 4
lea ecx, [ebp + 0xc]
push ecx
lea edx, [ebp + 0x18]
push edx
push edi
push edi
mov eax, dword [ebp + 0x30]
push eax
mov ecx, dword [esi + 0xdc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x5486b7
cmp dword [ebp + 0x18], edi
jbe 0x5486b7
mov dword [ebp + 8], edi
mov dword [ebp + 0xc], 4
lea edx, [ebp + 0xc]
push edx
lea eax, [ebp + 8]
push eax
push edi
push edi
push 0x681748
mov ecx, dword [esi + 0xdc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edx, dword [ebp + 0x18]
add dword [ebp + 8], edx
mov eax, dword [ebp + 0x30]
push eax
mov ecx, dword [esi + 0xdc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
push 4
lea edx, [ebp + 8]
push edx
push 4
push edi
push 0x681748
mov eax, dword [esi + 0xdc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [ebp + 0x38]
push ecx
mov ecx, esi
call fcn.00540ff0
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x20], edi
cmp ebx, edi
je 0x5486d4
mov eax, dword [ebx + 0x60]
jmp 0x5486d7
or eax, 0xffffffff
mov dword [ebp - 0x28], eax
push 0x10
lea edx, [ebp - 0x2c]
push edx
push edi
push edi
push 0x65d310
mov eax, dword [esi + 0xdc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [ebp - 0x28]
push ecx
push str.Updating_record_with_ID_0__set_nextID__d_n
lea edx, [ebp + 0x38]
push edx
call fcn.00402f60
add esp, 0xc
mov eax, dword [ebp + 0x38]
push eax
mov ecx, esi
call fcn.00540ff0
mov byte [ebp - 4], 0x14
lea ecx, [ebp + 0x30]
call fcn.00402550
mov byte [ebp - 4], 0x13
lea ecx, [ebp + 0x24]
call fcn.00402550
mov byte [ebp - 4], 0x12
lea ecx, [ebp + 0x2c]
call fcn.00402550
jmp 0x548310
lea ecx, [ebp + 4]
push ecx
mov edx, dword [ebp + 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [esi + 0xb0], eax
mov dword [esi + 0xb4], edi
cmp eax, 0xffffffff
jne 0x548795
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebx
cmp eax, edi
je 0x548795
call ebx
push eax
push str.Error_during_GetFileSize____errcode___ld._n
lea eax, [ebp + 0x38]
push eax
call fcn.00402f60
add esp, 0xc
mov ecx, dword [ebp + 0x38]
push ecx
mov ecx, esi
call fcn.00540ff0
mov dword [esi + 0xb0], edi
mov dword [esi + 0xb4], edi
jmp 0x5487ae
push 1
push edi
push edi
mov edx, dword [ebp + 4]
push edx
call fcn.005fd4d0
add dword [esi + 0xb0], eax
adc dword [esi + 0xb4], edx
mov eax, dword [esi + 0x18]
cmp eax, edi
je 0x5487d3
cmp dword [eax + 0x3c], edi
jne 0x5487d3
mov eax, dword [esi + 0xb4]
push eax
mov ecx, dword [esi + 0xb0]
push ecx
mov edx, dword [ebp + 0x1c]
push edx
mov ecx, esi
call fcn.00541580
mov eax, dword [ebp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, esi
call fcn.00541e70
mov ecx, dword [esi + 0xb4]
push ecx
mov edx, dword [esi + 0xb0]
push edx
push str.Rebuilding_complete__real_size___I64d_n
lea eax, [ebp + 0x38]
push eax
call fcn.00402f60
add esp, 0x10
mov ecx, dword [ebp + 0x38]
push ecx
mov ecx, esi
call fcn.00540ff0
cmp dword [esi], edi
je 0x5489b7
cmp dword [ebp + 0x34], 0
je 0x5489b7
mov eax, dword [ebp + 0x34]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x548826
sub eax, edx
sar eax, 1
je 0x5489b7
mov edx, dword [ebp + 0x14]
cmp dword [edx], 0
jne 0x5489c3
mov eax, dword [ebp + 0x54]
test eax, eax
jne 0x548851
lea eax, [ebp + 0x58]
mov ecx, dword [ebp + 0x34]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x54887a
test dx, dx
je 0x548876
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x54887a
add eax, 4
add ecx, 4
test dx, dx
jne 0x548854
xor eax, eax
jmp 0x54887f
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x5489b7
push 1
mov edi, dword [ebp + 0x34]
push edi
call fcn.0049be40
add esp, 8
test eax, eax
je 0x5488d5
push 0
push edi
lea eax, [ebp + 0x28]
push eax
call fcn.00402a50
mov byte [ebp - 4], 0x1c
mov ecx, dword [ebp + 0x28]
push ecx
push str.Delete_old_file__s_n
lea edx, [ebp + 0x38]
push edx
call fcn.00402f60
add esp, 0x18
mov eax, dword [ebp + 0x38]
push eax
mov ecx, esi
call fcn.00540ff0
mov byte [ebp - 4], 0x12
lea ecx, [ebp + 0x28]
call fcn.00402550
mov eax, dword [ebp + 0x54]
test eax, eax
jne 0x5488df
lea eax, [ebp + 0x58]
push 1
push edi
push eax
mov ecx, esi
call fcn.00543cd0
push 0
test eax, eax
jne 0x548948
mov ecx, dword [ebp + 0x34]
push ecx
lea edx, [ebp + 0x10]
push edx
call fcn.00402a50
add esp, 0xc
mov bl, 0x1d
mov byte [ebp - 4], bl
mov eax, dword [esi + 0x88]
mov ecx, dword [eax + 0x10]
push ecx
lea ecx, [ebp + 0x28]
call fcn.00417ab0
mov byte [ebp - 4], 0x1e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0x28]
push eax
push str.Can_not_rename_temp_file__s_to__s__errno___ld_n
lea ecx, [ebp + 0x38]
push ecx
call fcn.00402f60
add esp, 0x14
mov edx, dword [ebp + 0x38]
push edx
mov ecx, esi
call fcn.00540ff0
jmp 0x5489a0
mov eax, dword [ebp + 0x34]
push eax
lea ecx, [ebp + 0x10]
push ecx
call fcn.00402a50
add esp, 0xc
mov bl, 0x1f
mov byte [ebp - 4], bl
mov edx, dword [esi + 0x88]
mov eax, dword [edx + 0x10]
push eax
lea ecx, [ebp + 0x28]
call fcn.00417ab0
mov byte [ebp - 4], 0x20
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0x28]
push edx
push str.Rename_temp_file__s_to__s._n
lea eax, [ebp + 0x38]
push eax
call fcn.00402f60
add esp, 0x10
mov ecx, dword [ebp + 0x38]
push ecx
mov ecx, esi
call fcn.00540ff0
mov edx, dword [ebp + 0x14]
mov dword [edx], 1
mov byte [ebp - 4], bl
lea ecx, [ebp + 0x28]
call fcn.00402550
mov byte [ebp - 4], 0x12
lea ecx, [ebp + 0x10]
call fcn.00402550
mov eax, dword [ebp + 0x14]
cmp dword [eax], 0
je 0x548aaf
mov ecx, dword [ebp + 0x34]
push ecx
call fcn.00542360
add esp, 4
mov edx, dword [ebp + 0x14]
cmp dword [edx], 0
je 0x548aaf
mov edi, 1
mov dword [ebp - 0x14], edi
mov dword [ebp + 0x28], 4
lea eax, [ebp + 0x28]
push eax
lea ecx, [ebp + 0x10]
push ecx
push 0
push 0
push str.bSaveLogs
mov edx, dword [0x70f604]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x548a19
cmp dword [ebp + 0x10], edi
jne 0x548a19
mov dword [ebp - 0x14], eax
jmp 0x548aaf
mov ecx, dword [esi + 0xd4]
call fcn.00554ba0
mov eax, dword [0x70f64c]
test eax, eax
jne 0x548a32
mov eax, 0x70f650
push eax
call fcn.005fb393
add esp, 4
mov eax, dword [esi + 0xd4]
cmp word [eax + 4], 0
je 0x548aaf
xor edi, edi
mov dword [ebp + 0x3c], edi
mov dword [ebp + 0x44], edi
xor ecx, ecx
mov word [ebp + 0x40], cx
mov byte [ebp - 4], 0x21
push edi
mov edx, dword [esi + 0xd4]
add edx, 4
push edx
push 0x64edec
lea ecx, [ebp + 0x3c]
call fcn.00402190
mov eax, dword [ebp + 0x3c]
cmp eax, edi
jne 0x548a7c
lea eax, [ebp + 0x40]
push 0x5c
push eax
call fcn.005f80fb
add esp, 8
cmp eax, edi
je 0x548aa3
xor ecx, ecx
mov word [eax], cx
mov eax, dword [ebp + 0x3c]
cmp eax, edi
jne 0x548a9a
lea eax, [ebp + 0x40]
push eax
call fcn.005fd504
add esp, 4
mov byte [ebp - 4], 0x12
lea ecx, [ebp + 0x3c]
call fcn.004011f0
mov eax, dword [0x70f64c]
test eax, eax
jne 0x548abd
mov eax, 0x70f650
push eax
call fcn.005fb393
add esp, 4
mov esi, dword [esi + 0xd8]
cmp dword [esi], 0
je 0x548ae6
push 0
push 0x147d
push 0x111
mov edx, dword [esi]
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
mov byte [ebp - 4], 2
lea ecx, [ebp]
call fcn.00402550
mov byte [ebp - 4], 1
lea ecx, [ebp + 0x54]
call fcn.004011f0
mov byte [ebp - 4], 0
lea ecx, [ebp + 0x38]
call fcn.00402550
xor eax, eax
jmp 0x548b3e
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x68]
xor ecx, ebp
call fcn.005f85e7
add ebp, 0x6c
mov esp, ebp
pop ebp
ret 0xc