Function at 0x100021b1
Capabilities:
Delete directory
Delete file
Move file

Disassembly:
mov eax, 0x100549bf
call fcn.10048f38
sub esp, 0x874
push ebx
push esi
push edi
mov ecx, dword [ebp + 8]
test ecx, ecx
mov dword [ebp - 4], 1
je 0x100021db
call fcn.10001a7a
mov esi, eax
jmp 0x100021dd
xor esi, esi
mov al, byte [ebp + 0xf]
push 0
lea ecx, [ebp - 0x4c]
mov byte [ebp - 0x4c], al
call fcn.1002622b
push esi
call fcn.100493c0
pop ecx
push eax
push esi
lea ecx, [ebp - 0x4c]
call fcn.10027116
mov esi, 0x1006a584
push esi
mov byte [ebp - 4], 2
call fcn.100493c0
pop ecx
push eax
push esi
lea ecx, [ebp - 0x4c]
call fcn.100270bf
mov edi, str.toolbar.crc
push edi
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x80]
push eax
call fcn.1002abb5
add esp, 0xc
mov eax, dword [ebp - 0x7c]
test eax, eax
mov byte [ebp - 4], 3
mov ebx, 0x1005b4e8
jne 0x10002240
mov eax, ebx
push 0x1006a574
push eax
call fcn.10049a60
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x10002303
push esi
mov ebx, 0x400
lea eax, [ebp - 0x880]
push ebx
push eax
call fcn.100499cd
add esp, 0xc
test byte [esi + 0xc], 0x10
jne 0x100022f7
push esi
lea eax, [ebp - 0x480]
push ebx
push eax
call fcn.100499cd
add esp, 0xc
test byte [esi + 0xc], 0x10
jne 0x100022f7
lea eax, [ebp - 0x480]
push eax
call fcn.100493c0
and byte [ebp + eax - 0x481], 0
lea eax, [ebp - 0x480]
push eax
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.1002abb5
mov eax, dword [ebp - 0x24]
add esp, 0x10
cmp byte [ebp + 0x20], 0
je 0x100022d8
test eax, eax
jne 0x100022cb
mov eax, 0x1005b4e8
push 4
push 0
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
jmp 0x100022e8
test eax, eax
jne 0x100022e1
mov eax, 0x1005b4e8
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 1
lea ecx, [ebp - 0x28]
call fcn.1002622b
jmp 0x1000226d
push esi
call fcn.10049950
pop ecx
mov ebx, 0x1005b4e8
lea eax, [ebp + 0x10]
push eax
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x3c]
push eax
call fcn.1002ac61
add esp, 0xc
cmp byte [ebp + 0x20], 0
mov eax, dword [ebp - 0x38]
mov byte [ebp - 4], 4
je 0x10002337
test eax, eax
jne 0x1000232a
mov eax, ebx
push 4
push 0
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
jmp 0x10002344
test eax, eax
jne 0x1000233d
mov eax, ebx
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov al, byte [ebp + 0xf]
xor esi, esi
push esi
lea ecx, [ebp - 0x68]
mov byte [ebp - 0x68], al
call fcn.1002622b
push edi
call fcn.100493c0
pop ecx
push eax
push edi
lea ecx, [ebp - 0x68]
call fcn.10027116
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x28]
push eax
mov byte [ebp - 4], 5
call fcn.1002ac61
add esp, 0xc
push dword [0x1005b4ec]
lea ecx, [ebp - 0x3c]
push esi
push eax
mov byte [ebp - 4], 6
call fcn.10025e51
push 1
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 5
call fcn.1002622b
cmp byte [ebp + 0x20], 0
mov eax, dword [ebp - 0x38]
je 0x100023bb
cmp eax, esi
jne 0x100023af
mov eax, ebx
push 4
push esi
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
jmp 0x100023c8
cmp eax, esi
jne 0x100023c1
mov eax, ebx
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov esi, str.newversion.txt
push esi
call fcn.100493c0
pop ecx
push eax
push esi
lea ecx, [ebp - 0x68]
call fcn.10027116
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.1002ac61
add esp, 0xc
push dword [0x1005b4ec]
xor edi, edi
push edi
push eax
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 7
call fcn.10025e51
push 1
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 5
call fcn.1002622b
cmp byte [ebp + 0x20], 0
mov eax, dword [ebp - 0x38]
je 0x10002431
cmp eax, edi
jne 0x10002425
mov eax, ebx
push 4
push edi
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
jmp 0x1000243e
cmp eax, edi
jne 0x10002437
mov eax, ebx
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov al, byte [ebp + 0xf]
push edi
lea ecx, [ebp - 0x28]
mov byte [ebp - 0x28], al
call fcn.1002622b
mov byte [ebp - 0x8c], 0x5c
mov dword [ebp - 0x88], edi
mov dword [ebp - 0x84], edi
push str..
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 9
call fcn.1000101a
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp + 8]
mov byte [ebp - 4], 0xa
call fcn.10001907
mov ecx, dword [eax]
cmp ecx, edi
mov byte [ebp - 4], 0xb
je 0x10002496
call fcn.10001a7a
jmp 0x10002498
xor eax, eax
push eax
lea ecx, [ebp - 0x2d0]
call fcn.100189f1
lea ecx, [ebp - 0x18]
mov esi, eax
call fcn.100018f4
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 9
call fcn.100018f4
cmp esi, edi
je 0x100026ac
mov edi, 0x1006a560
mov ebx, str.cache
lea ecx, [ebp - 0x2d0]
call fcn.10018a92
lea ecx, [ebp - 0x2d0]
mov dword [ebp - 0x54], eax
call fcn.1001846a
test eax, eax
jne 0x100026a0
lea eax, [ebp - 0x58]
push eax
lea ecx, [ebp - 0x2d0]
call fcn.10017fb0
mov eax, dword [eax]
push 0xffffffffffffffff
push eax
mov byte [ebp - 4], 0xc
call fcn.100027e8
pop ecx
pop ecx
mov dword [ebp - 0x14], eax
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 0xe
call fcn.10014381
lea ecx, [ebp - 0x14]
call fcn.10002827
push 0x10
lea ecx, [ebp - 0x2d0]
call fcn.1001844e
test eax, eax
je 0x1000261a
push dword [ebp - 0x14]
lea ecx, [ebp - 0x50]
call fcn.10002760
mov ecx, dword [eax]
test ecx, ecx
mov byte [ebp - 4], 0xf
je 0x10002556
call fcn.10001a7a
mov esi, eax
jmp 0x10002558
xor esi, esi
push esi
call fcn.100493c0
pop ecx
push eax
push esi
lea ecx, [ebp - 0x28]
call fcn.10027116
lea ecx, [ebp - 0x50]
mov byte [ebp - 4], 0xe
call fcn.100018f4
mov eax, dword [0x1005b4ec]
push 1
push eax
lea eax, [ebp - 0xd]
push eax
lea ecx, [ebp - 0x28]
mov byte [ebp - 0xd], 0x5c
call fcn.100260e1
push edi
mov esi, eax
call fcn.100493c0
pop ecx
push eax
push esi
push edi
lea ecx, [ebp - 0x28]
call fcn.1002605f
mov ecx, dword [0x1005b4ec]
cmp eax, ecx
jne 0x100025de
push 1
push ecx
lea eax, [ebp - 0xd]
push eax
lea ecx, [ebp - 0x28]
mov byte [ebp - 0xd], 0x5c
call fcn.100260e1
push ebx
mov esi, eax
call fcn.100493c0
pop ecx
push eax
push esi
push ebx
lea ecx, [ebp - 0x28]
call fcn.1002605f
cmp eax, dword [0x1005b4ec]
je 0x10002693
push dword [ebp + 0x20]
lea eax, [ebp + 0x10]
sub esp, 0x10
mov ecx, esp
mov dword [ebp - 0x6c], esp
push eax
call fcn.1002454f
push 1
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 0x10
call fcn.10030d10
push ecx
mov ecx, esp
mov dword [ebp - 0x70], esp
push eax
call fcn.10002760
mov byte [ebp - 4], 0xe
call fcn.100021b1
add esp, 0x1c
jmp 0x10002693
cmp byte [ebp + 0xc], 0
je 0x10002693
cmp byte [ebp + 0x20], 0
push dword [ebp - 0x14]
je 0x10002661
lea ecx, [ebp - 0x2c]
call fcn.10002760
mov ecx, dword [eax]
test ecx, ecx
mov byte [ebp - 4], 0x11
je 0x10002642
call fcn.10001a7a
jmp 0x10002644
xor eax, eax
push 4
push 0
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
mov ecx, dword [ebp - 0x2c]
test ecx, ecx
je 0x10002693
call fcn.10001129
and dword [ebp - 0x2c], 0
jmp 0x10002693
lea ecx, [ebp - 0x18]
call fcn.10002760
mov ecx, dword [eax]
test ecx, ecx
mov byte [ebp - 4], 0x12
je 0x1000267a
call fcn.10001a7a
jmp 0x1000267c
xor eax, eax
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ecx, dword [ebp - 0x18]
test ecx, ecx
je 0x10002693
call fcn.10001129
and dword [ebp - 0x18], 0
push dword [ebp - 0x14]
mov byte [ebp - 4], 9
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
cmp dword [ebp - 0x54], 0
jne 0x100024cc
xor edi, edi
lea ecx, [ebp - 0x2d0]
mov byte [ebp - 4], 8
call fcn.10018abc
push 1
pop esi
push esi
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 5
call fcn.1002622b
cmp byte [ebp + 0x20], 0
mov ecx, dword [ebp + 8]
je 0x100026ed
cmp ecx, edi
je 0x100026df
call fcn.10001a7a
jmp 0x100026e1
xor eax, eax
push 4
push edi
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
jmp 0x10002701
cmp ecx, edi
je 0x100026f8
call fcn.10001a7a
jmp 0x100026fa
xor eax, eax
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
push esi
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 4
call fcn.1002622b
push esi
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 3
call fcn.1002622b
push esi
lea ecx, [ebp - 0x80]
mov byte [ebp - 4], 2
call fcn.1002622b
push esi
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 1
call fcn.1002622b
mov ecx, dword [ebp + 8]
cmp ecx, edi
je 0x10002744
call fcn.10001129
mov dword [ebp + 8], edi
or dword [ebp - 4], 0xffffffff
push esi
lea ecx, [ebp + 0x10]
call fcn.1002622b
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret