Function at 0x43fd40
Capabilities:
Check internet connectivity via wininet
Create thread
Get common file path
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49e4dd
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x4d7200]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x48], edi
push 0
lea eax, [ebp - 0x34]
mov dword [ebp - 0x34], 0
push eax
call dword [sym.imp.WININET.dll_InternetGetConnectedState]
test eax, eax
jne 0x43fd8f
or eax, 0xffffffff
jmp 0x44070e
push 0
push 0x4c033c
sub esp, 0x10
lea ecx, [edi + 0x5b0]
push 0
push str.Checking_for_updates__please_wait_...
call fcn.004192c0
mov ecx, eax
call fcn.0041a380
sub esp, 8
lea ecx, [edi + 0x5b0]
lea esi, [edi + 0x628]
push 0
push 0xffffffffffffffba
call fcn.0041a070
mov ecx, eax
call fcn.0041a580
test esi, esi
je 0x43fe00
push 0
push 0
push dword [esi + 0x230]
push 0x40bb20
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x43fe00
cmp eax, 0xffffffff
je 0x43fe00
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
nop
push 1
mov ecx, edi
call fcn.004284d0
test eax, eax
jne 0x43fe00
sub esp, 0x10
xor edx, edx
mov ecx, str.https:__www.carifred.com_diskcopy_checkversion.php
push 6
call fcn.0041e8b0
mov esi, eax
mov dword [ebp - 0x30], esi
mov dword [ebp - 4], 0
mov eax, dword [edi + 0x5b8]
mov dword [ebp - 0x44], eax
test esi, esi
je 0x43feb7
lea ebx, [edi + 0x628]
mov eax, dword [esi + 0x20]
test eax, eax
jne 0x43fe7c
mov eax, dword [esi + 0x1c]
cmp eax, 3
je 0x43fe96
cmp eax, 4
je 0x43fe96
push 0
mov ecx, edi
call fcn.004284d0
test eax, eax
je 0x43fe96
mov eax, dword [edi + 0x22c]
cmp eax, 0xfffffffa
je 0x43fe96
cmp dword [edi + 0x25c], ebx
jne 0x43fe41
cmp eax, dword [ebp - 0x44]
jne 0x43fe41
jmp 0x43fe96
cmp eax, 7
je 0x43fe96
mov dword [esi + 0x1c], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov eax, dword [esi + 0x20]
test eax, eax
je 0x43ff11
cmp eax, 7
je 0x43ff11
mov dword [esi + 0x1c], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
lea ecx, [edi + 0x5b0]
call fcn.00419810
or edi, 0xffffffff
test esi, esi
je 0x44070c
mov dword [esi + 0x20], 3
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x4406cd
cmp eax, 0xffffffff
je 0x4406cd
push 0
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x4406cd
call fcn.00403550
test al, al
jne 0x43fed4
push 1
push 0xa
call dword [sym.imp.KERNEL32.dll_SleepEx]
jmp 0x43fed4
xorps xmm0, xmm0
mov dword [ebp - 0x18], 0
movq qword [ebp - 0x20], xmm0
mov dword [ebp - 0x20], 0
mov byte [ebp - 0x18], 1
movq qword [ebp - 0x2c], xmm0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x2c], 0
mov byte [ebp - 0x24], 1
mov byte [ebp - 4], 2
test byte [esi + 0x24], 4
jne 0x43ff5e
mov dword [ebp - 0x38], 0
xor ebx, ebx
jmp 0x43ff7f
mov eax, dword [esi + 0x40]
mov dword [ebp - 0x38], eax
test eax, eax
jne 0x43ff6c
xor ebx, ebx
jmp 0x43ff7f
xor ebx, ebx
mov dword [ebp - 0x38], eax
cmp byte [eax], bl
je 0x43ff7f
mov dword [ebp - 0x38], eax
inc ebx
cmp byte [eax + ebx], 0
jne 0x43ff78
xor ecx, ecx
mov dword [ebp - 0x1c], 0
lea eax, [ebx + 2]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0048a28e
mov ecx, eax
lea edx, [ebx + 1]
xor eax, eax
mov dword [ebp - 0x20], ecx
add esp, 4
mov word [ecx + edx*2], ax
mov word [ecx], ax
mov eax, dword [ebp - 0x38]
test eax, eax
je 0x43ffde
test ebx, ebx
je 0x43ffde
push edx
push ecx
push ebx
push eax
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, dword [ebp - 0x20]
xor edx, edx
test eax, eax
setg byte [ebp - 0x18]
mov word [ecx + eax*2], dx
lea ecx, [ebp - 0x20]
push 3
call fcn.004028e0
mov ebx, dword [sym.imp.KERNEL32.dll_SleepEx]
mov dword [esi + 0x20], 3
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x440022
cmp eax, 0xffffffff
je 0x440022
push 0
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x440022
call fcn.00403550
test al, al
jne 0x43fff5
push 1
push 0xa
call ebx
jmp 0x43fff5
mov eax, dword [esi + 4]
mov ebx, dword [sym.imp.WININET.dll_InternetCloseHandle]
test eax, eax
je 0x440032
push eax
call ebx
mov eax, dword [esi]
test eax, eax
je 0x44003b
push eax
call ebx
mov eax, dword [esi + 0x40]
test eax, eax
je 0x44004b
push eax
call fcn.00489ed3
add esp, 4
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x440059
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
mov ecx, esi
call fcn.0041e820
xor esi, esi
xor ebx, ebx
mov dword [ebp - 0x30], esi
nop dword [eax + eax]
inc ebx
cmp byte [ebx + 0x4c07f8], 0
jne 0x440070
xor ecx, ecx
mov dword [ebp - 0x28], esi
lea eax, [ebx + 2]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0048a28e
mov edx, eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x2c], eax
lea ecx, [ebx + 1]
xor eax, eax
mov dword [ebp - 0x4c], edx
add esp, 4
mov word [edx + ecx*2], ax
mov word [edx], ax
test ebx, ebx
je 0x4400d1
push ecx
push edx
push ebx
push 0x4c07f8
push eax
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, dword [ebp - 0x4c]
xor edx, edx
mov word [ecx + eax*2], dx
mov ebx, dword [ebp - 0x20]
mov byte [ebp - 0x24], 1
test ebx, ebx
jne 0x4400f3
push 2
call fcn.0048a28e
mov ebx, eax
add esp, 4
xor eax, eax
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], eax
mov word [ebx], ax
mov edx, dword [ebp - 0x4c]
mov ecx, ebx
mov byte [ebp - 0x18], 1
call fcn.00403870
cmp eax, 1
jge 0x440119
lea ecx, [edi + 0x5b0]
call fcn.00419810
or edi, 0xffffffff
jmp 0x4406a7
cmp dword [edi + 0x208], esi
jne 0x44013c
push 2
call fcn.0048a28e
add esp, 4
mov dword [edi + 0x208], eax
xor ecx, ecx
mov word [eax], cx
mov dword [edi + 0x20c], ecx
mov ecx, dword [edi + 0x208]
xor eax, eax
mov byte [edi + 0x210], 1
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x20], esi
mov byte [ebp - 0x18], 0
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x50], eax
test ecx, ecx
je 0x440171
cmp word [ecx], ax
je 0x440171
inc eax
cmp word [ecx + eax*2], si
jne 0x440167
mov dword [ebp - 0x50], eax
xor ecx, ecx
inc ecx
cmp word [ecx*2 + str..download], si
jne 0x440173
lea ebx, [ecx + eax]
mov dword [ebp - 0x54], ecx
xor ecx, ecx
lea eax, [ebx + 1]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0048a28e
mov ecx, dword [ebp - 0x40]
add esp, 4
mov dword [ebp - 0x38], eax
mov edx, eax
test ecx, ecx
je 0x4401d1
movzx ecx, word [ecx]
mov eax, ecx
test cx, cx
je 0x4401d1
mov edi, dword [ebp - 0x40]
sub edi, edx
nop dword [eax + eax]
mov word [edx], cx
add edx, 2
movzx eax, word [edx + edi]
mov ecx, eax
test ax, ax
jne 0x4401c0
mov edi, str..download
mov ecx, 0x2e
sub edi, edx
nop dword [eax]
mov word [edx], cx
lea edx, [edx + 2]
movzx eax, word [edx + edi]
mov ecx, eax
test ax, ax
jne 0x4401e0
mov edi, dword [ebp - 0x48]
xor eax, eax
mov word [edx], ax
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x58]
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x18], 1
test eax, eax
je 0x440216
push eax
call fcn.00489ed3
add esp, 4
push str.Downloading_update...
push 0
lea ecx, [edi + 0x5b0]
call fcn.0041a070
mov edx, dword [ebp - 0x38]
sub esp, 0x10
mov ecx, str.https:__www.carifred.com_diskcopy_DiskCopy.exe
mov byte [ebp - 0x18], 1
push 2
call fcn.0041e8b0
mov ebx, eax
xor ecx, ecx
mov esi, ebx
mov dword [ebp - 0x30], esi
test ebx, ebx
je 0x44032b
nop
mov eax, dword [ebx + 0x20]
mov dword [ebp - 0x40], ecx
test eax, eax
jne 0x4402e6
mov eax, dword [ebx + 0x1c]
cmp eax, 3
je 0x440300
cmp eax, 4
je 0x440300
push 0
mov ecx, edi
call fcn.004284d0
test eax, eax
je 0x440300
mov eax, dword [edi + 0x22c]
cmp eax, 0xfffffffa
je 0x440300
lea ecx, [edi + 0x628]
cmp dword [edi + 0x25c], ecx
jne 0x4402a2
cmp eax, dword [ebp - 0x44]
je 0x440300
mov eax, dword [ebx + 0x20]
test eax, eax
je 0x4402c3
cmp eax, 7
je 0x4402c3
mov dword [ebx + 0x1c], 0
mov dword [ebx + 0x10], 0
mov dword [ebx + 0x14], 0
mov eax, dword [ebx + 0x18]
mov ecx, dword [ebp - 0x40]
cmp eax, ecx
je 0x440250
push 0
push eax
lea ecx, [edi + 0x5b0]
mov dword [ebp - 0x40], eax
call fcn.0041a070
mov ecx, dword [ebp - 0x40]
jmp 0x440250
cmp eax, 7
je 0x440300
mov dword [ebx + 0x1c], 0
mov dword [ebx + 0x10], 0
mov dword [ebx + 0x14], 0
mov eax, dword [ebx + 0x20]
test eax, eax
je 0x440321
cmp eax, 7
je 0x440321
mov dword [ebx + 0x1c], 0
mov dword [ebx + 0x10], 0
mov dword [ebx + 0x14], 0
cmp dword [ebx + 0x1c], 3
jb 0x4406a2
cmp dword [edi + 0x208], 0
jne 0x44034f
push 2
call fcn.0048a28e
add esp, 4
mov dword [edi + 0x208], eax
xor ecx, ecx
mov word [eax], cx
mov dword [edi + 0x20c], ecx
mov ebx, dword [edi + 0x208]
xor eax, eax
mov byte [edi + 0x210], 1
mov dword [ebp - 0x2c], 0
mov byte [ebp - 0x24], 0
mov dword [ebp - 0x28], 0
test ebx, ebx
je 0x440388
cmp word [ebx], ax
je 0x440388
nop dword [eax]
inc eax
cmp word [ebx + eax*2], 0
jne 0x440380
xor ecx, ecx
nop word [eax + eax]
inc ecx
cmp word [ecx*2 + str..old], 0
jne 0x440390
add eax, ecx
mov edx, 2
mov dword [ebp - 0x48], eax
xor ecx, ecx
inc eax
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0048a28e
add esp, 4
mov dword [ebp - 0x3c], eax
mov edx, eax
test ebx, ebx
je 0x4403e1
movzx ecx, word [ebx]
mov eax, ecx
test cx, cx
je 0x4403e1
sub ebx, edx
mov word [edx], cx
add edx, 2
movzx eax, word [edx + ebx]
mov ecx, eax
test ax, ax
jne 0x4403d0
mov ebx, str..old
mov ecx, 0x2e
sub ebx, edx
nop dword [eax]
mov word [edx], cx
lea edx, [edx + 2]
movzx eax, word [edx + ebx]
mov ecx, eax
test ax, ax
jne 0x4403f0
push dword [ebp - 0x4c]
mov ebx, dword [ebp - 0x3c]
xor eax, eax
mov word [edx], ax
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], eax
call fcn.00489ed3
add esp, 4
mov byte [ebp - 0x24], 1
cmp dword [edi + 0x208], 0
jne 0x440445
push 2
call fcn.0048a28e
add esp, 4
mov dword [edi + 0x208], eax
xor ecx, ecx
mov word [eax], cx
mov dword [edi + 0x20c], ecx
push 1
push ebx
push dword [edi + 0x208]
mov ebx, dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov byte [edi + 0x210], 1
call ebx
test eax, eax
je 0x440682
cmp dword [edi + 0x208], 0
jne 0x440489
push 2
call fcn.0048a28e
add esp, 4
mov dword [edi + 0x208], eax
xor ecx, ecx
mov word [eax], cx
mov dword [edi + 0x20c], ecx
push 1
push dword [edi + 0x208]
mov byte [edi + 0x210], 1
push dword [ebp - 0x38]
mov byte [ebp - 0x18], 1
call ebx
test eax, eax
je 0x440645
mov ebx, dword [ebp - 0x54]
mov byte [ebp - 0x24], 1
mov byte [ebp - 0x18], 0
add ebx, dword [ebp - 0x50]
jne 0x4404cc
mov eax, dword [ebp - 0x38]
cmp word [eax], bx
je 0x4404c9
inc ebx
cmp word [eax + ebx*2], 0
jne 0x4404c1
mov dword [ebp - 0x1c], ebx
cmp ebx, 0x104
jge 0x440504
xor ebx, ebx
push 0x20a
mov dword [ebp - 0x1c], ebx
call fcn.0048a28e
mov edi, eax
add esp, 4
xor eax, eax
mov dword [ebp - 0x20], edi
push dword [ebp - 0x38]
mov word [edi + 0x208], ax
mov word [edi], ax
call fcn.00489ed3
add esp, 4
jmp 0x440507
mov edi, dword [ebp - 0x20]
xor eax, eax
push edi
push eax
push eax
push 0x25
push eax
mov word [edi], ax
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov edx, dword [ebp - 0x3c]
mov edi, 0x4c0008
mov dword [ebp - 0x54], edx
mov byte [ebp - 0x18], 0
test ebx, ebx
jne 0x44053e
mov eax, dword [ebp - 0x20]
cmp word [eax], bx
je 0x44053b
inc ebx
cmp word [eax + ebx*2], 0
jne 0x440533
mov dword [ebp - 0x1c], ebx
xor eax, eax
lea eax, [eax + 1]
cmp word [eax*2 + str.cmd.exe__c_for__L__i_in__1__1__100__do_del__f__q__], 0
jne 0x440540
lea ecx, [eax + ebx]
xor eax, eax
cmp word [edx], ax
je 0x440562
inc eax
cmp word [edx + eax*2], 0
jne 0x440558
add ecx, eax
xor eax, eax
inc eax
cmp word [eax*2 + 0x4c0008], 0
jne 0x440564
add ecx, eax
mov edx, 2
mov dword [ebp - 0x48], ecx
lea eax, [ecx + 1]
xor ecx, ecx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0048a28e
mov ebx, dword [ebp - 0x20]
add esp, 4
mov dword [ebp - 0x44], eax
mov edx, eax
movzx ecx, word [ebx]
mov eax, ecx
test cx, cx
je 0x4405b6
sub ebx, edx
mov word [edx], cx
add edx, 2
movzx eax, word [edx + ebx]
mov ecx, eax
test ax, ax
jne 0x4405a5
mov ebx, str.cmd.exe__c_for__L__i_in__1__1__100__do_del__f__q__
mov ecx, 0x5c
sub ebx, edx
mov word [edx], cx
add edx, 2
movzx eax, word [edx + ebx]
mov ecx, eax
test ax, ax
jne 0x4405c2
mov eax, dword [ebp - 0x3c]
movzx eax, word [eax]
mov ecx, eax
test ax, ax
je 0x4405f9
mov edi, dword [ebp - 0x54]
mov word [edx], ax
lea edi, [edi + 2]
movzx eax, word [edi]
add edx, 2
test ax, ax
jne 0x4405e3
mov edi, 0x4c0008
mov eax, 0x22
nop
mov word [edx], ax
lea edi, [edi + 2]
movzx eax, word [edi]
lea edx, [edx + 2]
test ax, ax
jne 0x440600
push dword [ebp - 0x20]
xor eax, eax
mov word [edx], ax
call fcn.00489ed3
mov ebx, dword [ebp - 0x44]
add esp, 4
mov ecx, dword [ebp - 0x48]
mov edx, ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ecx
push 0
push 0
push 0
mov byte [ebp - 0x18], 1
call fcn.004082b0
mov edi, 1
jmp 0x4406a7
cmp dword [edi + 0x208], 0
jne 0x440669
push 2
call fcn.0048a28e
add esp, 4
mov dword [edi + 0x208], eax
xor ecx, ecx
mov word [eax], cx
mov dword [edi + 0x20c], ecx
mov eax, dword [ebp - 0x3c]
push 1
push dword [edi + 0x208]
mov byte [edi + 0x210], 1
push eax
mov byte [ebp - 0x24], 1
call ebx
push ecx
push 0x1c2
push 0x96
lea eax, [edi + 0x2a8]
mov ecx, edi
push eax
push 0
push str.The_update_failed._Please_try_again_later.
call fcn.00432b40
mov ebx, dword [ebp - 0x20]
xor edi, edi
mov eax, dword [ebp - 0x3c]
test eax, eax
je 0x4406b7
push eax
call fcn.00489ed3
add esp, 4
test ebx, ebx
je 0x43fec5
push ebx
call fcn.00489ed3
add esp, 4
jmp 0x43fec5
mov eax, dword [esi + 4]
mov ebx, dword [sym.imp.WININET.dll_InternetCloseHandle]
test eax, eax
je 0x4406dd
push eax
call ebx
mov eax, dword [esi]
test eax, eax
je 0x4406e6
push eax
call ebx
mov eax, dword [esi + 0x40]
test eax, eax
je 0x4406f6
push eax
call fcn.00489ed3
add esp, 4
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x440704
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
mov ecx, esi
call fcn.0041e820
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00489ec5
mov esp, ebp
pop ebp
ret 4