Function at 0x551f40
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 0x6529e8
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
mov eax, dword [0x7496c8]
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 - 0x54], esi
mov eax, dword [ebp + 0x78]
mov dword [ebp - 0x34], eax
mov ecx, dword [ebp + 0x7c]
mov dword [ebp - 0x14], ecx
xor edi, edi
mov dword [ebp - 4], edi
mov eax, dword [esi + 0x88]
cmp eax, edi
je 0x552f8a
mov ebx, dword [eax + 0x58]
mov dword [ebp - 0x2c], ebx
lea ecx, [ebp]
call fcn.00402500
mov byte [ebp - 4], 1
mov ecx, esi
call fcn.0054fb20
push str.Assembling_all_downloaded_portions_into_one_file..._n
mov ecx, esi
call fcn.0054b1b0
mov eax, dword [esi + 0xd8]
cmp dword [eax], edi
je 0x551fd6
push edi
push 0x147a
push 0x111
mov edx, dword [eax]
push edx
jmp 0x551ff1
mov eax, dword [esi + 0x90]
cmp eax, edi
je 0x551ff7
push eax
push 0x149f
push 0x111
mov eax, dword [0x74f090]
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, dword [esi + 0xc]
cmp eax, edi
je 0x552013
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 + 0x1c]
call fcn.00402180
mov byte [ebp - 4], 2
mov byte [ebp - 0x25], 0
cmp dword [ebp - 0x14], edi
je 0x5523a5
mov eax, dword [ebp - 0x14]
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x552040
sub eax, edx
sar eax, 1
je 0x5523a5
cmp dword [esi], edi
je 0x5523a5
mov eax, dword [ebp + 0x1c]
cmp eax, edi
jne 0x552067
lea eax, [ebp + 0x20]
mov ecx, dword [ebp - 0x14]
push ecx
push eax
call fcn.0061874a
add esp, 8
test eax, eax
je 0x5523a5
push 1
mov ebx, dword [ebp - 0x14]
push ebx
call fcn.004a2840
add esp, 8
test eax, eax
je 0x5520c9
push edi
push ebx
lea edx, [ebp - 0x1c]
push edx
call fcn.00402a70
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x1c]
push eax
push str.Delete_old_file__s_n
lea ecx, [ebp]
push ecx
call fcn.00402f80
add esp, 0x18
mov edx, dword [ebp]
push edx
mov ecx, esi
call fcn.0054b1b0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x1c]
call fcn.00402570
cmp dword [ebp + 0x74], edi
jbe 0x5522bf
cmp dword [0x743d18], edi
je 0x5520f7
push 0
push 0
push 2
push 0
push 1
push 0xc0000000
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
jmp 0x55214b
push edi
push ebx
lea ecx, [ebp - 0x18]
push ecx
call fcn.00402a70
mov byte [ebp - 4], 4
push 0x3f
mov edx, dword [ebp - 0x18]
push edx
call fcn.00614820
add esp, 0x14
push 0
push 0
push 2
push 0
push 1
push 0xc0000000
test eax, eax
jne 0x552133
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
jmp 0x55213d
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x18]
call fcn.00402570
cmp edi, 0xffffffff
jne 0x5521a6
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]
push edx
call fcn.00402f80
add esp, 0xc
mov eax, dword [ebp]
push eax
mov ecx, esi
call fcn.0054b1b0
mov ecx, dword [0x74f814]
push ecx
mov ecx, dword [esi + 0xd4]
call fcn.00560a60
mov byte [ebp - 4], 1
lea ecx, [ebp + 0x1c]
call fcn.004011f0
mov byte [ebp - 4], 0
lea ecx, [ebp]
call fcn.00402570
mov eax, edi
jmp 0x552fbe
mov edx, dword [ebp + 0x74]
push edx
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [esi + 0x88]
mov edx, dword [ecx + 0x10]
push edx
push edi
mov ecx, esi
call fcn.0054ee00
mov ebx, eax
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
je 0x5521d9
cmp ebx, 0x757c
jne 0x552515
mov byte [ebp - 0x25], 1
push 0
mov eax, dword [ebp - 0x14]
push eax
lea ecx, [ebp - 0x30]
push ecx
call fcn.00402a70
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.00417fb0
mov bl, 6
mov byte [ebp - 4], bl
mov ecx, dword [ebp - 0x30]
push ecx
mov edx, dword [ebp - 0x24]
push edx
push str.Rename2_temp_file__s_to__s._n
lea eax, [ebp]
push eax
call fcn.00402f80
add esp, 0x10
mov ecx, dword [ebp]
push ecx
mov ecx, esi
call fcn.0054b1b0
mov edx, dword [ebp - 0x34]
mov dword [edx], 1
mov eax, dword [esi + 0x88]
mov ecx, dword [eax + 0x10]
push ecx
call fcn.00616da3
add esp, 4
cmp eax, 0xffffffff
jne 0x5522a7
lea ecx, [ebp - 0x18]
call fcn.00402500
mov byte [ebp - 4], 7
mov edx, dword [esi + 0x88]
mov eax, dword [edx + 0x10]
push eax
lea ecx, [ebp - 0x1c]
call fcn.00417fb0
mov byte [ebp - 4], 8
mov ecx, dword [ebp - 0x1c]
push ecx
push str.Could_not_delete_temp_file__s_n
lea edx, [ebp - 0x18]
push edx
call fcn.00402f80
add esp, 0xc
mov eax, dword [ebp - 0x18]
push eax
mov ecx, esi
call fcn.0054b1b0
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x1c]
call fcn.00402570
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x18]
call fcn.00402570
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x24]
call fcn.00402570
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x30]
jmp 0x55239b
mov eax, dword [ebp + 0x1c]
cmp eax, edi
jne 0x5522c9
lea eax, [ebp + 0x20]
push edi
push ebx
push eax
mov ecx, esi
call fcn.0054e1a0
push 0
test eax, eax
jne 0x552331
mov ecx, dword [ebp - 0x14]
push ecx
lea edx, [ebp - 0x24]
push edx
call fcn.00402a70
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 - 0x1c]
call fcn.00417fb0
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 - 0x1c]
push eax
push str.Can_not_rename_temp_file__s_to__s__errno___ld_n
lea ecx, [ebp]
push ecx
call fcn.00402f80
add esp, 0x14
mov edx, dword [ebp]
push edx
mov ecx, esi
call fcn.0054b1b0
jmp 0x552389
mov eax, dword [ebp - 0x14]
push eax
lea ecx, [ebp - 0x24]
push ecx
call fcn.00402a70
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 - 0x1c]
call fcn.00417fb0
mov byte [ebp - 4], 0xc
mov ecx, dword [ebp - 0x24]
push ecx
mov edx, dword [ebp - 0x1c]
push edx
push str.Rename_temp_file__s_to__s._n
lea eax, [ebp]
push eax
call fcn.00402f80
add esp, 0x10
mov ecx, dword [ebp]
push ecx
mov ecx, esi
call fcn.0054b1b0
mov edx, dword [ebp - 0x34]
mov dword [edx], 1
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x1c]
call fcn.00402570
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x24]
call fcn.00402570
mov ebx, dword [ebp - 0x2c]
xor edi, edi
cmp dword [ebp + 0x74], edi
jbe 0x5525c4
cmp byte [ebp - 0x25], 0
jne 0x5525c4
mov dword [ebp + 0x10], edi
mov dword [ebp + 0x18], edi
xor eax, eax
mov word [ebp + 0x14], 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 + 0x10]
call fcn.004021b0
mov eax, dword [ebp + 0x10]
cmp eax, edi
jne 0x5523ea
lea eax, [ebp + 0x14]
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 0x55246f
push eax
lea ecx, [ebp - 0x24]
call fcn.00417fb0
mov bl, 0xe
mov byte [ebp - 4], bl
mov eax, dword [ebp + 0x10]
test eax, eax
jne 0x552420
lea eax, [ebp + 0x14]
push eax
lea ecx, [ebp - 0x1c]
call fcn.00417fb0
mov byte [ebp - 4], 0xf
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, dword [ebp - 0x1c]
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]
push eax
call fcn.00402f80
add esp, 0x14
mov ecx, dword [ebp]
push ecx
mov ecx, esi
call fcn.0054b1b0
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x1c]
call fcn.00402570
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0x24]
jmp 0x5525ae
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 0x5524d3
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]
push ecx
call fcn.00402f80
add esp, 0xc
mov edx, dword [ebp]
push edx
mov ecx, esi
call fcn.0054b1b0
mov eax, dword [0x74f814]
push eax
mov ecx, dword [esi + 0xd4]
call fcn.00560a60
mov byte [ebp - 4], 2
lea ecx, [ebp + 0x10]
call fcn.004011f0
jmp 0x552187
mov eax, dword [ebp + 0x10]
test eax, eax
jne 0x5524dd
lea eax, [ebp + 0x14]
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.0054ee00
mov ebx, eax
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
je 0x552534
cmp ebx, 0x757c
je 0x552534
mov byte [ebp - 4], 2
lea ecx, [ebp + 0x10]
call fcn.004011f0
mov byte [ebp - 4], 1
lea ecx, [ebp + 0x1c]
call fcn.004011f0
mov byte [ebp - 4], 0
lea ecx, [ebp]
call fcn.00402570
mov eax, ebx
jmp 0x552fbe
mov byte [ebp - 0x25], 1
mov eax, dword [ebp + 0x10]
test eax, eax
jne 0x552542
lea eax, [ebp + 0x14]
push eax
lea ecx, [ebp - 0x18]
call fcn.00417fb0
mov byte [ebp - 4], 0x10
mov edx, dword [ebp - 0x18]
push edx
push str.Skip_first_bytes_via_temp_file__s._n
lea eax, [ebp]
push eax
call fcn.00402f80
add esp, 0xc
mov ecx, dword [ebp]
push ecx
mov ecx, esi
call fcn.0054b1b0
mov eax, dword [ebp + 0x10]
test eax, eax
jne 0x552579
lea eax, [ebp + 0x14]
push eax
call fcn.00616da3
add esp, 4
cmp eax, 0xffffffff
jne 0x5525a7
mov edx, dword [ebp - 0x18]
push edx
push str.Could_not_delete_temp_file__s_n
lea eax, [ebp]
push eax
call fcn.00402f80
add esp, 0xc
mov ecx, dword [ebp]
push ecx
mov ecx, esi
call fcn.0054b1b0
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0x18]
call fcn.00402570
mov byte [ebp - 4], 2
lea ecx, [ebp + 0x10]
call fcn.004011f0
mov ebx, dword [ebp - 0x2c]
xor edi, edi
cmp dword [0x743d18], edi
je 0x5525fd
mov edx, dword [ebp - 0x34]
cmp dword [edx], edi
je 0x5525d8
mov eax, dword [ebp - 0x14]
jmp 0x5525e2
mov eax, dword [ebp + 0x1c]
cmp eax, edi
jne 0x5525e2
lea eax, [ebp + 0x20]
push edi
push edi
push 3
push edi
push 1
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x2c], eax
jmp 0x552684
mov eax, dword [ebp - 0x34]
cmp dword [eax], edi
je 0x552609
mov eax, dword [ebp - 0x14]
jmp 0x552613
mov eax, dword [ebp + 0x1c]
cmp eax, edi
jne 0x552613
lea eax, [ebp + 0x20]
push edi
push eax
lea ecx, [ebp - 0x18]
push ecx
call fcn.00402a70
mov byte [ebp - 4], 0x11
push 0x3f
mov edx, dword [ebp - 0x18]
push edx
call fcn.00614820
add esp, 0x14
test eax, eax
jne 0x55264c
push edi
push edi
push 3
push edi
push 1
push 0xc0000000
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
jmp 0x552675
mov ecx, dword [ebp - 0x34]
cmp dword [ecx], edi
je 0x552658
mov eax, dword [ebp - 0x14]
jmp 0x552662
mov eax, dword [ebp + 0x1c]
cmp eax, edi
jne 0x552662
lea eax, [ebp + 0x20]
push edi
push edi
push 3
push edi
push 1
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x2c], eax
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x18]
call fcn.00402570
cmp dword [ebp - 0x2c], 0xffffffff
je 0x552150
lea edx, [ebp - 0x48]
push edx
mov eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [esi + 0x100], eax
mov dword [esi + 0x104], edi
cmp eax, 0xffffffff
jne 0x5526ec
cmp edi, edi
jne 0x5526ec
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, edi
je 0x5526ec
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Error_during_GetFileSize____errcode___d._n
lea ecx, [ebp]
push ecx
call fcn.00402f80
add esp, 0xc
mov edx, dword [ebp]
push edx
mov ecx, esi
call fcn.0054b1b0
mov dword [esi + 0x100], edi
mov dword [esi + 0x104], edi
jmp 0x552705
push 1
push edi
push edi
mov eax, dword [ebp - 0x48]
push eax
call fcn.00617ef0
add dword [esi + 0x100], eax
adc dword [esi + 0x104], edx
mov eax, dword [esi + 0xd8]
cmp dword [eax], edi
je 0x552738
mov ecx, dword [esi + 0x100]
mov dword [ebp - 0x40], ecx
mov edx, dword [esi + 0x104]
mov dword [ebp - 0x3c], edx
lea ecx, [ebp - 0x40]
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 - 0x4c]
call fcn.00417fb0
mov byte [ebp - 4], 0x12
mov edx, dword [esi + 0x104]
push edx
mov eax, dword [esi + 0x100]
push eax
mov ecx, dword [ebp - 0x4c]
push ecx
push str.Size_of__s_is__I64d_n
lea edx, [ebp]
push edx
call fcn.00402f80
add esp, 0x14
mov eax, dword [ebp]
push eax
mov ecx, esi
call fcn.0054b1b0
mov dword [ebp - 0x58], edi
push 2
lea ecx, [ebp - 0x58]
push ecx
push edi
mov edx, dword [ebp - 0x2c]
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp ebx, edi
je 0x552bbd
mov eax, dword [ebp - 0x34]
cmp dword [eax], edi
je 0x5527a4
mov eax, dword [ebp - 0x14]
jmp 0x5527ad
mov ecx, dword [esi + 0x88]
mov eax, dword [ecx + 0x10]
push eax
lea ecx, [ebp - 0x1c]
call fcn.00417fb0
mov byte [ebp - 4], 0x13
mov edx, dword [ebx + 0x10]
push edx
lea ecx, [ebp - 0x24]
call fcn.00417fb0
mov byte [ebp - 4], 0x14
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 0x24]
push ecx
push str.Adding_file__s_to_file__s._n
lea edx, [ebp]
push edx
call fcn.00402f80
add esp, 0x10
mov eax, dword [ebp]
push eax
mov ecx, esi
call fcn.0054b1b0
cmp dword [ebx + 0x14], edi
je 0x5529b4
mov ecx, dword [ebp - 0x34]
cmp dword [ecx], edi
je 0x552803
mov eax, dword [ebp - 0x14]
jmp 0x55280d
mov eax, dword [ebp + 0x1c]
cmp eax, edi
jne 0x55280d
lea eax, [ebp + 0x20]
mov edx, dword [ebx + 0x24]
push edx
push eax
mov eax, dword [ebx + 0x10]
push eax
mov ecx, dword [ebp - 0x2c]
push ecx
mov ecx, esi
call fcn.0054ee00
mov edi, eax
test edi, edi
je 0x5529c2
cmp edi, 0x757c
je 0x5529c2
mov edx, dword [ebp - 0x2c]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x55298b
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x552850
sub eax, edx
sar eax, 1
je 0x55298b
mov ebx, dword [ebp + 0x1c]
test ebx, ebx
mov eax, ebx
jne 0x552871
lea eax, [ebp + 0x20]
mov ecx, dword [ebp - 0x14]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x55289a
test dx, dx
je 0x552896
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x55289a
add eax, 4
add ecx, 4
test dx, dx
jne 0x552874
xor eax, eax
jmp 0x55289f
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x55298b
test ebx, ebx
mov eax, ebx
jne 0x5528b0
lea eax, [ebp + 0x20]
push 0
push eax
mov eax, dword [ebp - 0x14]
push eax
call fcn.004a23d0
add esp, 0xc
test eax, eax
jne 0x552918
mov ecx, dword [ebp - 0x14]
push ecx
lea ecx, [ebp - 0x38]
call fcn.00417fb0
mov bl, 0x15
mov byte [ebp - 4], bl
mov eax, dword [ebp + 0x1c]
test eax, eax
jne 0x5528de
lea eax, [ebp + 0x20]
push eax
lea ecx, [ebp - 0x30]
call fcn.00417fb0
mov byte [ebp - 4], 0x16
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov edx, dword [ebp - 0x30]
push edx
mov eax, dword [ebp - 0x38]
push eax
push str.Can_not_rename_back_file__s_to__s__errno___ld_n
lea ecx, [ebp]
push ecx
call fcn.00402f80
add esp, 0x14
mov edx, dword [ebp]
push edx
mov ecx, esi
call fcn.0054b1b0
jmp 0x552974
mov eax, dword [ebp - 0x14]
push eax
lea ecx, [ebp - 0x38]
call fcn.00417fb0
mov bl, 0x17
mov byte [ebp - 4], bl
mov eax, dword [ebp + 0x1c]
test eax, eax
jne 0x552933
lea eax, [ebp + 0x20]
push eax
lea ecx, [ebp - 0x30]
call fcn.00417fb0
mov byte [ebp - 4], 0x18
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, dword [ebp - 0x30]
push ecx
mov edx, dword [ebp - 0x38]
push edx
push str.Rename_back_file__s_to__s._n
lea eax, [ebp]
push eax
call fcn.00402f80
add esp, 0x14
mov ecx, dword [ebp]
push ecx
mov ecx, esi
call fcn.0054b1b0
mov edx, dword [ebp - 0x34]
mov dword [edx], 0
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x30]
call fcn.00402570
mov byte [ebp - 4], 0x14
lea ecx, [ebp - 0x38]
call fcn.00402570
mov byte [ebp - 4], 0x13
lea ecx, [ebp - 0x24]
call fcn.00402570
mov byte [ebp - 4], 0x12
lea ecx, [ebp - 0x1c]
call fcn.00402570
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x4c]
call fcn.00402570
jmp 0x552187
push str.This_file_has_flag_isCmpleted__0__it_has_not_been_added._n
mov ecx, esi
call fcn.0054b1b0
jmp 0x5529c4
xor edi, edi
mov eax, dword [ebx + 0x10]
push eax
call fcn.00616da3
add esp, 4
cmp eax, 0xffffffff
jne 0x552a0e
mov ecx, dword [ebx + 0x10]
push ecx
lea ecx, [ebp - 0x3c]
call fcn.00417fb0
mov byte [ebp - 4], 0x19
mov edx, dword [ebp - 0x3c]
push edx
push str.Could_not_delete_temp_file__s_n
lea eax, [ebp]
push eax
call fcn.00402f80
add esp, 0xc
mov ecx, dword [ebp]
push ecx
mov ecx, esi
call fcn.0054b1b0
mov byte [ebp - 4], 0x14
lea ecx, [ebp - 0x3c]
jmp 0x552a45
mov edx, dword [ebx + 0x10]
push edx
lea ecx, [ebp - 0x20]
call fcn.00417fb0
mov byte [ebp - 4], 0x1a
mov eax, dword [ebp - 0x20]
push eax
push str.Deleting_temp_file__s_n
lea ecx, [ebp]
push ecx
call fcn.00402f80
add esp, 0xc
mov edx, dword [ebp]
push edx
mov ecx, esi
call fcn.0054b1b0
mov byte [ebp - 4], 0x14
lea ecx, [ebp - 0x20]
call fcn.00402570
mov eax, dword [ebx + 0x60]
push eax
push 0x66b41c
lea ecx, [ebp + 0x28]
push ecx
call fcn.0061611b
add esp, 0xc
mov ebx, dword [ebx + 0x58]
mov eax, dword [esi + 0xdc]
cmp eax, edi
je 0x552ba0
lea edx, [ebp + 0x28]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
lea eax, [ebp + 0x28]
push eax
push str.Deleting_record__s_from_registry_n
lea ecx, [ebp]
push ecx
call fcn.00402f80
add esp, 0xc
mov dword [ebp - 0x30], edi
lea ecx, [ebp - 0x18]
call fcn.00402500
mov byte [ebp - 4], 0x1b
lea edx, [ebp + 0x28]
push edx
push str.sk_s
lea eax, [ebp - 0x18]
push eax
call fcn.00402f80
add esp, 0xc
mov dword [ebp - 0x38], 4
lea ecx, [ebp - 0x38]
push ecx
lea edx, [ebp - 0x30]
push edx
push edi
push edi
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [esi + 0xdc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x552b37
cmp dword [ebp - 0x30], edi
jbe 0x552b37
mov dword [ebp - 0x44], edi
mov dword [ebp - 0x38], 4
lea edx, [ebp - 0x38]
push edx
lea eax, [ebp - 0x44]
push eax
push edi
push edi
push 0x69e590
mov ecx, dword [esi + 0xdc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edx, dword [ebp - 0x30]
add dword [ebp - 0x44], edx
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [esi + 0xdc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
push 4
lea edx, [ebp - 0x44]
push edx
push 4
push edi
push 0x69e590
mov eax, dword [esi + 0xdc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [ebp]
push ecx
mov ecx, esi
call fcn.0054b1b0
mov dword [ebp - 0x68], edi
mov dword [ebp - 0x60], edi
mov dword [ebp - 0x5c], edi
cmp ebx, edi
je 0x552b54
mov eax, dword [ebx + 0x60]
jmp 0x552b57
or eax, 0xffffffff
mov dword [ebp - 0x64], eax
push 0x10
lea edx, [ebp - 0x68]
push edx
push edi
push edi
push 0x679708
mov eax, dword [esi + 0xdc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [ebp - 0x64]
push ecx
push str.Updating_record_with_ID_0__set_nextID__d_n
lea edx, [ebp]
push edx
call fcn.00402f80
add esp, 0xc
mov eax, dword [ebp]
push eax
mov ecx, esi
call fcn.0054b1b0
mov byte [ebp - 4], 0x14
lea ecx, [ebp - 0x18]
call fcn.00402570
mov byte [ebp - 4], 0x13
lea ecx, [ebp - 0x24]
call fcn.00402570
mov byte [ebp - 4], 0x12
lea ecx, [ebp - 0x1c]
call fcn.00402570
jmp 0x552790
lea ecx, [ebp - 0x48]
push ecx
mov edx, dword [ebp - 0x2c]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [esi + 0xb0], eax
mov dword [esi + 0xb4], edi
cmp eax, 0xffffffff
jne 0x552c15
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebx
cmp eax, edi
je 0x552c15
call ebx
push eax
push str.Error_during_GetFileSize____errcode___ld._n
lea eax, [ebp]
push eax
call fcn.00402f80
add esp, 0xc
mov ecx, dword [ebp]
push ecx
mov ecx, esi
call fcn.0054b1b0
mov dword [esi + 0xb0], edi
mov dword [esi + 0xb4], edi
jmp 0x552c2e
push 1
push edi
push edi
mov edx, dword [ebp - 0x48]
push edx
call fcn.00617ef0
add dword [esi + 0xb0], eax
adc dword [esi + 0xb4], edx
mov eax, dword [esi + 0x18]
cmp eax, edi
je 0x552c53
cmp dword [eax + 0x54], edi
jne 0x552c53
mov eax, dword [esi + 0xb4]
push eax
mov ecx, dword [esi + 0xb0]
push ecx
mov edx, dword [ebp - 0x2c]
push edx
mov ecx, esi
call fcn.0054b740
mov eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, esi
call fcn.0054c030
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]
push eax
call fcn.00402f80
add esp, 0x10
mov ecx, dword [ebp]
push ecx
mov ecx, esi
call fcn.0054b1b0
cmp dword [esi], edi
je 0x552e37
cmp dword [ebp - 0x14], 0
je 0x552e37
mov eax, dword [ebp - 0x14]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x552ca6
sub eax, edx
sar eax, 1
je 0x552e37
mov edx, dword [ebp - 0x34]
cmp dword [edx], 0
jne 0x552e43
mov eax, dword [ebp + 0x1c]
test eax, eax
jne 0x552cd1
lea eax, [ebp + 0x20]
mov ecx, dword [ebp - 0x14]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x552cfa
test dx, dx
je 0x552cf6
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x552cfa
add eax, 4
add ecx, 4
test dx, dx
jne 0x552cd4
xor eax, eax
jmp 0x552cff
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x552e37
push 1
mov edi, dword [ebp - 0x14]
push edi
call fcn.004a2840
add esp, 8
test eax, eax
je 0x552d55
push 0
push edi
lea eax, [ebp - 0x20]
push eax
call fcn.00402a70
mov byte [ebp - 4], 0x1c
mov ecx, dword [ebp - 0x20]
push ecx
push str.Delete_old_file__s_n
lea edx, [ebp]
push edx
call fcn.00402f80
add esp, 0x18
mov eax, dword [ebp]
push eax
mov ecx, esi
call fcn.0054b1b0
mov byte [ebp - 4], 0x12
lea ecx, [ebp - 0x20]
call fcn.00402570
mov eax, dword [ebp + 0x1c]
test eax, eax
jne 0x552d5f
lea eax, [ebp + 0x20]
push 1
push edi
push eax
mov ecx, esi
call fcn.0054e1a0
push 0
test eax, eax
jne 0x552dc8
mov ecx, dword [ebp - 0x14]
push ecx
lea edx, [ebp - 0x3c]
push edx
call fcn.00402a70
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 - 0x20]
call fcn.00417fb0
mov byte [ebp - 4], 0x1e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov edx, dword [ebp - 0x3c]
push edx
mov eax, dword [ebp - 0x20]
push eax
push str.Can_not_rename_temp_file__s_to__s__errno___ld_n
lea ecx, [ebp]
push ecx
call fcn.00402f80
add esp, 0x14
mov edx, dword [ebp]
push edx
mov ecx, esi
call fcn.0054b1b0
jmp 0x552e20
mov eax, dword [ebp - 0x14]
push eax
lea ecx, [ebp - 0x3c]
push ecx
call fcn.00402a70
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 - 0x20]
call fcn.00417fb0
mov byte [ebp - 4], 0x20
mov ecx, dword [ebp - 0x3c]
push ecx
mov edx, dword [ebp - 0x20]
push edx
push str.Rename_temp_file__s_to__s._n
lea eax, [ebp]
push eax
call fcn.00402f80
add esp, 0x10
mov ecx, dword [ebp]
push ecx
mov ecx, esi
call fcn.0054b1b0
mov edx, dword [ebp - 0x34]
mov dword [edx], 1
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x20]
call fcn.00402570
mov byte [ebp - 4], 0x12
lea ecx, [ebp - 0x3c]
call fcn.00402570
mov eax, dword [ebp - 0x34]
cmp dword [eax], 0
je 0x552f2f
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.0054c520
add esp, 4
mov edx, dword [ebp - 0x34]
cmp dword [edx], 0
je 0x552f2f
mov edi, 1
mov dword [ebp - 0x50], edi
mov dword [ebp - 0x20], 4
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x3c]
push ecx
push 0
push 0
push str.bSaveLogs
mov edx, dword [0x74ea0c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x552e99
cmp dword [ebp - 0x3c], edi
jne 0x552e99
mov dword [ebp - 0x50], eax
jmp 0x552f2f
mov ecx, dword [esi + 0xd4]
call fcn.00560790
mov eax, dword [0x74ea5c]
test eax, eax
jne 0x552eb2
mov eax, 0x74ea60
push eax
call fcn.00615fe3
add esp, 4
mov eax, dword [esi + 0xd4]
cmp word [eax + 4], 0
je 0x552f2f
xor edi, edi
mov dword [ebp + 4], edi
mov dword [ebp + 0xc], edi
xor ecx, ecx
mov word [ebp + 8], cx
mov byte [ebp - 4], 0x21
push edi
mov edx, dword [esi + 0xd4]
add edx, 4
push edx
push 0x66ae98
lea ecx, [ebp + 4]
call fcn.004021b0
mov eax, dword [ebp + 4]
cmp eax, edi
jne 0x552efc
lea eax, [ebp + 8]
push 0x5c
push eax
call fcn.00612d55
add esp, 8
cmp eax, edi
je 0x552f23
xor ecx, ecx
mov word [eax], cx
mov eax, dword [ebp + 4]
cmp eax, edi
jne 0x552f1a
lea eax, [ebp + 8]
push eax
call fcn.00617f24
add esp, 4
mov byte [ebp - 4], 0x12
lea ecx, [ebp + 4]
call fcn.004011f0
mov eax, dword [0x74ea5c]
test eax, eax
jne 0x552f3d
mov eax, 0x74ea60
push eax
call fcn.00615fe3
add esp, 4
mov esi, dword [esi + 0xd8]
cmp dword [esi], 0
je 0x552f66
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 - 0x4c]
call fcn.00402570
mov byte [ebp - 4], 1
lea ecx, [ebp + 0x1c]
call fcn.004011f0
mov byte [ebp - 4], 0
lea ecx, [ebp]
call fcn.00402570
xor eax, eax
jmp 0x552fbe
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.00613241
add ebp, 0x6c
mov esp, ebp
pop ebp
ret 0xc