Function at 0x50d7e0
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 0x5d35c8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x78
push ebx
push esi
push edi
mov edi, ecx
xor esi, esi
mov dword [ebp - 0x10], esp
mov eax, dword [edi + 0x20]
mov dword [ebp - 0x1c], edi
cmp eax, esi
mov dword [ebp - 4], esi
je 0x50ebc4
mov eax, dword [eax + 0x38]
mov ecx, dword [0x68d01c]
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x18], ecx
mov ecx, edi
mov byte [ebp - 4], 1
call fcn.00511c40
push str.Assembling_all_downloaded_portions_into_one_file..._n
mov ecx, edi
call fcn.0050c380
mov edx, dword [edi + 0x70]
mov eax, dword [edx]
cmp eax, esi
je 0x50d857
push esi
push 0x147a
push 0x111
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, dword [edi + 0xc]
cmp eax, esi
je 0x50d873
mov ecx, dword [edi + 0x10]
push ecx
push 0x147a
push 0x111
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov edx, dword [edi + 0x20]
lea ecx, [ebp - 0x5c]
mov eax, dword [edx + 0x10]
mov dword [ebp - 0x5c], esi
push eax
mov dword [ebp - 0x54], esi
mov word [ebp - 0x58], si
call fcn.00401ee0
mov ebx, dword [ebp + 0x10]
mov byte [ebp - 4], 2
cmp ebx, esi
mov byte [ebp - 0x11], 0
je 0x50dd8b
push ebx
call fcn.00591712
add esp, 4
test eax, eax
je 0x50dd8b
cmp dword [edi], esi
je 0x50dd8b
mov eax, dword [ebp - 0x5c]
cmp eax, esi
jne 0x50d8c2
lea eax, [ebp - 0x58]
push ebx
push eax
call fcn.00593cdc
add esp, 8
test eax, eax
je 0x50dd8b
push 1
push ebx
call fcn.004740e0
add esp, 8
cmp eax, esi
je 0x50d91c
push ebx
lea ecx, [ebp - 0x38]
call fcn.005add0d
mov eax, dword [ebp - 0x38]
lea ecx, [ebp - 0x18]
push eax
push str.Delete_old_file__s_n
push ecx
mov byte [ebp - 4], 3
call fcn.005a6a18
mov edx, dword [ebp - 0x18]
add esp, 0xc
mov ecx, edi
push edx
call fcn.0050c380
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 2
call fcn.005adc4d
cmp dword [ebp + 8], esi
jbe 0x50dad2
cmp dword [0x6697fc], esi
je 0x50d944
push esi
push esi
push 2
push esi
push 1
push 0xc0000000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
jmp 0x50d988
push ebx
lea ecx, [ebp - 0x24]
call fcn.005add0d
mov eax, dword [ebp - 0x24]
push 0x3f
push eax
call fcn.00591740
add esp, 8
test eax, eax
push esi
push esi
push 2
push esi
push 1
push 0xc0000000
jne 0x50d977
mov ecx, dword [ebp - 0x24]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
jmp 0x50d97e
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
lea ecx, [ebp - 0x24]
mov esi, eax
call fcn.005adc4d
cmp esi, 0xffffffff
jne 0x50d9c6
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.005a6a18
mov eax, dword [ebp - 0x18]
add esp, 0xc
mov ecx, edi
push eax
call fcn.0050c380
mov ecx, dword [0x692c60]
push ecx
mov ecx, dword [edi + 0x6c]
call fcn.00518410
jmp 0x50e3eb
push 0
push 0
lea edx, [ebp - 0x2c]
push 0
push edx
push ebx
call fcn.0059249a
mov eax, dword [ebp + 8]
add esp, 0x14
lea ecx, [ebp - 0x2c]
push eax
push ecx
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ecx + 0x20]
mov eax, dword [edx + 0x10]
push eax
push esi
call fcn.0050ec20
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
je 0x50da33
cmp edi, 0x757c
je 0x50da33
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 1
call fcn.00401070
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0
call fcn.005adc4d
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push ebx
lea ecx, [ebp - 0x38]
mov byte [ebp - 0x11], 1
call fcn.005add0d
mov esi, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x38]
push ecx
lea ecx, [ebp - 0x18]
mov edx, dword [esi + 0x20]
mov byte [ebp - 4], 4
mov eax, dword [edx + 0x10]
push eax
push str.Rename2_temp_file__s_to__s._n
push ecx
call fcn.005a6a18
mov edx, dword [ebp - 0x18]
add esp, 0x10
mov ecx, esi
push edx
call fcn.0050c380
mov eax, dword [ebp + 0xc]
mov dword [eax], 1
mov ecx, dword [esi + 0x20]
mov edx, dword [ecx + 0x10]
push edx
call fcn.00593113
add esp, 4
cmp eax, 0xffffffff
jne 0x50dac6
mov eax, dword [0x68d01c]
mov dword [ebp - 0x24], eax
mov ecx, dword [esi + 0x20]
lea eax, [ebp - 0x24]
mov byte [ebp - 4], 5
mov edx, dword [ecx + 0x10]
push edx
push str.Could_not_delete_temp_file__s_n
push eax
call fcn.005a6a18
mov ecx, dword [ebp - 0x24]
add esp, 0xc
push ecx
mov ecx, esi
call fcn.0050c380
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 4
call fcn.005adc4d
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x38]
jmp 0x50dd86
mov eax, dword [ebp - 0x5c]
cmp eax, esi
mov edi, eax
jne 0x50dade
lea edi, [ebp - 0x58]
push 0
push ebx
push edi
mov dword [ebp - 0x28], edi
call fcn.00473cb0
mov esi, eax
add esp, 0xc
test esi, esi
mov dword [ebp - 0x24], esi
jne 0x50dd3f
mov edx, dword [0x68d01c]
mov dword [ebp - 0x20], edx
mov byte [ebp - 4], 6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ebx
push edi
lea eax, [ebp - 0x20]
push str.Can_not_rename_temp_file__s_to__s__error___ld_n
push eax
call fcn.005a6a18
mov ecx, dword [ebp - 0x20]
add esp, 0x14
push ecx
mov ecx, dword [ebp - 0x1c]
call fcn.0050c380
xor eax, eax
push ebx
lea ecx, [ebp - 0x68]
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x60], eax
mov word [ebp - 0x64], ax
call fcn.00401ee0
push 0x5c
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 7
call fcn.00401ed0
push eax
call fcn.00591662
add esp, 8
test eax, eax
jne 0x50db7a
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 6
call fcn.00401070
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 2
call fcn.005adc4d
jmp 0x50dcf8
add eax, 2
push 0
lea ecx, [ebp - 0x68]
mov word [eax], 0
call fcn.00401ed0
push eax
call fcn.00474270
add esp, 8
test eax, eax
jne 0x50dcdc
mov ecx, dword [ebp - 0x1c]
push str.Folder_does_not_exist__Creating..._n
call fcn.0050c380
lea ecx, [ebp - 0x68]
call fcn.00401ed0
add eax, 4
push 0x5c
add eax, 2
push eax
call fcn.00591b7f
add esp, 8
mov esi, eax
mov bl, 8
test esi, esi
je 0x50dcc8
lea ecx, [ebp - 0x68]
call fcn.00401ed0
push eax
lea ecx, [ebp - 0x80]
call fcn.00403af0
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], bl
call fcn.00401ed0
mov edi, esi
lea ecx, [ebp - 0x80]
sub edi, eax
sar edi, 1
call fcn.00401ed0
push 0
lea ecx, [ebp - 0x80]
mov word [eax + edi*2], 0
call fcn.00401ed0
push eax
call fcn.00474270
add esp, 8
test eax, eax
jne 0x50dca4
push eax
lea ecx, [ebp - 0x80]
call fcn.00401ed0
push eax
call fcn.00474450
add esp, 8
test eax, eax
jne 0x50dca4
lea ecx, [ebp - 0x80]
call fcn.00401ed0
push eax
lea ecx, [ebp - 0x38]
call fcn.005add0d
mov byte [ebp - 4], 9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [ebp - 0x38]
push eax
push edx
lea eax, [ebp - 0x20]
push str.Can_not_create_folder__s__error___ld_n
push eax
call fcn.005a6a18
mov ecx, dword [ebp - 0x20]
add esp, 0x10
push ecx
mov ecx, dword [ebp - 0x1c]
call fcn.0050c380
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], bl
call fcn.005adc4d
lea ecx, [ebp - 0x80]
mov byte [ebp - 4], 7
call fcn.00401070
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 6
call fcn.00401070
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 2
call fcn.005adc4d
mov ebx, dword [ebp + 0x10]
mov esi, dword [ebp - 0x24]
jmp 0x50dcf4
add esi, 2
push 0x5c
push esi
call fcn.00591b7f
add esp, 8
lea ecx, [ebp - 0x80]
mov esi, eax
mov byte [ebp - 4], 7
call fcn.00401070
mov edi, dword [ebp - 0x28]
jmp 0x50dbc7
mov edx, dword [ebp + 0x10]
push 0
push edx
push edi
call fcn.00473cb0
mov ebx, dword [ebp + 0x10]
add esp, 0xc
mov esi, eax
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 6
call fcn.00401070
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 2
call fcn.005adc4d
test esi, esi
jne 0x50dd3f
push ebx
lea ecx, [ebp - 0x38]
call fcn.005add0d
mov byte [ebp - 4], 0xa
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x38]
mov ecx, dword [esi + 0x20]
push eax
lea eax, [ebp - 0x18]
mov edx, dword [ecx + 0x10]
push edx
push str.Can_not_rename_temp_file__s_to__s__errno___ld_n
push eax
call fcn.005a6a18
mov ecx, dword [ebp - 0x18]
add esp, 0x14
push ecx
mov ecx, esi
call fcn.0050c380
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x38]
jmp 0x50dd86
push ebx
lea ecx, [ebp - 0x38]
call fcn.005add0d
mov esi, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x38]
push edx
lea edx, [ebp - 0x18]
mov eax, dword [esi + 0x20]
mov byte [ebp - 4], 0xb
mov ecx, dword [eax + 0x10]
push ecx
push str.Rename_temp_file__s_to__s._n
push edx
call fcn.005a6a18
mov eax, dword [ebp - 0x18]
add esp, 0x10
mov ecx, esi
push eax
call fcn.0050c380
mov ecx, dword [ebp + 0xc]
mov byte [ebp - 4], 2
mov dword [ecx], 1
lea ecx, [ebp - 0x38]
call fcn.005adc4d
mov eax, dword [ebp + 8]
xor ecx, ecx
cmp eax, ecx
jbe 0x50e0a0
mov al, byte [ebp - 0x11]
test al, al
jne 0x50e0a0
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x28], ecx
mov word [ebp - 0x2c], cx
mov edx, dword [ebp - 0x1c]
mov byte [ebp - 4], 0xc
mov eax, dword [edx + 0x20]
mov edx, str._s_tmp
test edx, edx
mov eax, dword [eax + 0x10]
je 0x50de83
test eax, eax
je 0x50de83
mov dword [ebp - 0x80], ecx
mov dword [ebp - 0x78], ecx
mov word [ebp - 0x7c], cx
push eax
lea ecx, [ebp - 0x80]
call fcn.00401ee0
mov bl, 0xd
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], bl
call fcn.00401070
push str._s_tmp
lea ecx, [ebp - 0x74]
call fcn.00401e50
mov esi, dword [ebp - 0x6c]
lea ecx, [ebp - 0x80]
mov byte [ebp - 4], 0xe
call fcn.00401ed0
push eax
call fcn.00591712
lea esi, [eax + esi + 2]
lea edi, [esi + esi]
push edi
call fcn.005a9fe9
mov edx, eax
add esp, 8
test edx, edx
mov dword [ebp - 0x30], edx
je 0x50de69
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 - 0x80]
call fcn.00401ed0
push eax
lea ecx, [ebp - 0x74]
call fcn.00401ed0
push eax
mov eax, dword [ebp - 0x30]
push esi
push eax
call fcn.005916a2
mov ecx, dword [ebp - 0x30]
push ecx
call fcn.00591712
add esp, 0x14
mov dword [ebp - 0x28], eax
lea ecx, [ebp - 0x74]
mov byte [ebp - 4], bl
call fcn.00401070
lea ecx, [ebp - 0x80]
mov byte [ebp - 4], 0xc
call fcn.00401070
mov ecx, dword [ebp - 0x30]
test ecx, ecx
jne 0x50de8a
lea ecx, [ebp - 0x2c]
mov edi, dword [ebp - 0x1c]
push ecx
mov edx, dword [edi + 0x20]
mov eax, dword [edx + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
jne 0x50dedf
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [ebp - 0x30]
push eax
mov eax, dword [ebp - 0x2c]
sub esp, 0xc
mov ecx, esp
mov dword [ecx], edx
mov edx, dword [ebp - 0x28]
mov dword [ecx + 4], eax
mov eax, dword [edi + 0x20]
mov dword [ecx + 8], edx
mov ecx, dword [eax + 0x10]
push ecx
lea edx, [ebp - 0x18]
push str.Step5__can_not_rename_temp_file__s_to__s__errno___ld_n
push edx
call fcn.005a6a18
mov eax, dword [ebp - 0x18]
add esp, 0x1c
mov ecx, edi
push eax
jmp 0x50e072
mov ecx, dword [edi + 0x20]
push 0
push 0
push 2
mov edx, dword [ecx + 0x10]
push 0
push 1
push 0xc0000000
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x50df6f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
lea eax, [ebp - 0x18]
push esi
push str.Error_opening_local_file_for_writing__errcode___ld._n
push eax
call fcn.005a6a18
mov ecx, dword [ebp - 0x18]
add esp, 0xc
push ecx
mov ecx, edi
call fcn.0050c380
mov edx, dword [0x692c60]
mov ecx, dword [edi + 0x6c]
push edx
call fcn.00518410
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 2
call fcn.00401070
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 1
call fcn.00401070
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0
call fcn.005adc4d
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 ecx, dword [edi + 0x20]
push 0
push 0
lea eax, [ebp - 0x38]
mov edx, dword [ecx + 0x10]
push 0
push eax
push edx
call fcn.0059249a
mov eax, dword [ebp - 0x30]
add esp, 0x14
test eax, eax
jne 0x50df92
lea eax, [ebp - 0x2c]
mov ecx, dword [ebp + 8]
mov ebx, dword [ebp - 0x1c]
lea edx, [ebp - 0x38]
push ecx
push edx
push eax
push esi
mov ecx, ebx
call fcn.0050ec20
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
je 0x50dff4
cmp edi, 0x757c
je 0x50dff4
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 2
call fcn.00401070
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 1
call fcn.00401070
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0
call fcn.005adc4d
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 [ebx + 0x20]
mov ecx, dword [eax + 0x10]
mov eax, dword [ebp - 0x30]
push ecx
mov ecx, dword [ebp - 0x2c]
sub esp, 0xc
mov edx, esp
push str.Skip_first_bytes_via_temp_file__s._n
mov dword [edx], eax
mov eax, dword [ebp - 0x28]
mov dword [edx + 4], ecx
lea ecx, [ebp - 0x18]
push ecx
mov dword [edx + 8], eax
call fcn.005a6a18
mov edx, dword [ebp - 0x18]
add esp, 0x18
mov ecx, ebx
push edx
call fcn.0050c380
mov eax, dword [ebp - 0x30]
test eax, eax
jne 0x50e037
lea eax, [ebp - 0x2c]
push eax
call fcn.00593113
add esp, 4
cmp eax, 0xffffffff
jne 0x50e077
mov ecx, dword [ebp - 0x30]
mov edx, dword [ebp - 0x2c]
sub esp, 0xc
mov eax, esp
push str.Could_not_delete_temp_file__ls_n
mov dword [eax], ecx
mov ecx, dword [ebp - 0x28]
mov dword [eax + 4], edx
lea edx, [ebp - 0x18]
push edx
mov dword [eax + 8], ecx
call fcn.005a6a18
mov eax, dword [ebp - 0x18]
add esp, 0x14
mov ecx, ebx
push eax
call fcn.0050c380
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 2
call fcn.00401070
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp - 0x40]
mov edi, dword [ebp - 0x1c]
mov eax, dword [0x6697fc]
test eax, eax
mov eax, dword [esi]
je 0x50e0d2
test eax, eax
je 0x50e0ab
mov eax, dword [ebp + 0x10]
jmp 0x50e0b5
mov edi, dword [ebp - 0x1c]
mov ebx, dword [ebp - 0x40]
mov esi, dword [ebp + 0xc]
jmp 0x50e08c
mov eax, dword [ebp - 0x5c]
test eax, eax
jne 0x50e0b5
lea eax, [ebp - 0x58]
push 0
push 0
push 3
push 0
push 1
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp + 8], esi
jmp 0x50e14f
test eax, eax
je 0x50e0db
mov eax, dword [ebp + 0x10]
jmp 0x50e0e5
mov eax, dword [ebp - 0x5c]
test eax, eax
jne 0x50e0e5
lea eax, [ebp - 0x58]
push eax
lea ecx, [ebp - 0x24]
call fcn.005add0d
mov ecx, dword [ebp - 0x24]
push 0x3f
push ecx
call fcn.00591740
add esp, 8
test eax, eax
jne 0x50e118
mov edx, dword [ebp - 0x24]
push eax
push eax
push 3
push eax
push 1
push 0xc0000000
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
jmp 0x50e142
cmp dword [esi], 0
je 0x50e122
mov eax, dword [ebp + 0x10]
jmp 0x50e12c
mov eax, dword [ebp - 0x5c]
test eax, eax
jne 0x50e12c
lea eax, [ebp - 0x58]
push 0
push 0
push 3
push 0
push 1
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
lea ecx, [ebp - 0x24]
mov dword [ebp + 8], esi
call fcn.005adc4d
cmp esi, 0xffffffff
jne 0x50e1b5
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
lea eax, [ebp - 0x18]
push esi
push str.Error_opening_local_file_for_writing__errcode___ld._n
push eax
call fcn.005a6a18
mov ecx, dword [ebp - 0x18]
add esp, 0xc
push ecx
mov ecx, edi
call fcn.0050c380
mov edx, dword [0x692c60]
mov ecx, dword [edi + 0x6c]
push edx
call fcn.00518410
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 1
call fcn.00401070
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0
call fcn.005adc4d
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 ecx, dword [ebp + 8]
lea eax, [ebp - 0x3c]
push eax
push ecx
lea esi, [edi + 0x98]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [esi], eax
mov dword [esi + 4], 0
cmp dword [esi], 0xffffffff
jne 0x50e21a
mov eax, dword [esi + 4]
test eax, eax
jne 0x50e21a
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x50e21a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea edx, [ebp - 0x18]
push str.Error_during_GetFileSize____errcode___d._n
push edx
call fcn.005a6a18
mov eax, dword [ebp - 0x18]
add esp, 0xc
mov ecx, edi
push eax
call fcn.0050c380
mov dword [esi], 0
mov dword [esi + 4], 0
jmp 0x50e237
mov ecx, dword [ebp - 0x3c]
push 1
push 0
push 0
push ecx
call fcn.00593f90
mov ecx, dword [esi]
add ecx, eax
mov dword [esi], ecx
mov eax, dword [esi + 4]
adc eax, edx
mov dword [esi + 4], eax
mov edx, dword [edi + 0x70]
mov eax, dword [edx]
test eax, eax
je 0x50e252
push esi
push 0x147b
push 0x111
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, dword [esi + 4]
mov edx, dword [edi + 0x20]
mov ecx, dword [esi]
push eax
mov eax, dword [edx + 0x10]
push ecx
push eax
lea ecx, [ebp - 0x18]
push str.Size_of__s_is__I64d_n
push ecx
call fcn.005a6a18
mov edx, dword [ebp - 0x18]
add esp, 0x14
mov ecx, edi
push edx
call fcn.0050c380
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x48]
push 2
push eax
push 0
push ecx
mov dword [ebp - 0x48], 0
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov edx, dword [ebp + 0xc]
cmp dword [edx], 0
je 0x50e2a2
mov eax, dword [ebp + 0x10]
jmp 0x50e2ac
mov eax, dword [ebp - 0x5c]
test eax, eax
jne 0x50e2ac
lea eax, [ebp - 0x58]
push 0
push 0
lea ecx, [ebp - 0x50]
push 0
push ecx
push eax
call fcn.0059249a
add esp, 0x14
xor esi, esi
cmp ebx, esi
je 0x50e5c4
mov edx, dword [ebp + 0xc]
cmp dword [edx], esi
je 0x50e2d5
mov eax, dword [ebp + 0x10]
jmp 0x50e2db
mov eax, dword [edi + 0x20]
mov eax, dword [eax + 0x10]
mov ecx, dword [ebx + 0x10]
push eax
push ecx
lea edx, [ebp - 0x18]
push str.Adding_file__ls_to_file__ls._n
push edx
call fcn.005a6a18
mov eax, dword [ebp - 0x18]
add esp, 0x10
mov ecx, edi
push eax
call fcn.0050c380
cmp dword [ebx + 0x14], esi
je 0x50e418
mov ecx, dword [ebx + 0x24]
mov eax, dword [ebx + 0x10]
lea edx, [ebp - 0x50]
push ecx
mov ecx, dword [ebp + 8]
push edx
push eax
push ecx
mov ecx, edi
call fcn.0050ec20
mov esi, eax
test esi, esi
je 0x50e424
cmp esi, 0x757c
je 0x50e424
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, dword [ebp + 0x10]
test ebx, ebx
je 0x50e3eb
push ebx
call fcn.00591712
add esp, 4
test eax, eax
je 0x50e3eb
mov eax, dword [ebp - 0x5c]
test eax, eax
jne 0x50e362
lea eax, [ebp - 0x58]
push ebx
push eax
call fcn.00591c1f
add esp, 8
test eax, eax
je 0x50e3eb
mov eax, dword [ebp - 0x5c]
test eax, eax
jne 0x50e37a
lea eax, [ebp - 0x58]
push 0
push eax
push ebx
call fcn.00473cb0
add esp, 0xc
test eax, eax
jne 0x50e3b7
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [edi + 0x20]
lea edx, [ebp - 0x18]
mov ecx, dword [eax + 0x10]
push ecx
push ebx
push str.Can_not_rename_back_file__ls_to__ls__errno___ld_n
push edx
call fcn.005a6a18
mov eax, dword [ebp - 0x18]
add esp, 0x14
mov ecx, edi
push eax
call fcn.0050c380
jmp 0x50e3eb
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [edi + 0x20]
push eax
lea eax, [ebp - 0x18]
mov edx, dword [ecx + 0x10]
push edx
push ebx
push str.Rename_back_file__ls_to__ls._n
push eax
call fcn.005a6a18
mov ecx, dword [ebp - 0x18]
add esp, 0x14
push ecx
mov ecx, edi
call fcn.0050c380
mov edx, dword [ebp + 0xc]
mov dword [edx], 0
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 1
call fcn.00401070
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0
call fcn.005adc4d
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
push str.This_file_has_flag_isCmpleted__0__it_has_not_been_added._n
mov ecx, edi
call fcn.0050c380
mov eax, dword [ebx + 0x10]
push eax
call fcn.00593113
mov ecx, dword [ebx + 0x10]
add esp, 4
cmp eax, 0xffffffff
push ecx
jne 0x50e440
push str.Could_not_delete_temp_file__ls_n
jmp 0x50e445
push str.Deleting_temp_file__s_n
lea edx, [ebp - 0x18]
push edx
call fcn.005a6a18
mov eax, dword [ebp - 0x18]
add esp, 0xc
mov ecx, edi
push eax
call fcn.0050c380
mov ecx, dword [ebx + 0x40]
lea edx, [ebp - 0x44]
push ecx
push 0x665fac
push edx
call fcn.005920ea
mov eax, dword [edi + 0x74]
mov ebx, dword [ebx + 0x38]
add esp, 0xc
test eax, eax
je 0x50e2bf
mov esi, dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
lea ecx, [ebp - 0x44]
push ecx
push eax
call esi
lea edx, [ebp - 0x44]
lea eax, [ebp - 0x18]
push edx
push str.Deleting_record__s_from_registry_n
push eax
call fcn.005a6a18
mov ecx, dword [0x68d01c]
add esp, 0xc
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x24], ecx
lea edx, [ebp - 0x44]
lea eax, [ebp - 0x24]
push edx
push str.sk_s
push eax
mov byte [ebp - 4], 0xf
call fcn.005a6a18
mov eax, dword [ebp - 0x24]
add esp, 0xc
lea ecx, [ebp - 0x28]
lea edx, [ebp - 0x38]
push ecx
mov ecx, dword [edi + 0x74]
push edx
push 0
push 0
push eax
push ecx
mov dword [ebp - 0x28], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x50e54d
mov eax, dword [ebp - 0x38]
test eax, eax
jbe 0x50e54d
mov ecx, dword [edi + 0x74]
lea edx, [ebp - 0x28]
lea eax, [ebp - 0x20]
push edx
push eax
push 0
push 0
push 0x67eedc
push ecx
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x28], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edx, dword [ebp - 0x38]
mov eax, dword [ebp - 0x20]
mov ecx, dword [edi + 0x74]
add eax, edx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x24]
push eax
push ecx
call esi
mov eax, dword [edi + 0x74]
lea edx, [ebp - 0x20]
push 4
push edx
push 4
push 0
push 0x67eedc
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [ebp - 0x18]
push ecx
mov ecx, edi
call fcn.0050c380
xor eax, eax
cmp ebx, eax
mov dword [ebp - 0x84], eax
mov dword [ebp - 0x7c], eax
mov dword [ebp - 0x78], eax
je 0x50e572
mov edx, dword [ebx + 0x40]
mov dword [ebp - 0x80], edx
jmp 0x50e579
mov dword [ebp - 0x80], 0xffffffff
mov edx, dword [edi + 0x74]
lea ecx, [ebp - 0x84]
push 0x10
push ecx
push eax
push eax
push 0x66c554
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [ebp - 0x80]
lea ecx, [ebp - 0x18]
push eax
push str.Updating_record_with_ID_0__set_nextID__d_n
push ecx
call fcn.005a6a18
mov edx, dword [ebp - 0x18]
add esp, 0xc
mov ecx, edi
push edx
call fcn.0050c380
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 2
call fcn.005adc4d
jmp 0x50e2bf
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x3c]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [edi + 0x48], eax
mov dword [edi + 0x4c], esi
cmp dword [edi + 0x48], 0xffffffff
jne 0x50e611
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
call ebx
cmp eax, esi
je 0x50e611
call ebx
push eax
lea edx, [ebp - 0x18]
push str.Error_during_GetFileSize____errcode___ld._n
push edx
call fcn.005a6a18
mov eax, dword [ebp - 0x18]
add esp, 0xc
mov ecx, edi
push eax
call fcn.0050c380
mov dword [edi + 0x48], esi
mov dword [edi + 0x4c], esi
jmp 0x50e62e
mov ecx, dword [ebp - 0x3c]
push 1
push esi
push esi
push ecx
call fcn.00593f90
mov ecx, dword [edi + 0x48]
add ecx, eax
mov dword [edi + 0x48], ecx
mov eax, dword [edi + 0x4c]
adc eax, edx
mov dword [edi + 0x4c], eax
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, edi
call fcn.00511350
mov eax, dword [edi + 0x4c]
mov ecx, dword [edi + 0x48]
push eax
push ecx
lea edx, [ebp - 0x18]
push str.Rebuilding_complete__real_size___I64d_n
push edx
call fcn.005a6a18
mov eax, dword [ebp - 0x18]
add esp, 0x10
mov ecx, edi
push eax
call fcn.0050c380
cmp dword [edi], esi
je 0x50e9cd
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x50e9cd
mov ecx, eax
push ecx
call fcn.00591712
add esp, 4
test eax, eax
je 0x50e9cd
mov edx, dword [ebp + 0xc]
cmp dword [edx], 0
jne 0x50e9cd
mov eax, dword [ebp - 0x5c]
test eax, eax
jne 0x50e69f
lea eax, [ebp - 0x58]
mov ecx, dword [ebp + 0x10]
push ecx
push eax
call fcn.00591c1f
add esp, 8
test eax, eax
je 0x50e9cd
mov esi, dword [ebp + 0x10]
push 1
push esi
call fcn.004740e0
add esp, 8
test eax, eax
je 0x50e6ff
push esi
lea ecx, [ebp + 8]
call fcn.005add0d
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.005a6a18
mov ecx, dword [ebp - 0x18]
add esp, 0xc
push ecx
mov ecx, edi
call fcn.0050c380
lea ecx, [ebp + 8]
mov byte [ebp - 4], 2
call fcn.005adc4d
mov eax, dword [ebp - 0x5c]
test eax, eax
je 0x50e70d
mov ebx, eax
mov dword [ebp - 0x38], ebx
jmp 0x50e715
lea edx, [ebp - 0x58]
mov dword [ebp - 0x38], edx
mov ebx, edx
mov eax, dword [ebp + 0x10]
push 1
push eax
push ebx
call fcn.00473cb0
add esp, 0xc
mov dword [ebp - 0x28], eax
test eax, eax
jne 0x50e981
mov ecx, dword [0x68d01c]
mov dword [ebp + 8], ecx
mov byte [ebp - 4], 0x11
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [ebp + 0x10]
push eax
push esi
push ebx
lea edx, [ebp + 8]
push str.Can_not_rename_temp_file__s_to__s__error___ld_n
push edx
call fcn.005a6a18
mov eax, dword [ebp + 8]
add esp, 0x14
mov ecx, edi
push eax
call fcn.0050c380
xor ebx, ebx
push esi
lea ecx, [ebp - 0x68]
mov dword [ebp - 0x68], ebx
mov dword [ebp - 0x60], ebx
mov word [ebp - 0x64], bx
call fcn.00401ee0
mov eax, dword [ebp - 0x68]
mov byte [ebp - 4], 0x12
cmp eax, ebx
jne 0x50e787
lea eax, [ebp - 0x64]
push 0x5c
push eax
call fcn.00591662
add esp, 8
cmp eax, ebx
jne 0x50e7b3
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 0x11
call fcn.00401070
lea ecx, [ebp + 8]
mov byte [ebp - 4], 2
call fcn.005adc4d
jmp 0x50e93a
add eax, 2
mov word [eax], bx
mov eax, dword [ebp - 0x68]
cmp eax, ebx
jne 0x50e7c3
lea eax, [ebp - 0x64]
push 1
push eax
call fcn.00474270
add esp, 8
cmp eax, ebx
jne 0x50e91b
push str.Folder_does_not_exist__Creating..._n
mov ecx, edi
call fcn.0050c380
mov eax, dword [ebp - 0x68]
cmp eax, ebx
jne 0x50e7ec
lea eax, [ebp - 0x64]
add eax, 6
push 0x5c
push eax
call fcn.00591b7f
add esp, 8
mov esi, eax
xor ebx, ebx
cmp esi, ebx
je 0x50e906
mov eax, dword [ebp - 0x68]
cmp eax, ebx
jne 0x50e810
lea eax, [ebp - 0x64]
push eax
lea ecx, [ebp - 0x74]
mov dword [ebp - 0x74], ebx
mov dword [ebp - 0x6c], ebx
mov word [ebp - 0x70], bx
call fcn.00401ee0
mov ecx, dword [ebp - 0x74]
mov byte [ebp - 4], 0x13
cmp ecx, ebx
jne 0x50e831
lea ecx, [ebp - 0x70]
mov eax, dword [ebp - 0x68]
cmp eax, ebx
jne 0x50e83b
lea eax, [ebp - 0x64]
mov edx, esi
push 1
sub edx, eax
sar edx, 1
mov word [ecx + edx*2], bx
lea ecx, [ebp - 0x74]
call fcn.00401ed0
push eax
call fcn.00474270
add esp, 8
cmp eax, ebx
jne 0x50e8e5
push 1
lea ecx, [ebp - 0x74]
call fcn.00401ed0
push eax
call fcn.00474450
add esp, 8
cmp eax, ebx
jne 0x50e8e5
lea ecx, [ebp - 0x74]
call fcn.00401ed0
push eax
lea ecx, [ebp - 0x40]
call fcn.005add0d
mov byte [ebp - 4], 0x14
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
mov eax, dword [ebp - 0x40]
push eax
lea ecx, [ebp + 8]
push str.Can_not_create_folder__s__error___ld_n
push ecx
call fcn.005a6a18
mov edx, dword [ebp + 8]
add esp, 0x10
mov ecx, edi
push edx
call fcn.0050c380
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 0x13
call fcn.005adc4d
lea ecx, [ebp - 0x74]
mov byte [ebp - 4], 0x12
call fcn.00401070
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 0x11
call fcn.00401070
lea ecx, [ebp + 8]
mov byte [ebp - 4], 2
call fcn.005adc4d
jmp 0x50e935
add esi, 2
push 0x5c
push esi
call fcn.00591b7f
add esp, 8
lea ecx, [ebp - 0x74]
mov esi, eax
mov byte [ebp - 4], 0x12
call fcn.00401070
jmp 0x50e7fe
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp - 0x38]
push 1
push eax
push ecx
call fcn.00473cb0
add esp, 0xc
mov dword [ebp - 0x28], eax
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 0x11
call fcn.00401070
lea ecx, [ebp + 8]
mov byte [ebp - 4], 2
call fcn.005adc4d
xor ebx, ebx
cmp dword [ebp - 0x28], ebx
jne 0x50e981
mov edx, dword [ebp + 0x10]
lea ecx, [ebp + 8]
push edx
call fcn.005add0d
mov byte [ebp - 4], 0x15
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [edi + 0x20]
push eax
mov eax, dword [ebp + 8]
mov edx, dword [ecx + 0x10]
push eax
push edx
lea eax, [ebp - 0x18]
push str.Can_not_rename_temp_file__s_to__s__errno___ld_n
push eax
call fcn.005a6a18
mov ecx, dword [ebp - 0x18]
add esp, 0x14
push ecx
mov ecx, edi
call fcn.0050c380
mov byte [ebp - 4], 2
lea ecx, [ebp + 8]
jmp 0x50e9c8
mov edx, dword [ebp + 0x10]
lea ecx, [ebp + 8]
push edx
call fcn.005add0d
mov ecx, dword [edi + 0x20]
mov eax, dword [ebp + 8]
push eax
lea eax, [ebp - 0x18]
mov edx, dword [ecx + 0x10]
mov byte [ebp - 4], 0x16
push edx
push str.Rename_temp_file__s_to__s._n
push eax
call fcn.005a6a18
mov ecx, dword [ebp - 0x18]
add esp, 0x10
push ecx
mov ecx, edi
call fcn.0050c380
mov edx, dword [ebp + 0xc]
mov byte [ebp - 4], 2
lea ecx, [ebp + 8]
mov dword [edx], 1
call fcn.005adc4d
mov esi, dword [ebp + 0xc]
cmp dword [esi], 0
je 0x50eb76
mov eax, dword [ebp + 0x10]
push eax
call fcn.0050d5b0
mov eax, dword [esi]
add esp, 4
test eax, eax
je 0x50eb76
mov eax, dword [0x691b84]
lea ecx, [ebp + 0x10]
lea edx, [ebp + 0xc]
push ecx
push edx
push 0
push 0
push str.bSaveLogs
push eax
mov dword [ebp + 0x10], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x50ea21
cmp dword [ebp + 0xc], 1
je 0x50eb76
mov ecx, dword [edi + 0x6c]
call fcn.005182d0
mov eax, dword [0x691b58]
test eax, eax
jne 0x50ea37
mov eax, 0x691b5c
push eax
call fcn.005943f2
mov eax, dword [edi + 0x6c]
add esp, 4
add eax, 4
cmp word [eax], 0
je 0x50eb76
xor ecx, ecx
mov dword [ebp - 0x68], ecx
mov dword [ebp - 0x60], ecx
mov word [ebp - 0x64], cx
mov edx, 0x665f68
mov byte [ebp - 4], 0x17
test edx, edx
je 0x50eb3a
test eax, eax
je 0x50eb3a
xor esi, esi
push eax
lea ecx, [ebp - 0x74]
mov dword [ebp - 0x74], esi
mov dword [ebp - 0x6c], esi
mov word [ebp - 0x70], si
call fcn.00401ee0
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 0x18
call fcn.00401070
push esi
push 0x665f68
lea ecx, [ebp - 0x80]
mov dword [ebp - 0x80], esi
mov dword [ebp - 0x78], esi
mov word [ebp - 0x7c], si
call fcn.00402800
mov eax, dword [ebp - 0x74]
mov byte [ebp - 4], 0x19
cmp eax, esi
jne 0x50eabc
lea eax, [ebp - 0x70]
mov esi, dword [ebp - 0x78]
push eax
call fcn.00591712
lea ebx, [eax + esi + 2]
lea esi, [ebx + ebx]
push esi
call fcn.005a9fe9
mov edi, eax
add esp, 8
test edi, edi
mov dword [ebp - 0x68], edi
je 0x50eb1f
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 - 0x74]
test eax, eax
jne 0x50eafa
lea eax, [ebp - 0x70]
mov ecx, dword [ebp - 0x80]
test ecx, ecx
jne 0x50eb04
lea ecx, [ebp - 0x7c]
push eax
mov eax, dword [ebp - 0x68]
push ecx
push ebx
push eax
call fcn.005916a2
mov ecx, dword [ebp - 0x68]
push ecx
call fcn.00591712
add esp, 0x14
mov dword [ebp - 0x60], eax
lea ecx, [ebp - 0x80]
mov byte [ebp - 4], 0x18
call fcn.00401070
lea ecx, [ebp - 0x74]
mov byte [ebp - 4], 0x17
call fcn.00401070
mov ecx, dword [ebp - 0x68]
test ecx, ecx
mov eax, ecx
jne 0x50eb43
lea eax, [ebp - 0x64]
push 0x5c
push eax
call fcn.00591662
add esp, 8
test eax, eax
je 0x50eb6a
mov word [eax], 0
mov eax, dword [ebp - 0x68]
test eax, eax
jne 0x50eb61
lea eax, [ebp - 0x64]
push eax
call fcn.00593dbb
add esp, 4
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 2
call fcn.00401070
mov eax, dword [0x691b58]
test eax, eax
jne 0x50eb84
mov eax, 0x691b5c
push eax
call fcn.005943f2
mov edx, dword [ebp - 0x1c]
add esp, 4
mov eax, dword [edx + 0x70]
mov eax, dword [eax]
test eax, eax
je 0x50ebac
push 0
push 0x147d
push 0x111
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 1
call fcn.00401070
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 0
call fcn.005adc4d
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