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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x648
mov eax, dword [0x30001bc0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov dword [ebp - 0x644], eax
mov eax, dword [ebp + 0x18]
push 0x228
xor esi, esi
push 2
mov dword [ebp - 0x634], eax
mov dword [ebp - 0x63c], esi
mov dword [ebp - 0x640], esi
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
push eax
mov dword [ebp - 0x638], eax
call fcn.30067a6d
cmp eax, esi
jne 0x3005498f
push edi
push dword [ebp - 0x638]
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov edi, eax
lea eax, [ebp - 0x214]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea eax, [ebp - 0x10c]
push eax
push esi
push 0x30001834
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
lea eax, [ebp - 0x10c]
push eax
mov esi, 0x106
push esi
lea eax, [edi + 0x10a]
push eax
call fcn.3003f6b8
push 2
lea eax, [ebp - 0x10c]
push eax
call fcn.300680ec
cmp eax, 0xffffffff
mov dword [edi + 0x214], eax
jne 0x30054780
mov dword [ebp - 0x630], 0x2717
jmp 0x30054878
mov ecx, dword [ebp + 0x14]
neg ecx
sbb ecx, ecx
and dword [edi + 0x224], 0
add ecx, 3
mov dword [edi + 0x21c], ecx
mov ecx, dword [ebp + 0xc]
test ecx, ecx
mov dword [edi + 0x220], 1
je 0x300547ae
cmp dword [ebp + 0x10], 0
je 0x300547b8
cmp dword [ebp + 0x14], 0
je 0x3005499e
push 0xc8
push 6
push 0
lea esi, [edi + 0x218]
push esi
push eax
mov dword [edi], ecx
call fcn.3003aedb
test eax, eax
mov dword [ebp - 0x630], eax
jne 0x30054859
mov eax, dword [esi]
mov ecx, dword [ebp - 0x634]
mov dword [ecx], eax
mov esi, dword [esi]
call fcn.30052aba
test eax, eax
mov dword [ebp - 0x630], eax
jne 0x30054859
cmp dword [ebp + 0xc], eax
jne 0x30054968
push ebx
mov esi, 0x105
push esi
lea eax, [edi + 4]
push eax
call fcn.3003f6b8
push 2
push ebx
call fcn.300680ec
cmp eax, 0xffffffff
mov dword [edi + 0x210], eax
jne 0x30054968
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x20
mov dword [ebp - 0x634], eax
je 0x300548d0
cmp eax, 0x13
je 0x300548d0
cmp eax, 5
je 0x300548d0
push eax
call fcn.30054041
or dword [ebp - 0x630], 0xffffffff
push dword [edi + 0x214]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
cmp dword [ebp - 0x63c], 0
je 0x30054878
push dword [edi + 0x210]
call esi
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
xor eax, eax
cmp dword [ebp - 0x640], eax
je 0x300548a2
cmp dword [ebp - 0x630], 0x2717
jne 0x300548a2
or dword [ebp - 0x630], 0xffffffff
cmp dword [edi + 0x224], eax
je 0x3005497c
cmp dword [ebp - 0x63c], eax
je 0x3005497c
lea esi, [edi + 0x210]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [esi], 0xffffffff
jmp 0x3005497c
push esi
lea eax, [ebp - 0x62c]
push eax
push 0xffffffffffffffff
push ebx
push 1
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp dword [ebp - 0x634], 0x20
push esi
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x62c]
push eax
jne 0x30054904
push 0x84
jmp 0x30054909
push 0x86
call fcn.300689aa
push 4
lea eax, [ebp - 0x420]
push eax
push dword [0x300967d0]
call fcn.30047ff3
cmp eax, 7
jne 0x30054940
mov dword [ebp - 0x630], 0x2717
mov dword [ebp - 0x640], 1
jmp 0x30054859
push 0
push ebx
call fcn.300680ec
cmp eax, 0xffffffff
mov dword [edi + 0x210], eax
je 0x300549da
and dword [ebp - 0x630], 0
mov dword [edi + 0x224], 1
push dword [ebp - 0x638]
push 0
push dword [ebp - 0x644]
call dword [sym.imp.USER32.dll_SetWindowLongA]
push dword [ebp - 0x638]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [ebp - 0x630]
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.30071b52
leave
ret 0x14
mov eax, dword [ebp + 0x10]
neg eax
sbb eax, eax
and eax, ecx
push ebx
mov dword [edi], eax
lea eax, [edi + 4]
push esi
push eax
call fcn.3003f6b8
push 2
push ebx
call fcn.300680ec
cmp eax, 0xffffffff
mov dword [edi + 0x210], eax
jne 0x300549f4
push 0
push ebx
call fcn.300680ec
cmp eax, 0xffffffff
mov dword [edi + 0x210], eax
jne 0x300549e9
mov dword [ebp - 0x630], 0x2717
jmp 0x30054859
xor eax, eax
inc eax
mov dword [edi + 0x224], eax
jmp 0x300549f7
xor eax, eax
inc eax
push 0
push dword [edi + 0x214]
mov dword [ebp - 0x63c], eax
push eax
push dword [edi + 0x210]
push ebx
call fcn.30051546
test eax, eax
mov dword [ebp - 0x630], eax
jne 0x30054859
lea eax, [ebp - 0x648]
push eax
push 0
lea esi, [edi + 0x218]
push esi
push dword [edi + 0x214]
call fcn.3003af25
test eax, eax
mov dword [ebp - 0x630], eax
jne 0x30054859
cmp dword [ebp + 0x10], 0
mov eax, dword [esi]
mov ecx, dword [ebp - 0x634]
mov dword [ecx], eax
jne 0x30054a62
lea eax, [edi + 4]
push eax
call fcn.3005462a
push dword [edi + 0x210]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [edi + 0x210], 0xffffffff
jmp 0x30054968