Function at 0x1009ae5c
Capabilities:
Check if file exists
Move file

Disassembly:
mov eax, 0x100c2f16
call fcn.100a0664
sub esp, 0x3c
push ebx
push esi
push edi
mov edi, ecx
mov ecx, dword [edi + 8]
mov eax, dword [ecx]
xor ebx, ebx
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x2c], edi
mov dword [ebp - 4], ebx
call dword [eax + 0x18]
push dword [edi + 0x1c]
mov dword [edi + 8], ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, edi
call fcn.1009ae0e
mov eax, dword [edi + 0xc]
lea ecx, [eax + 0x1c]
mov eax, dword [ecx + 0x10]
sub eax, dword [ecx + 0xc]
sar eax, 2
cmp ebx, eax
jae 0x1009aed2
push ebx
call fcn.1000b27e
mov esi, dword [eax]
push str.unpack
lea ecx, [esi + 0x34]
call fcn.1000272b
push esi
mov ecx, edi
test eax, eax
jne 0x1009aeca
call fcn.1009acf6
jmp 0x1009aecf
call fcn.10099a48
inc ebx
jmp 0x1009ae94
mov eax, dword [edi + 0xc]
add eax, 0x34
push eax
mov ecx, edi
call fcn.10099b25
lea eax, [ebp - 0x20]
push 0
push eax
call fcn.100449b3
pop ecx
pop ecx
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 1
call fcn.1006079b
push str.Toolbar.dll
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 2
call fcn.100057f4
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 3
call fcn.1002c1d4
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffffff0
mov byte [ebp - 4], 2
call fcn.10001ccd
push str.Helper.dll
lea ecx, [ebp - 0x1c]
call fcn.100057f4
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 4
call fcn.1002c1d4
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffffff0
mov byte [ebp - 4], 2
call fcn.10001ccd
and dword [ebp - 0x1c], 0
mov edi, str..new
mov eax, dword [ebp - 0x38]
sub eax, dword [ebp - 0x3c]
lea ecx, [ebp - 0x48]
sar eax, 2
cmp dword [ebp - 0x1c], eax
jae 0x1009b064
push dword [ebp - 0x1c]
call fcn.1000b27e
push eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.10004f80
add esp, 0xc
push edi
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x24]
push eax
mov byte [ebp - 4], 5
call fcn.1000c4dd
add esp, 0xc
push dword [eax]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov ecx, dword [ebp - 0x24]
add ecx, 0xfffffff0
mov esi, eax
call fcn.10001ccd
test esi, esi
je 0x1009b04d
push edi
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.1000c4dd
mov eax, dword [eax]
add esp, 0xc
push 9
push dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov ecx, dword [ebp - 0x28]
mov ebx, eax
neg ebx
sbb bl, bl
add ecx, 0xfffffff0
inc bl
call fcn.10001ccd
test bl, bl
je 0x1009b04d
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x18]
call fcn.100033f5
push 0x104
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 6
call fcn.10003413
push eax
call dword [sym.imp.SHLWAPI.dll_PathStripPathW]
push 0xffffffffffffffff
lea ecx, [ebp - 0x18]
call fcn.100029b7
push ecx
lea eax, [ebp - 0x18]
mov dword [ebp - 0x30], esp
mov ecx, esp
push eax
call fcn.100033f5
mov ecx, dword [ebp - 0x2c]
call fcn.1009a851
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
mov byte [ebp - 4], 5
call fcn.10001ccd
jmp 0x1009afbe
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
mov byte [ebp - 4], 2
call fcn.10001ccd
inc dword [ebp - 0x1c]
jmp 0x1009af5e
call fcn.1000ce8d
push dword [ebp - 0x48]
call fcn.1009f549
pop ecx
mov ecx, dword [ebp - 0x20]
add ecx, 0xfffffff0
mov byte [ebp - 4], 0
call fcn.10001ccd
push ecx
mov ecx, esp
mov dword [ebp - 0x30], esp
push 0x100c503c
call fcn.100057f4
push 1
push ecx
mov ecx, esp
mov dword [ebp - 0x2c], esp
push str.JustUpdated
mov byte [ebp - 4], 7
call fcn.100057f4
mov byte [ebp - 4], 0
call fcn.10044774
add esp, 0xc
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret