Function at 0x20008a80
Capabilities:
Delete file
Extract resource via kernel32 functions
Get common file path

Disassembly:
sub esp, 0x4b0
mov eax, dword [0x20043b94]
xor eax, esp
mov dword [esp + 0x4ac], eax
push ebx
push ebp
mov ebp, dword [esp + 0x4bc]
xor ebx, ebx
xor eax, eax
cmp dword [ebp + 0x18], ebx
push esi
setne al
push edi
push 0x18
mov byte [esp + 0x40], 0xc
mov dword [esp + 0x3c], ebx
mov word [esp + 0x42], bx
add eax, 1
push eax
mov eax, dword [ebp]
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
cmp esi, ebx
jne 0x20008b20
cmp dword [esp + 0x38], ebx
je 0x20008e75
movzx eax, byte [esp + 0x3c]
push 0x1f38c7b
cdq
push 0x1ab7d2d7
push edx
push eax
call fcn.2001cd20
mov esi, dword [esp + 0x38]
movzx ecx, bl
lea ecx, [esi + ecx*8]
mov esi, dword [ecx]
or esi, dword [ecx + 4]
je 0x20008e75
xor dword [ecx + 4], edx
xor dword [ecx], eax
add eax, 0x1ab7d2d7
adc edx, 0x1f38c7b
add bl, 1
cmp bl, 6
jb 0x20008aee
jmp 0x20008e75
mov edx, dword [ebp]
push esi
push edx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [esp + 0x14], eax
mov eax, dword [ebp]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
lea ecx, [esp + 0x2b0]
push ecx
push 0x104
mov dword [esp + 0x18], eax
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
cmp dword [esp + 0x38], ebx
je 0x20008b9a
movzx eax, byte [esp + 0x3c]
push 0x1f38c7b
cdq
push 0x1ab7d2d7
push edx
push eax
call fcn.2001cd20
mov esi, eax
xor al, al
mov edi, dword [esp + 0x38]
movzx ecx, al
lea ecx, [edi + ecx*8]
mov edi, dword [ecx]
or edi, dword [ecx + 4]
je 0x20008b9a
xor dword [ecx + 4], edx
xor dword [ecx], esi
add esi, 0x1ab7d2d7
adc edx, 0x1f38c7b
add al, 1
cmp al, 6
jb 0x20008b72
movzx eax, byte [esp + 0x3c]
push 0x1f38c7b
cdq
push 0x1ab7d2d7
push edx
push eax
mov dword [esp + 0x48], 0x20058950
call fcn.2001cd20
mov esi, eax
xor al, al
mov edi, dword [esp + 0x38]
movzx ecx, al
lea ecx, [edi + ecx*8]
mov edi, dword [ecx]
or edi, dword [ecx + 4]
je 0x20008be5
xor dword [ecx + 4], edx
xor dword [ecx], esi
add esi, 0x1ab7d2d7
adc edx, 0x1f38c7b
add al, 1
cmp al, 6
jb 0x20008bbd
mov ecx, dword [esp + 0x38]
mov dword [esp + 0xa0], ecx
xor eax, eax
movsx dx, byte [ecx + eax]
mov word [esp + eax*2 + 0x3e], dx
mov ecx, dword [esp + 0xa0]
cmp byte [ecx + eax], bl
je 0x20008c90
movsx cx, byte [ecx + eax + 1]
mov word [esp + eax*2 + 0x40], cx
mov ecx, dword [esp + 0xa0]
cmp byte [ecx + eax + 1], bl
je 0x20008c90
movsx dx, byte [ecx + eax + 2]
mov word [esp + eax*2 + 0x42], dx
mov ecx, dword [esp + 0xa0]
cmp byte [ecx + eax + 2], bl
je 0x20008c90
movsx cx, byte [ecx + eax + 3]
mov word [esp + eax*2 + 0x44], cx
mov ecx, dword [esp + 0xa0]
cmp byte [ecx + eax + 3], bl
je 0x20008c90
movsx dx, byte [ecx + eax + 4]
mov word [esp + eax*2 + 0x46], dx
mov ecx, dword [esp + 0xa0]
cmp byte [ecx + eax + 4], bl
je 0x20008c90
movsx cx, byte [ecx + eax + 5]
mov word [esp + eax*2 + 0x48], cx
mov ecx, dword [esp + 0xa0]
cmp byte [ecx + eax + 5], bl
je 0x20008c90
add eax, 6
cmp eax, 0x30
jb 0x20008bf2
rdtsc
push eax
lea edx, [esp + 0x2b4]
push edx
lea eax, [esp + 0x46]
push eax
lea edx, [esp + 0xb4]
call fcn.200097a0
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
add esp, 0xc
push ecx
push edx
lea eax, [esp + 0xb0]
call fcn.2000b420
mov esi, eax
add esp, 8
cmp esi, ebx
je 0x20008d1b
cmp dword [esp + 0x38], ebx
je 0x20008d14
movzx eax, byte [esp + 0x3c]
push 0x1f38c7b
cdq
push 0x1ab7d2d7
push edx
push eax
call fcn.2001cd20
mov edi, dword [esp + 0x38]
movzx ecx, bl
lea ecx, [edi + ecx*8]
mov edi, dword [ecx]
or edi, dword [ecx + 4]
je 0x20008d14
xor dword [ecx + 4], edx
xor dword [ecx], eax
add eax, 0x1ab7d2d7
adc edx, 0x1f38c7b
add bl, 1
cmp bl, 6
jb 0x20008ceb
mov eax, esi
jmp 0x20008e77
xor eax, eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
lea eax, [esp + 0x18]
lea edx, [esp + 0xa8]
push eax
mov dword [esp + 0x1c], 0x20
mov dword [esp + 0x24], edx
call dword [sym.imp.KERNEL32.dll_CreateActCtxW]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp + 0x28], eax
call esi
lea ecx, [esp + 0xa8]
push ecx
mov edi, eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [ebp + 0x28], 0xffffffff
jne 0x20008dc8
cmp dword [esp + 0x38], ebx
mov dword [ebp + 0x28], ebx
je 0x20008dc1
movzx eax, byte [esp + 0x3c]
push 0x1f38c7b
cdq
push 0x1ab7d2d7
push edx
push eax
call fcn.2001cd20
mov esi, dword [esp + 0x38]
movzx ecx, bl
lea ecx, [esi + ecx*8]
mov esi, dword [ecx]
or esi, dword [ecx + 4]
je 0x20008dc1
xor dword [ecx + 4], edx
xor dword [ecx], eax
add eax, 0x1ab7d2d7
adc edx, 0x1f38c7b
add bl, 1
cmp bl, 6
jb 0x20008d98
mov eax, edi
jmp 0x20008e77
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [ebp + 0x28]
lea edx, [ebp + 0x2c]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ActivateActCtx]
test eax, eax
jne 0x20008e2f
call esi
cmp dword [esp + 0x38], ebx
mov esi, eax
je 0x20008e2b
movzx eax, byte [esp + 0x3c]
push 0x1f38c7b
cdq
push 0x1ab7d2d7
push edx
push eax
call fcn.2001cd20
mov edi, dword [esp + 0x38]
movzx ecx, bl
lea ecx, [edi + ecx*8]
mov edi, dword [ecx]
or edi, dword [ecx + 4]
je 0x20008e2b
xor dword [ecx + 4], edx
xor dword [ecx], eax
add eax, 0x1ab7d2d7
adc edx, 0x1f38c7b
add bl, 1
cmp bl, 6
jb 0x20008e02
mov eax, esi
jmp 0x20008e77
cmp dword [esp + 0x38], ebx
je 0x20008e75
movzx eax, byte [esp + 0x3c]
push 0x1f38c7b
cdq
push 0x1ab7d2d7
push edx
push eax
call fcn.2001cd20
mov esi, dword [esp + 0x38]
movzx ecx, bl
lea ecx, [esi + ecx*8]
mov esi, dword [ecx]
or esi, dword [ecx + 4]
je 0x20008e75
xor dword [ecx + 4], edx
xor dword [ecx], eax
add eax, 0x1ab7d2d7
adc edx, 0x1f38c7b
add bl, 1
cmp bl, 6
jb 0x20008e4c
xor eax, eax
mov ecx, dword [esp + 0x4bc]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.20019434
add esp, 0x4b0
ret 4