Function at 0x587830
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x690ed8
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x7851cc]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 4], 0
mov edi, 7
mov dword [ebp - 0x18], 0
xor eax, eax
mov dword [ebp - 0x14], edi
mov word [ebp - 0x28], ax
cmp dword [ebp + 0x34], 8
lea edx, [ebp + 0x20]
mov esi, dword [ebp + 0x30]
cmovae edx, dword [ebp + 0x20]
mov byte [ebp - 4], 2
test esi, esi
je 0x5878b7
or ecx, 0xffffffff
lea eax, [esi - 1]
cmp eax, ecx
cmovb ecx, eax
cmp word [edx + ecx*2], 0x5c
lea ecx, [edx + ecx*2]
je 0x5878b1
cmp ecx, edx
je 0x5878b7
sub ecx, 2
cmp word [ecx], 0x5c
jne 0x5878a4
sub ecx, edx
sar ecx, 1
jmp 0x5878ba
or ecx, 0xffffffff
cmp ecx, 0xffffffff
je 0x587904
xor eax, eax
mov dword [ebp - 0x34], 0
cmp esi, ecx
mov word [ebp - 0x44], ax
lea eax, [ebp + 0x20]
mov dword [ebp - 0x30], 7
cmovb ecx, esi
cmp dword [ebp + 0x34], 8
push ecx
cmovae eax, dword [ebp + 0x20]
lea ecx, [ebp - 0x44]
push eax
call fcn.0045e220
lea eax, [ebp - 0x44]
push eax
lea ecx, [ebp - 0x28]
call fcn.00450260
lea ecx, [ebp - 0x44]
call fcn.00448420
mov edi, dword [ebp - 0x14]
cmp edi, 8
lea eax, [ebp - 0x28]
push 0
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.00652b04
add esp, 8
test eax, eax
je 0x587951
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
push str.Dest_Does_not_exists__S
push 0
push 4
push str.AdobeGCUpdaterCFU
push dword [ebx + 4]
call fcn.0047e390
lea eax, [ebp - 0x28]
mov ecx, esp
push eax
call fcn.004484e0
mov ecx, ebx
call fcn.0058c090
cmp dword [ebp + 0x34], 8
lea eax, [ebp + 0x20]
cmovae eax, dword [ebp + 0x20]
push eax
call fcn.00653135
add esp, 4
lea ecx, [ebp + 0x20]
cmp dword [ebp + 0x34], 8
lea eax, [ebp + 8]
cmovae ecx, dword [ebp + 0x20]
cmp dword [ebp + 0x1c], 8
push ecx
cmovae eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
jne 0x5879c3
cmp dword [ebp + 0x34], 8
lea edi, [ebp + 0x20]
lea esi, [ebp + 8]
cmovae edi, dword [ebp + 0x20]
cmp dword [ebp + 0x1c], 8
cmovae esi, dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
push esi
push str.File_Copy_From__S_to__S_Failed_Error___d
push 0
push 4
push str.AdobeGCUpdaterCFU
push dword [ebx + 4]
call fcn.0047e390
add esp, 0x20
xor bl, bl
jmp 0x5879f6
cmp dword [ebp + 0x34], 8
lea ecx, [ebp + 0x20]
lea eax, [ebp + 8]
cmovae ecx, dword [ebp + 0x20]
cmp dword [ebp + 0x1c], 8
push ecx
cmovae eax, dword [ebp + 8]
push eax
push str.File_Copy_Succeeded_Src___S__Dst___S
push 0
push 4
push str.AdobeGCUpdaterCFU
push dword [ebx + 4]
call fcn.0047e390
add esp, 0x1c
mov bl, 1
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x587a30
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x587a26
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x587ae4
push edx
push ecx
call fcn.0062706d
add esp, 8
mov edx, dword [ebp + 0x1c]
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
cmp edx, 8
jb 0x587a7a
mov ecx, dword [ebp + 8]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x587a70
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x587ae4
push edx
push ecx
call fcn.0062706d
add esp, 8
mov edx, dword [ebp + 0x34]
xor eax, eax
mov dword [ebp + 0x18], 0
mov dword [ebp + 0x1c], 7
mov word [ebp + 8], ax
cmp edx, 8
jb 0x587ac4
mov ecx, dword [ebp + 0x20]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x587aba
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x587ae4
push edx
push ecx
call fcn.0062706d
add esp, 8
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0062702c
mov esp, ebp
pop ebp
ret 0x30
call fcn.00646804
int3