Function at 0x55c0c0
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 0x660048
mov eax, dword fs:[0]
push eax
sub esp, 0x68
mov eax, dword [0x758898]
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 - 0x5c], esi
mov eax, dword [ebp + 0x78]
mov dword [ebp - 0x30], eax
mov edi, dword [ebp + 0x7c]
mov dword [ebp - 0x28], edi
mov dword [ebp - 4], 0
mov eax, dword [esi + 0x88]
test eax, eax
je 0x55d1c6
mov ecx, dword [eax + 0x58]
mov dword [ebp - 0x1c], ecx
lea ecx, [ebp]
call fcn.00402510
mov byte [ebp - 4], 1
mov ecx, esi
call fcn.00559aa0
push str.Assembling_all_downloaded_portions_into_one_file..._n
mov ecx, esi
call fcn.00554bc0
mov eax, dword [esi + 0xd8]
cmp dword [eax], 0
je 0x55c15a
push 0
push 0x147a
push 0x111
mov edx, dword [eax]
push edx
jmp 0x55c175
mov eax, dword [esi + 0x90]
test eax, eax
je 0x55c17b
push eax
push 0x149f
push 0x111
mov eax, dword [0x75e284]
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, dword [esi + 0xc]
test eax, eax
je 0x55c197
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.00402190
mov byte [ebp - 4], 2
mov byte [ebp - 0x21], 0
test edi, edi
je 0x55c51b
mov eax, edi
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x55c1c0
sub eax, edx
sar eax, 1
je 0x55c51b
cmp dword [esi], 0
je 0x55c51b
mov eax, dword [ebp + 0x1c]
test eax, eax
jne 0x55c1e8
lea eax, [ebp + 0x20]
push edi
push eax
call fcn.0062574a
add esp, 8
test eax, eax
je 0x55c51b
push 1
push edi
call fcn.004aae90
add esp, 8
test eax, eax
je 0x55c245
push 0
push edi
lea ecx, [ebp - 0x18]
push ecx
call fcn.00402a80
mov byte [ebp - 4], 3
mov edx, dword [ebp - 0x18]
push edx
push str.Delete_old_file__s_n
lea eax, [ebp]
push eax
call fcn.00402f80
add esp, 0x18
mov ecx, dword [ebp]
push ecx
mov ecx, esi
call fcn.00554bc0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x18]
call fcn.00402580
cmp dword [ebp + 0x74], 0
jbe 0x55c436
push 0
cmp dword [0x752d28], 0
je 0x55c272
push 0
push 2
push 0
push 1
push 0xc0000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
jmp 0x55c2c2
push edi
lea edx, [ebp - 0x14]
push edx
call fcn.00402a80
mov byte [ebp - 4], 4
push 0x3f
mov eax, dword [ebp - 0x14]
push eax
call fcn.00621820
add esp, 0x14
push 0
push 0
push 2
push 0
push 1
push 0xc0000000
test eax, eax
jne 0x55c2ad
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
jmp 0x55c2b4
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x14]
call fcn.00402580
cmp edi, 0xffffffff
jne 0x55c31d
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.00554bc0
mov ecx, dword [0x75ea2c]
push ecx
mov ecx, dword [esi + 0xd4]
call fcn.0056ae40
mov byte [ebp - 4], 1
lea ecx, [ebp + 0x1c]
call fcn.00401210
mov byte [ebp - 4], 0
lea ecx, [ebp]
call fcn.00402580
mov eax, edi
jmp 0x55d1fb
mov edx, dword [ebp + 0x74]
push edx
mov eax, dword [ebp - 0x28]
push eax
mov ecx, dword [esi + 0x88]
mov edx, dword [ecx + 0x10]
push edx
push edi
mov ecx, esi
call fcn.00558d10
mov ebx, eax
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
je 0x55c350
cmp ebx, 0x757c
jne 0x55c689
mov byte [ebp - 0x21], 1
push 0
mov eax, dword [ebp - 0x28]
push eax
lea ecx, [ebp - 0x2c]
push ecx
call fcn.00402a80
add esp, 0xc
mov byte [ebp - 4], 5
mov edx, dword [esi + 0x88]
mov eax, dword [edx + 0x10]
push eax
lea ecx, [ebp - 0x20]
call fcn.00417be0
mov bl, 6
mov byte [ebp - 4], bl
mov ecx, dword [ebp - 0x2c]
push ecx
mov edx, dword [ebp - 0x20]
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.00554bc0
mov edx, dword [ebp - 0x30]
mov dword [edx], 1
mov eax, dword [esi + 0x88]
mov ecx, dword [eax + 0x10]
push ecx
call fcn.00623da3
add esp, 4
cmp eax, 0xffffffff
jne 0x55c41e
lea ecx, [ebp - 0x14]
call fcn.00402510
mov byte [ebp - 4], 7
mov edx, dword [esi + 0x88]
mov eax, dword [edx + 0x10]
push eax
lea ecx, [ebp - 0x18]
call fcn.00417be0
mov byte [ebp - 4], 8
mov ecx, dword [ebp - 0x18]
push ecx
push str.Could_not_delete_temp_file__s_n
lea edx, [ebp - 0x14]
push edx
call fcn.00402f80
add esp, 0xc
mov eax, dword [ebp - 0x14]
push eax
mov ecx, esi
call fcn.00554bc0
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x18]
call fcn.00402580
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x14]
call fcn.00402580
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x20]
call fcn.00402580
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x2c]
jmp 0x55c513
mov eax, dword [ebp + 0x1c]
test eax, eax
jne 0x55c440
lea eax, [ebp + 0x20]
push 0
push edi
push eax
mov ecx, esi
call fcn.005580b0
push 0
test eax, eax
jne 0x55c4a9
mov ecx, dword [ebp - 0x28]
push ecx
lea edx, [ebp - 0x20]
push edx
call fcn.00402a80
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 - 0x18]
call fcn.00417be0
mov byte [ebp - 4], 0xa
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov edx, dword [ebp - 0x20]
push edx
mov eax, dword [ebp - 0x18]
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.00554bc0
jmp 0x55c501
mov eax, dword [ebp - 0x28]
push eax
lea ecx, [ebp - 0x20]
push ecx
call fcn.00402a80
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 - 0x18]
call fcn.00417be0
mov byte [ebp - 4], 0xc
mov ecx, dword [ebp - 0x20]
push ecx
mov edx, dword [ebp - 0x18]
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.00554bc0
mov edx, dword [ebp - 0x30]
mov dword [edx], 1
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x18]
call fcn.00402580
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x20]
call fcn.00402580
mov edi, dword [ebp - 0x28]
xor ebx, ebx
cmp dword [ebp + 0x74], ebx
jbe 0x55c736
cmp byte [ebp - 0x21], bl
jne 0x55c736
mov dword [ebp + 0x10], ebx
mov dword [ebp + 0x18], ebx
xor eax, eax
mov word [ebp + 0x14], ax
mov byte [ebp - 4], 0xd
push ebx
mov ecx, dword [esi + 0x88]
mov edx, dword [ecx + 0x10]
push edx
push str._s_tmp
lea ecx, [ebp + 0x10]
call fcn.004021c0
mov eax, dword [ebp + 0x10]
cmp eax, ebx
jne 0x55c561
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 0x55c5e6
push eax
lea ecx, [ebp - 0x20]
call fcn.00417be0
mov bl, 0xe
mov byte [ebp - 4], bl
mov eax, dword [ebp + 0x10]
test eax, eax
jne 0x55c597
lea eax, [ebp + 0x14]
push eax
lea ecx, [ebp - 0x18]
call fcn.00417be0
mov byte [ebp - 4], 0xf
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
mov edx, dword [ebp - 0x20]
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.00554bc0
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x18]
call fcn.00402580
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0x20]
jmp 0x55c722
push ebx
push ebx
push 2
push ebx
push 1
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x55c647
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.00554bc0
mov eax, dword [0x75ea2c]
push eax
mov ecx, dword [esi + 0xd4]
call fcn.0056ae40
mov byte [ebp - 4], 2
lea ecx, [ebp + 0x10]
call fcn.00401210
jmp 0x55c2fe
mov eax, dword [ebp + 0x10]
test eax, eax
jne 0x55c651
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.00558d10
mov ebx, eax
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
je 0x55c6a8
cmp ebx, 0x757c
je 0x55c6a8
mov byte [ebp - 4], 2
lea ecx, [ebp + 0x10]
call fcn.00401210
mov byte [ebp - 4], 1
lea ecx, [ebp + 0x1c]
call fcn.00401210
mov byte [ebp - 4], 0
lea ecx, [ebp]
call fcn.00402580
mov eax, ebx
jmp 0x55d1fb
mov byte [ebp - 0x21], 1
mov eax, dword [ebp + 0x10]
test eax, eax
jne 0x55c6b6
lea eax, [ebp + 0x14]
push eax
lea ecx, [ebp - 0x14]
call fcn.00417be0
mov byte [ebp - 4], 0x10
mov edx, dword [ebp - 0x14]
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.00554bc0
mov eax, dword [ebp + 0x10]
test eax, eax
jne 0x55c6ed
lea eax, [ebp + 0x14]
push eax
call fcn.00623da3
add esp, 4
cmp eax, 0xffffffff
jne 0x55c71b
mov edx, dword [ebp - 0x14]
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.00554bc0
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0x14]
call fcn.00402580
mov byte [ebp - 4], 2
lea ecx, [ebp + 0x10]
call fcn.00401210
mov edi, dword [ebp - 0x28]
cmp dword [0x752d28], 0
je 0x55c775
mov edx, dword [ebp - 0x30]
cmp dword [edx], 0
je 0x55c74b
mov eax, edi
jmp 0x55c755
mov eax, dword [ebp + 0x1c]
test eax, eax
jne 0x55c755
lea eax, [ebp + 0x20]
push 0
push 0
push 3
push 0
push 1
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
mov dword [ebp - 0x50], ebx
jmp 0x55c7ff
mov ebx, dword [ebp - 0x30]
cmp dword [ebx], 0
je 0x55c781
mov eax, edi
jmp 0x55c78b
mov eax, dword [ebp + 0x1c]
test eax, eax
jne 0x55c78b
lea eax, [ebp + 0x20]
push 0
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.00402a80
mov byte [ebp - 4], 0x11
push 0x3f
mov ecx, dword [ebp - 0x14]
push ecx
call fcn.00621820
add esp, 0x14
test eax, eax
jne 0x55c7c5
push eax
push eax
push 3
push eax
push 1
push 0xc0000000
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
jmp 0x55c7ee
cmp dword [ebx], 0
je 0x55c7ce
mov eax, edi
jmp 0x55c7d8
mov eax, dword [ebp + 0x1c]
test eax, eax
jne 0x55c7d8
lea eax, [ebp + 0x20]
push 0
push 0
push 3
push 0
push 1
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
mov dword [ebp - 0x50], ebx
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x14]
call fcn.00402580
cmp ebx, 0xffffffff
jne 0x55c8a8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x4c], eax
xor edi, edi
mov dword [ebp - 0x58], edi
cmp ebx, 0xffffffff
jne 0x55c8a8
cmp dword [ebp - 0x4c], 0x20
jne 0x55c87d
cmp edi, 0x32
jge 0x55c87d
push 0xc8
call fcn.004264f0
add esp, 4
inc edi
mov dword [ebp - 0x58], edi
mov eax, dword [ebp - 0x30]
cmp dword [eax], 0
je 0x55c848
mov eax, dword [ebp - 0x28]
jmp 0x55c852
mov eax, dword [ebp + 0x1c]
test eax, eax
jne 0x55c852
lea eax, [ebp + 0x20]
push 0
push 0
push 3
push 0
push 1
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
mov dword [ebp - 0x50], ebx
cmp ebx, 0xffffffff
jne 0x55c8a8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x4c], eax
jmp 0x55c816
mov edi, dword [ebp - 0x4c]
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.00554bc0
mov eax, dword [0x75ea2c]
push eax
jmp 0x55c2f3
lea ecx, [ebp - 0x44]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [esi + 0x108], eax
mov dword [esi + 0x10c], 0
cmp eax, 0xffffffff
jne 0x55c90c
cmp dword [esi + 0x10c], 0
jne 0x55c90c
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
test eax, eax
je 0x55c90c
call edi
push eax
push str.Error_during_GetFileSize____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.00554bc0
xor eax, eax
mov dword [esi + 0x108], eax
mov dword [esi + 0x10c], eax
jmp 0x55c927
push 1
push 0
push 0
mov ecx, dword [ebp - 0x44]
push ecx
call fcn.00624b80
add dword [esi + 0x108], eax
adc dword [esi + 0x10c], edx
mov eax, dword [esi + 0xd8]
cmp dword [eax], 0
je 0x55c95b
mov edx, dword [esi + 0x108]
mov dword [ebp - 0x3c], edx
mov ecx, dword [esi + 0x10c]
mov dword [ebp - 0x38], ecx
lea edx, [ebp - 0x3c]
push edx
push 0x147b
push 0x111
mov eax, dword [eax]
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov ecx, dword [esi + 0x88]
mov edx, dword [ecx + 0x10]
push edx
lea ecx, [ebp - 0x48]
call fcn.00417be0
mov byte [ebp - 4], 0x12
mov eax, dword [esi + 0x10c]
push eax
mov ecx, dword [esi + 0x108]
push ecx
mov edx, dword [ebp - 0x48]
push edx
push str.Size_of__s_is__I64d_n
lea eax, [ebp]
push eax
call fcn.00402f80
add esp, 0x14
mov ecx, dword [ebp]
push ecx
mov ecx, esi
call fcn.00554bc0
mov dword [ebp - 0x60], 0
push 2
lea edx, [ebp - 0x60]
push edx
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov edi, dword [ebp - 0x1c]
test edi, edi
je 0x55cdfe
mov eax, dword [ebp - 0x30]
cmp dword [eax], 0
je 0x55c9cd
mov eax, dword [ebp - 0x28]
jmp 0x55c9d6
mov ecx, dword [esi + 0x88]
mov eax, dword [ecx + 0x10]
push eax
lea ecx, [ebp - 0x18]
call fcn.00417be0
mov byte [ebp - 4], 0x13
mov edx, dword [edi + 0x10]
push edx
lea ecx, [ebp - 0x20]
call fcn.00417be0
mov byte [ebp - 4], 0x14
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0x20]
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.00554bc0
cmp dword [edi + 0x14], 0
je 0x55cbee
mov ecx, dword [ebp - 0x30]
cmp dword [ecx], 0
je 0x55ca2e
mov eax, dword [ebp - 0x28]
jmp 0x55ca38
mov eax, dword [ebp + 0x1c]
test eax, eax
jne 0x55ca38
lea eax, [ebp + 0x20]
mov edx, dword [edi + 0x24]
push edx
push eax
mov eax, dword [edi + 0x10]
push eax
push ebx
mov ecx, esi
call fcn.00558d10
mov dword [ebp - 0x54], eax
test eax, eax
je 0x55cbfa
cmp eax, 0x757c
je 0x55cbfa
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [ebp - 0x28]
test edi, edi
je 0x55cbaa
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x55ca76
sub eax, edx
sar eax, 1
je 0x55cbaa
mov ebx, dword [ebp + 0x1c]
test ebx, ebx
mov eax, ebx
jne 0x55ca97
lea eax, [ebp + 0x20]
mov ecx, edi
lea esp, [esp]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x55cac6
test dx, dx
je 0x55cac2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x55cac6
add eax, 4
add ecx, 4
test dx, dx
jne 0x55caa0
xor eax, eax
jmp 0x55cacb
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x55cbaa
test ebx, ebx
mov eax, ebx
jne 0x55cadc
lea eax, [ebp + 0x20]
push 0
push eax
push edi
call fcn.004aaa20
add esp, 0xc
push edi
lea ecx, [ebp - 0x34]
test eax, eax
jne 0x55cb3e
call fcn.00417be0
mov bl, 0x15
mov byte [ebp - 4], bl
mov eax, dword [ebp + 0x1c]
test eax, eax
jne 0x55cb04
lea eax, [ebp + 0x20]
push eax
lea ecx, [ebp - 0x2c]
call fcn.00417be0
mov byte [ebp - 4], 0x16
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov ecx, dword [ebp - 0x2c]
push ecx
mov edx, dword [ebp - 0x34]
push edx
push str.Can_not_rename_back_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.00554bc0
jmp 0x55cb93
call fcn.00417be0
mov bl, 0x17
mov byte [ebp - 4], bl
mov eax, dword [ebp + 0x1c]
test eax, eax
jne 0x55cb52
lea eax, [ebp + 0x20]
push eax
lea ecx, [ebp - 0x2c]
call fcn.00417be0
mov byte [ebp - 4], 0x18
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov edx, dword [ebp - 0x2c]
push edx
mov eax, dword [ebp - 0x34]
push eax
push str.Rename_back_file__s_to__s._n
lea ecx, [ebp]
push ecx
call fcn.00402f80
add esp, 0x14
mov edx, dword [ebp]
push edx
mov ecx, esi
call fcn.00554bc0
mov eax, dword [ebp - 0x30]
mov dword [eax], 0
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x2c]
call fcn.00402580
mov byte [ebp - 4], 0x14
lea ecx, [ebp - 0x34]
call fcn.00402580
mov byte [ebp - 4], 0x13
lea ecx, [ebp - 0x20]
call fcn.00402580
mov byte [ebp - 4], 0x12
lea ecx, [ebp - 0x18]
call fcn.00402580
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x48]
call fcn.00402580
mov byte [ebp - 4], 1
lea ecx, [ebp + 0x1c]
call fcn.00401210
mov byte [ebp - 4], 0
lea ecx, [ebp]
call fcn.00402580
mov eax, dword [ebp - 0x54]
jmp 0x55d1fb
push str.This_file_has_flag_isCmpleted__0__it_has_not_been_added._n
mov ecx, esi
call fcn.00554bc0
mov ecx, dword [edi + 0x10]
push ecx
call fcn.00623da3
add esp, 4
cmp eax, 0xffffffff
jne 0x55cc44
mov edx, dword [edi + 0x10]
push edx
lea ecx, [ebp - 0x38]
call fcn.00417be0
mov byte [ebp - 4], 0x19
mov eax, dword [ebp - 0x38]
push eax
push str.Could_not_delete_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.00554bc0
mov byte [ebp - 4], 0x14
lea ecx, [ebp - 0x38]
jmp 0x55cc7b
mov eax, dword [edi + 0x10]
push eax
lea ecx, [ebp - 0x1c]
call fcn.00417be0
mov byte [ebp - 4], 0x1a
mov ecx, dword [ebp - 0x1c]
push ecx
push str.Deleting_temp_file__s_n
lea edx, [ebp]
push edx
call fcn.00402f80
add esp, 0xc
mov eax, dword [ebp]
push eax
mov ecx, esi
call fcn.00554bc0
mov byte [ebp - 4], 0x14
lea ecx, [ebp - 0x1c]
call fcn.00402580
mov ecx, dword [edi + 0x60]
push ecx
push 0x6795fc
lea edx, [ebp + 0x28]
push edx
call fcn.0062311b
add esp, 0xc
mov edi, dword [edi + 0x58]
mov eax, dword [esi + 0xdc]
test eax, eax
je 0x55cde1
lea ecx, [ebp + 0x28]
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
lea edx, [ebp + 0x28]
push edx
push str.Deleting_record__s_from_registry_n
lea eax, [ebp]
push eax
call fcn.00402f80
add esp, 0xc
mov dword [ebp - 0x2c], 0
lea ecx, [ebp - 0x14]
call fcn.00402510
mov byte [ebp - 4], 0x1b
lea ecx, [ebp + 0x28]
push ecx
push str.sk_s
lea edx, [ebp - 0x14]
push edx
call fcn.00402f80
add esp, 0xc
mov dword [ebp - 0x34], 4
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0x2c]
push ecx
push 0
push 0
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [esi + 0xdc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x55cd74
cmp dword [ebp - 0x2c], eax
jbe 0x55cd74
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x34], 4
lea ecx, [ebp - 0x34]
push ecx
lea edx, [ebp - 0x40]
push edx
push eax
push eax
push 0x6acc6c
mov eax, dword [esi + 0xdc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, dword [ebp - 0x2c]
add dword [ebp - 0x40], ecx
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [esi + 0xdc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
push 4
lea ecx, [ebp - 0x40]
push ecx
push 4
push 0
push 0x6acc6c
mov edx, dword [esi + 0xdc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [ebp]
push eax
mov ecx, esi
call fcn.00554bc0
xor eax, eax
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x68], eax
cmp edi, eax
je 0x55cd93
mov eax, dword [edi + 0x60]
jmp 0x55cd96
or eax, 0xffffffff
mov dword [ebp - 0x70], eax
push 0x10
lea ecx, [ebp - 0x74]
push ecx
push 0
push 0
push 0x687b48
mov edx, dword [esi + 0xdc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [ebp - 0x70]
push eax
push str.Updating_record_with_ID_0__set_nextID__ld_n
lea ecx, [ebp]
push ecx
call fcn.00402f80
add esp, 0xc
mov edx, dword [ebp]
push edx
mov ecx, esi
call fcn.00554bc0
mov byte [ebp - 4], 0x14
lea ecx, [ebp - 0x14]
call fcn.00402580
mov byte [ebp - 4], 0x13
lea ecx, [ebp - 0x20]
call fcn.00402580
mov byte [ebp - 4], 0x12
lea ecx, [ebp - 0x18]
call fcn.00402580
jmp 0x55c9b8
lea eax, [ebp - 0x44]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [esi + 0xb0], eax
mov dword [esi + 0xb4], 0
cmp eax, 0xffffffff
jne 0x55ce59
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
test eax, eax
je 0x55ce59
call edi
push eax
push str.Error_during_GetFileSize____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.00554bc0
xor eax, eax
mov dword [esi + 0xb0], eax
mov dword [esi + 0xb4], eax
jmp 0x55ce74
push 1
push 0
push 0
mov eax, dword [ebp - 0x44]
push eax
call fcn.00624b80
add dword [esi + 0xb0], eax
adc dword [esi + 0xb4], edx
mov eax, dword [esi + 0x18]
test eax, eax
je 0x55ce97
cmp dword [eax + 0x54], 0
jne 0x55ce97
mov ecx, dword [esi + 0xb4]
push ecx
mov edx, dword [esi + 0xb0]
push edx
push ebx
mov ecx, esi
call fcn.005555e0
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, esi
call fcn.00555ee0
mov eax, dword [esi + 0xb4]
push eax
mov ecx, dword [esi + 0xb0]
push ecx
push str.Rebuilding_complete__real_size___I64d_n
lea edx, [ebp]
push edx
call fcn.00402f80
add esp, 0x10
mov eax, dword [ebp]
push eax
mov ecx, esi
call fcn.00554bc0
mov edi, dword [ebp - 0x28]
cmp dword [esi], 0
je 0x55d079
test edi, edi
je 0x55d079
mov eax, edi
lea edx, [eax + 2]
jmp 0x55cef0
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x55cef0
sub eax, edx
sar eax, 1
je 0x55d079
mov ebx, dword [ebp - 0x30]
cmp dword [ebx], 0
jne 0x55d085
mov eax, dword [ebp + 0x1c]
test eax, eax
jne 0x55cf1b
lea eax, [ebp + 0x20]
mov ecx, edi
lea ecx, [ecx]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x55cf46
test dx, dx
je 0x55cf42
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x55cf46
add eax, 4
add ecx, 4
test dx, dx
jne 0x55cf20
xor eax, eax
jmp 0x55cf4b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x55d079
push 1
push edi
call fcn.004aae90
add esp, 8
test eax, eax
je 0x55cf9e
push 0
push edi
lea ecx, [ebp - 0x1c]
push ecx
call fcn.00402a80
mov byte [ebp - 4], 0x1c
mov edx, dword [ebp - 0x1c]
push edx
push str.Delete_old_file__s_n
lea eax, [ebp]
push eax
call fcn.00402f80
add esp, 0x18
mov ecx, dword [ebp]
push ecx
mov ecx, esi
call fcn.00554bc0
mov byte [ebp - 4], 0x12
lea ecx, [ebp - 0x1c]
call fcn.00402580
mov eax, dword [ebp + 0x1c]
test eax, eax
jne 0x55cfa8
lea eax, [ebp + 0x20]
push 1
push edi
push eax
mov ecx, esi
call fcn.005580b0
push 0
push edi
test eax, eax
jne 0x55d00e
lea edx, [ebp - 0x38]
push edx
call fcn.00402a80
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 - 0x1c]
call fcn.00417be0
mov byte [ebp - 4], 0x1e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov edx, dword [ebp - 0x38]
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.00554bc0
jmp 0x55d062
lea eax, [ebp - 0x38]
push eax
call fcn.00402a80
add esp, 0xc
mov bl, 0x1f
mov byte [ebp - 4], bl
mov ecx, dword [esi + 0x88]
mov edx, dword [ecx + 0x10]
push edx
lea ecx, [ebp - 0x1c]
call fcn.00417be0
mov byte [ebp - 4], 0x20
mov eax, dword [ebp - 0x38]
push eax
mov ecx, dword [ebp - 0x1c]
push ecx
push str.Rename_temp_file__s_to__s._n
lea edx, [ebp]
push edx
call fcn.00402f80
add esp, 0x10
mov eax, dword [ebp]
push eax
mov ecx, esi
call fcn.00554bc0
mov ecx, dword [ebp - 0x30]
mov dword [ecx], 1
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x1c]
call fcn.00402580
mov byte [ebp - 4], 0x12
lea ecx, [ebp - 0x38]
call fcn.00402580
mov ebx, dword [ebp - 0x30]
cmp dword [ebx], 0
je 0x55d16b
push edi
call fcn.005563d0
add esp, 4
cmp dword [ebx], 0
je 0x55d16b
mov edi, 1
mov dword [ebp - 0x64], edi
mov dword [ebp - 0x1c], 4
lea edx, [ebp - 0x1c]
push edx
lea eax, [ebp - 0x38]
push eax
push 0
push 0
push str.bSaveLogs
mov ecx, dword [0x75dbe4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x55d0d5
cmp dword [ebp - 0x38], edi
jne 0x55d0d5
mov dword [ebp - 0x64], eax
jmp 0x55d16b
mov ecx, dword [esi + 0xd4]
call fcn.0056ab70
mov eax, dword [0x75dc38]
test eax, eax
jne 0x55d0ee
mov eax, 0x75dc3c
push eax
call fcn.00622fe3
add esp, 4
mov edx, dword [esi + 0xd4]
cmp word [edx + 4], 0
je 0x55d16b
xor edi, edi
mov dword [ebp + 4], edi
mov dword [ebp + 0xc], edi
xor eax, eax
mov word [ebp + 8], ax
mov byte [ebp - 4], 0x21
push edi
mov ecx, dword [esi + 0xd4]
add ecx, 4
push ecx
push 0x678ea8
lea ecx, [ebp + 4]
call fcn.004021c0
mov eax, dword [ebp + 4]
cmp eax, edi
jne 0x55d138
lea eax, [ebp + 8]
push 0x5c
push eax
call fcn.0061fd52
add esp, 8
cmp eax, edi
je 0x55d15f
xor edx, edx
mov word [eax], dx
mov eax, dword [ebp + 4]
cmp eax, edi
jne 0x55d156
lea eax, [ebp + 8]
push eax
call fcn.00624f28
add esp, 4
mov byte [ebp - 4], 0x12
lea ecx, [ebp + 4]
call fcn.00401210
mov eax, dword [0x75dc38]
test eax, eax
jne 0x55d179
mov eax, 0x75dc3c
push eax
call fcn.00622fe3
add esp, 4
mov esi, dword [esi + 0xd8]
cmp dword [esi], 0
je 0x55d1a2
push 0
push 0x147d
push 0x111
mov eax, dword [esi]
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x48]
call fcn.00402580
mov byte [ebp - 4], 1
lea ecx, [ebp + 0x1c]
call fcn.00401210
mov byte [ebp - 4], 0
lea ecx, [ebp]
call fcn.00402580
xor eax, eax
jmp 0x55d1fb
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.0062023e
add ebp, 0x6c
mov esp, ebp
pop ebp
ret 0xc