Function at 0x10020ad5
Capabilities:
Create process on windows
Delete file
Get common file path

Disassembly:
mov eax, 0x10057909
call fcn.10048f38
sub esp, 0x1a0
push ebx
push esi
push edi
mov dword [ebp - 0x10], esp
xor ebx, ebx
mov dword [ebp - 4], ebx
cmp byte [0x10071299], bl
jne 0x10021045
and byte [ebp - 0x12], bl
lea eax, [ebp - 0x35]
push eax
lea eax, [ebp - 0x12]
push eax
mov esi, 0x3e8
push esi
lea ecx, [ebp - 0x6c]
mov byte [ebp - 4], 2
call fcn.1002595c
mov eax, dword [0x100712bc]
push esi
push dword [ebp - 0x68]
mov byte [ebp - 4], 3
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov al, byte [ebp + 0x17]
mov esi, dword [ebp - 0x68]
push ebx
lea ecx, [ebp - 0x48]
mov byte [ebp - 0x48], al
call fcn.1002622b
push esi
call fcn.100493c0
pop ecx
push eax
push esi
lea ecx, [ebp - 0x48]
call fcn.10027116
mov al, byte [ebp + 0x17]
mov esi, dword [ebp - 0x68]
push ebx
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 4
mov byte [ebp - 0x5c], al
call fcn.1002622b
push esi
call fcn.100493c0
pop ecx
push eax
push esi
lea ecx, [ebp - 0x5c]
call fcn.10027116
mov eax, dword [0x1005b4ec]
push 1
push eax
lea eax, [ebp - 0x11]
push eax
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 5
mov byte [ebp - 0x11], 0x5c
call fcn.100260e1
push dword [0x1005b4ec]
inc eax
push eax
lea ecx, [ebp - 0x5c]
call fcn.100245da
mov eax, dword [0x1005b4ec]
push 1
push eax
lea eax, [ebp - 0x11]
push eax
lea ecx, [ebp - 0x48]
mov byte [ebp - 0x11], 0x5c
call fcn.100260e1
push dword [0x1005b4ec]
lea ecx, [ebp - 0x48]
push eax
call fcn.100245da
mov al, byte [ebp + 0x17]
mov esi, dword [0x1005b4ec]
push ebx
lea ecx, [ebp - 0x24]
mov byte [ebp - 0x11], 0x5c
mov byte [ebp - 0x24], al
call fcn.1002622b
mov edi, 0x1006a560
push edi
call fcn.100493c0
pop ecx
push eax
push edi
lea ecx, [ebp - 0x24]
call fcn.10027116
push 1
push esi
lea eax, [ebp - 0x11]
push eax
lea ecx, [ebp - 0x48]
call fcn.100260e1
mov ecx, dword [ebp - 0x20]
cmp ecx, ebx
mov byte [ebp - 4], 6
jne 0x10020c18
mov ecx, 0x1005b4e8
push dword [ebp - 0x1c]
push eax
push ecx
lea ecx, [ebp - 0x48]
call fcn.1002605f
cmp eax, dword [0x1005b4ec]
push 1
pop esi
push esi
lea ecx, [ebp - 0x24]
setne bl
mov byte [ebp - 4], 5
call fcn.1002622b
test bl, bl
je 0x10020c6a
mov eax, dword [0x1005b4ec]
push esi
push eax
lea eax, [ebp - 0x11]
push eax
lea ecx, [ebp - 0x48]
mov byte [ebp - 0x11], 0x5c
call fcn.100260e1
push dword [0x1005b4ec]
lea ecx, [ebp - 0x48]
push eax
call fcn.100245da
jmp 0x10020c7e
push dword [0x1005b4ec]
lea eax, [ebp - 0x5c]
push 0
push eax
lea ecx, [ebp - 0x48]
call fcn.10025e51
mov eax, dword [ebp - 0x44]
xor ebx, ebx
cmp eax, ebx
jne 0x10020c8c
mov eax, 0x1005b4e8
lea ecx, [ebp - 0x1ac]
push ecx
push ebx
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
jne 0x10020cdd
push esi
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 4
call fcn.1002622b
push esi
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 3
call fcn.1002622b
lea ecx, [ebp - 0x6c]
mov byte [ebp - 4], 2
call fcn.100259a6
and byte [ebp - 4], 0
push esi
lea ecx, [ebp + 8]
call fcn.1002622b
or dword [ebp - 4], 0xffffffff
push esi
jmp 0x10021059
lea eax, [ebp - 0x1ac]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov al, byte [ebp + 0x17]
push ebx
lea ecx, [ebp - 0x24]
mov byte [ebp - 0x24], al
call fcn.1002622b
lea eax, [ebp - 0x1ac]
push eax
call fcn.100493c0
pop ecx
push eax
lea eax, [ebp - 0x1ac]
push eax
lea ecx, [ebp - 0x24]
call fcn.10027116
mov al, byte [ebp + 0x17]
push ebx
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 7
mov byte [ebp - 0x34], al
call fcn.1002622b
mov esi, str..tmp
push esi
call fcn.100493c0
pop ecx
push eax
push esi
lea ecx, [ebp - 0x34]
call fcn.10027116
mov eax, dword [0x1005b4ec]
mov ecx, dword [ebp - 0x30]
test ecx, ecx
mov byte [ebp - 4], 8
mov edi, 0x1005b4e8
jne 0x10020d56
mov ecx, edi
push dword [ebp - 0x2c]
push eax
push ecx
lea ecx, [ebp - 0x24]
call fcn.100260e1
push 1
pop ebx
push ebx
lea ecx, [ebp - 0x34]
mov esi, eax
mov byte [ebp - 4], 7
call fcn.1002622b
mov eax, dword [0x1005b4ec]
cmp esi, eax
jne 0x10020ddb
mov al, byte [ebp + 0x17]
push 0
lea ecx, [ebp - 0x34]
mov byte [ebp - 0x34], al
call fcn.1002622b
mov esi, str..TMP
push esi
call fcn.100493c0
pop ecx
push eax
push esi
lea ecx, [ebp - 0x34]
call fcn.10027116
mov eax, dword [0x1005b4ec]
mov ecx, dword [ebp - 0x30]
test ecx, ecx
mov byte [ebp - 4], 9
jne 0x10020db6
mov ecx, edi
push dword [ebp - 0x2c]
push eax
push ecx
lea ecx, [ebp - 0x24]
call fcn.100260e1
push ebx
lea ecx, [ebp - 0x34]
mov esi, eax
mov byte [ebp - 4], 7
call fcn.1002622b
mov eax, dword [0x1005b4ec]
cmp esi, eax
je 0x10020de5
push eax
push esi
lea ecx, [ebp - 0x24]
call fcn.100245da
mov eax, dword [ebp - 0x20]
test eax, eax
jne 0x10020dee
mov eax, edi
push eax
call fcn.1004a944
test eax, eax
pop ecx
jne 0x10020fd4
mov eax, dword [ebp - 0x20]
test eax, eax
jne 0x10020e06
mov eax, edi
push eax
call fcn.1004a970
pop ecx
lea ecx, [ebp - 0x88]
call fcn.1000768d
mov eax, dword [ebp + 0xc]
test eax, eax
mov byte [ebp - 4], 0xa
mov dword [ebp - 0x88], edi
je 0x10020e2f
mov dword [ebp - 0x88], eax
and byte [ebp - 0x74], 0
lea eax, [ebp - 0x88]
mov esi, str.tbupdate.cab
push eax
mov dword [ebp - 0x84], esi
mov byte [ebp - 0x73], 1
mov dword [ebp - 0x7c], 0x84000001
mov dword [ebp - 0x78], ebx
call fcn.10004bf5
test al, al
pop ecx
je 0x10020fb0
push esi
call fcn.10020ab1
test eax, eax
pop ecx
je 0x10020ed8
lea ecx, [ebp - 0x24]
call fcn.10024641
push ecx
mov ecx, esp
mov dword [ebp - 0x4c], esp
push eax
call fcn.1000101a
call fcn.1000177a
pop ecx
lea ecx, [ebp - 0x70]
call fcn.10014381
push ebx
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 5
call fcn.1002622b
push ebx
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 4
call fcn.1002622b
push ebx
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 3
call fcn.1002622b
lea ecx, [ebp - 0x6c]
mov byte [ebp - 4], 2
call fcn.100259a6
and byte [ebp - 4], 0
push ebx
lea ecx, [ebp + 8]
call fcn.1002622b
or dword [ebp - 4], 0xffffffff
push ebx
jmp 0x10021059
lea eax, [ebp + 0x18]
push eax
lea eax, [ebp - 0xa8]
push 0x1006bbac
push eax
call fcn.1002ace7
add esp, 0xc
mov al, byte [ebp + 0x17]
push 0
lea ecx, [ebp - 0x98]
mov byte [ebp - 4], 0xb
mov byte [ebp - 0x98], al
call fcn.1002622b
mov esi, 0x1006a4b8
push esi
call fcn.100493c0
pop ecx
push eax
push esi
lea ecx, [ebp - 0x98]
call fcn.10027116
mov al, byte [ebp + 0x17]
push 0
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 0xc
mov byte [ebp - 0x34], al
call fcn.1002622b
mov esi, str.Updating
push esi
call fcn.100493c0
pop ecx
push eax
push esi
lea ecx, [ebp - 0x34]
call fcn.10027116
lea eax, [ebp - 0x98]
push eax
lea eax, [ebp - 0x34]
push eax
mov byte [ebp - 4], 0xd
call fcn.100036a7
pop ecx
pop ecx
push ebx
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 0xc
call fcn.1002622b
push ebx
lea ecx, [ebp - 0x98]
mov byte [ebp - 4], 0xb
call fcn.1002622b
mov eax, dword [ebp - 0xa4]
xor ecx, ecx
cmp eax, ecx
jne 0x10020f8e
mov eax, edi
push ecx
push ecx
push eax
push str.regsvr32
push ecx
push ecx
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
push ebx
lea ecx, [ebp - 0xa8]
mov byte [ebp - 4], 0xa
call fcn.1002622b
jmp 0x10020fca
lea ecx, [ebp - 0x24]
call fcn.10024641
push ecx
mov ecx, esp
mov dword [ebp - 0x4c], esp
push eax
call fcn.1000101a
call fcn.1000177a
pop ecx
lea ecx, [ebp - 0x70]
call fcn.10014381
jmp 0x10020fee
lea ecx, [ebp - 0x24]
call fcn.10024641
push ecx
mov ecx, esp
mov dword [ebp - 0x4c], esp
push eax
call fcn.1000101a
call fcn.1000177a
pop ecx
push ebx
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 5
call fcn.1002622b
push ebx
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 4
call fcn.1002622b
push ebx
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 3
call fcn.1002622b
lea ecx, [ebp - 0x6c]
mov byte [ebp - 4], 2
call fcn.100259a6
and byte [ebp - 4], 0
push ebx
lea ecx, [ebp + 8]
call fcn.1002622b
or dword [ebp - 4], 0xffffffff
push ebx
lea ecx, [ebp + 0x18]
call fcn.1002622b
mov al, 1
jmp 0x10021063
and byte [ebp - 4], 0
push 1
lea ecx, [ebp + 8]
call fcn.1002622b
or dword [ebp - 4], 0xffffffff
push 1
lea ecx, [ebp + 0x18]
call fcn.1002622b
xor al, al
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret