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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc8
push ebx
xor ebx, ebx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x34], ebx
mov dword [ebp - 4], ebx
mov byte [ebp - 9], cl
mov ebx, edx
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x47c8b2
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 0x11], 0
mov dword [ebp - 0x10], 0xffffffff
xor eax, eax
mov dword [ebp - 0x18], eax
xor eax, eax
mov dword [ebp - 0x1c], eax
xor edx, edx
push ebp
push 0x47c888
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x18]
cmp eax, 0xffffff9d
je 0x47c5dd
cmp eax, 0x1cfe3f
jl 0x47c5ef
mov edx, 0xa
mov eax, 0x47c8cc
call fcn.00466fe4
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 8]
cmp dword [eax + 0x18], 0xffffff9d
jne 0x47c602
mov eax, dword [ebp - 8]
mov dword [eax + 0x18], 0xffffffff
cmp dword [ebp - 0x1c], 0
je 0x47c824
mov eax, dword [ebp - 0x1c]
mov edx, dword [eax]
call dword [edx]
cmp edx, 0
jne 0x47c625
cmp eax, 0xc350
jb 0x47c824
jmp 0x47c62b
jl 0x47c824
mov eax, dword [ebp - 0x1c]
mov edx, dword [eax]
call dword [edx]
cmp edx, 0
jne 0x47c644
cmp eax, 0x927c0
jae 0x47c824
jmp 0x47c64a
jge 0x47c824
push 0
push 0
mov eax, dword [ebp - 0x1c]
call fcn.0041be2c
lea edx, [ebp - 0x10]
mov ecx, 4
mov eax, dword [ebp - 0x1c]
call fcn.0041c038
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x10]
mov dword [eax + 0x18], edx
cmp dword [ebp - 0x10], 0x1cfe3f
jl 0x47c824
cmp byte [ebp - 9], 0
jne 0x47c824
lea edx, [ebp - 0x1e]
mov ecx, 2
mov eax, dword [ebp - 0x1c]
call fcn.0041c038
push 0
push 4
mov eax, dword [ebp - 0x1c]
call fcn.0041be2c
lea eax, [ebp - 4]
mov edx, dword [ebx + 0x7c]
call fcn.00405024
mov eax, dword [ebp - 4]
test eax, eax
je 0x47c6b9
sub eax, 4
mov eax, dword [eax]
test eax, eax
jne 0x47c714
lea eax, [ebp - 4]
mov edx, 0x106
call fcn.004056d8
mov eax, dword [ebp - 4]
call fcn.00405450
push eax
push 0x104
call sub.kernel32.dll_GetTempPathA
cmp eax, 0x104
jg 0x47c6e8
test eax, eax
jne 0x47c700
push 1
mov ecx, 0x2b13
mov dl, 1
mov eax, dword [0x483548]
call fcn.004836a0
call fcn.00404900
mov eax, dword [ebp - 4]
call fcn.00405450
mov edx, eax
lea eax, [ebp - 4]
call fcn.00405184
jmp 0x47c721
lea ecx, [ebp - 4]
mov eax, dword [ebx + 0x7c]
mov dl, 1
call fcn.00466ccc
lea eax, [ebp - 0x2e]
push eax
call sub.ole32.dll_CoCreateGuid
test eax, eax
jne 0x47c756
push dword [ebp - 4]
lea edx, [ebp - 0x34]
lea eax, [ebp - 0x2e]
call fcn.0047b3cc
push dword [ebp - 0x34]
push 0x47c8e0
mov eax, dword [ebp - 8]
add eax, 0x4c
mov edx, 3
call fcn.00405310
jmp 0x47c779
lea eax, [ebp - 0x38]
push eax
mov ecx, 0x47c8e0
mov edx, 0x47c8f0
mov eax, ebx
call fcn.0046ab5c
mov edx, dword [ebp - 0x38]
mov eax, dword [ebp - 8]
add eax, 0x4c
call fcn.00404fe0
mov eax, dword [ebp - 8]
cmp dword [eax + 0x4c], 0
jne 0x47c79a
push 1
mov ecx, 0x2b13
mov dl, 1
mov eax, dword [0x483548]
call fcn.004836a0
call fcn.00404900
push 0xffff
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x4c]
mov dl, 1
mov eax, dword [0x4181ac]
call fcn.0041c2c0
mov dword [ebp - 0x18], eax
cmp word [ebp - 0x1e], 0x5a4d
jne 0x47c7f9
mov eax, dword [ebp - 0x1c]
mov edx, dword [eax]
call dword [edx]
sub eax, 4
sbb edx, 0
push edx
push eax
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x18]
call fcn.0041c0a8
push edx
push eax
mov eax, dword [ebp - 0x1c]
mov edx, dword [eax]
call dword [edx]
sub eax, 4
sbb edx, 0
cmp edx, dword [esp + 4]
jne 0x47c7ee
cmp eax, dword [esp]
sete al
add esp, 8
mov byte [ebp - 0x11], al
jmp 0x47c816
mov eax, dword [ebp - 0x1c]
mov edx, dword [eax]
call dword [edx]
mov ecx, eax
sub ecx, 4
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x18]
call fcn.00467af8
test eax, eax
sete byte [ebp - 0x11]
cmp byte [ebp - 0x11], 0
jne 0x47c824
mov eax, dword [ebp - 8]
xor edx, edx
mov dword [eax + 0x18], edx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47c88f
lea eax, [ebp - 0x18]
call fcn.00410278
lea eax, [ebp - 0x1c]
call fcn.00410278
cmp byte [ebp - 9], 0
jne 0x47c887
cmp byte [ebp - 0x11], 0
jne 0x47c86d
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x4c]
call fcn.00409cb0
test al, al
je 0x47c86d
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x4c]
call fcn.00405450
push eax
call sub.kernel32.dll_DeleteFileA
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x4c]
call fcn.00409cb0
test al, al
jne 0x47c887
mov eax, dword [ebp - 8]
add eax, 0x4c
call fcn.00404f8c
ret