Function at 0x30027017
Capabilities:
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x928
mov eax, dword [0x30033ce8]
push ebx
xor ebx, ebx
push esi
mov dword [ebp - 0xc], ebx
mov eax, dword [eax + 0x260]
mov esi, ecx
push edi
mov ecx, dword [eax + 0x14]
mov dword [ebp - 8], ebx
call fcn.3001f680
call fcn.3002692b
test eax, eax
je 0x30027085
mov eax, dword [0x300347f0]
push 0x30026fea
push dword [eax + 8]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
jne 0x3002706c
mov dword [ebp - 8], 0xa
jmp 0x30027226
lea ecx, [ebp - 0xc]
push ecx
mov ecx, dword [0x300347f0]
push 0x30003a40
push ebx
push dword [ecx + 4]
call eax
test eax, eax
jge 0x3002709f
mov eax, dword [0x30033ce8]
mov eax, dword [eax + 0x260]
mov ecx, dword [eax + 0x14]
call fcn.3001f6b2
xor eax, eax
jmp 0x30027294
lea eax, [ebp - 0x114]
mov edi, 0x104
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
jne 0x300270c8
lea eax, [ebp - 0x114]
push 0x30026ffe
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x320]
push eax
push ebx
lea eax, [ebp - 0x114]
push 0x30027002
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
jne 0x300270f8
lea eax, [ebp - 0x320]
push 0x30027006
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x528]
push edi
push eax
lea eax, [ebp - 0x320]
push eax
call fcn.300292a6
lea eax, [ebp - 0x528]
push ebx
push eax
lea eax, [ebp - 4]
push eax
call dword [sym.imp.MSO9.DLL_Ordinal_312]
cmp eax, ebx
jge 0x3002712d
push eax
call fcn.30028402
jmp 0x30027226
push ebx
push 2
push dword [ebp - 4]
mov ecx, esi
call fcn.30024828
push dword [ebp - 4]
mov edi, eax
call fcn.30024582
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
cmp edi, ebx
jge 0x30027154
push edi
jmp 0x30027123
cmp dword [esi + 0x460], 2
jne 0x3002717d
lea eax, [ebp - 0x21c]
mov ecx, esi
push eax
call fcn.300112dc
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x21c]
push eax
call fcn.300299dc
jmp 0x300271a5
lea eax, [ebp - 0x21c]
push 1
push eax
mov ecx, esi
call fcn.3001130a
lea eax, [ebp - 0x21c]
push 0x30027012
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x21c]
mov dword [ebp - 4], eax
lea eax, [ebp - 0x110]
push eax
push 0x90005
call fcn.30029082
mov edi, 0x100
lea eax, [ebp - 0x928]
push edi
push eax
lea eax, [ebp - 0x110]
push eax
call fcn.300292a6
lea eax, [ebp - 0x728]
push edi
push eax
push dword [ebp - 4]
call fcn.300292a6
push dword [esi + 0x488]
lea eax, [ebp - 0x728]
push dword [ebp - 0xc]
push ebx
push ebx
push eax
lea eax, [ebp - 0x928]
push dword [esi + 0x540]
push dword [esi + 0x53c]
push dword [esi + 0x538]
push eax
lea eax, [ebp - 0x528]
push eax
call dword [sym.imp.MSO9.DLL_Ordinal_333]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
lea eax, [ebp - 0x320]
test eax, eax
je 0x3002723d
lea eax, [ebp - 0x320]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, dword [0x30033ce8]
mov eax, dword [eax + 0x260]
mov ecx, dword [eax + 0x14]
call fcn.3001f6b2
mov eax, dword [ebp - 8]
sub eax, ebx
je 0x3002727f
sub eax, 3
je 0x30027276
dec eax
je 0x3002726d
sub eax, 6
jne 0x3002728b
push 0x30
push 0x1001e
jmp 0x30027286
push 0x30
push 0x1001f
jmp 0x30027286
push 0x30
push 0x1001d
jmp 0x30027286
push 0x30
push 0x1001c
call fcn.3002ac66
xor eax, eax
cmp dword [ebp - 8], 2
sete al
pop edi
pop esi
pop ebx
leave
ret