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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c9b76
mov eax, dword fs:[0]
push eax
mov eax, 0x1220
call fcn.004bf0a0
mov eax, dword [0x4f8194]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
push 0x103
mov dword [ebp - 0x1224], eax
lea eax, [ebp - 0x217]
push 0
push eax
mov dword [ebp - 0x1228], ebx
mov byte [ebp - 0x218], 0
call sub.MSVCR120.dll_memset
push 0x103
lea eax, [ebp - 0x113]
mov byte [ebp - 0x114], 0
push 0
push eax
call sub.MSVCR120.dll_memset
push 0xfff
lea eax, [ebp - 0x1217]
mov byte [ebp - 0x1218], 0
push 0
push eax
call sub.MSVCR120.dll_memset
xor esi, esi
add esp, 0x24
mov dword [ebp - 0x121c], esi
mov dword [ebp - 4], esi
xor edi, edi
mov eax, dword [ebp - 0x1224]
mov byte [ebp - 4], 1
mov dword [eax], edi
test ebx, ebx
je 0x45b9e7
lea eax, [ebp - 0x218]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
je 0x45b9e7
lea eax, [ebp - 0x114]
push eax
push edi
push str.KSG_
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
je 0x45b9e7
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.Engine.dll_g_CreateFile]
mov edi, eax
add esp, 4
mov dword [ebp - 0x122c], edi
test edi, edi
je 0x45b9e7
push ebx
lea ecx, [ebp - 0x121c]
call fcn.0045ba50
test eax, eax
je 0x45b9da
mov esi, dword [ebp - 0x121c]
test esi, esi
jne 0x45b8c4
xor ebx, ebx
jmp 0x45b8cd
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x14]
mov ebx, eax
test ebx, ebx
jle 0x45b90a
test esi, esi
je 0x45b915
mov eax, dword [esi]
lea ecx, [ebp - 0x1218]
push 0x1000
push ecx
mov ecx, esi
call dword [eax]
mov dword [ebp - 0x1220], eax
test eax, eax
je 0x45b90a
mov edx, dword [edi]
mov ecx, edi
push eax
lea eax, [ebp - 0x1218]
push eax
call dword [edx + 4]
sub ebx, dword [ebp - 0x1220]
test ebx, ebx
jg 0x45b8d1
test esi, esi
je 0x45b915
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x2c]
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x2c]
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.USER32.dll_LoadCursorFromFileA]
mov ecx, dword [ebp - 0x1224]
mov dword [ecx], eax
test eax, eax
jne 0x45b9d3
push dword [ebp - 0x1228]
lea ecx, [ebp - 0x121c]
call fcn.0045ba50
mov esi, dword [ebp - 0x121c]
test eax, eax
je 0x45b9e7
test esi, esi
jne 0x45b960
xor eax, eax
jmp 0x45b967
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x14]
lea ecx, [eax + 8]
mov dword [ebp - 0x1220], eax
push ecx
call fcn.004beb92
add esp, 4
mov ebx, eax
test esi, esi
je 0x45b98c
push dword [ebp - 0x1220]
mov edx, dword [esi]
mov ecx, esi
push ebx
call dword [edx]
mov eax, dword [ebp - 0x1220]
xorps xmm0, xmm0
movq qword [eax + ebx], xmm0
test esi, esi
je 0x45b9ab
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x2c]
mov eax, dword [ebp - 0x1220]
push 0x30000
push 0
push eax
push ebx
call dword [sym.imp.USER32.dll_CreateIconFromResource]
mov ecx, dword [ebp - 0x1224]
mov dword [ecx], eax
test eax, eax
je 0x45b9e7
test ebx, ebx
je 0x45b9d3
push ebx
call sub.MSVCR120.dll_void___cdecl_operator_delete_void__
add esp, 4
mov ebx, 1
jmp 0x45b9e9
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x2c]
mov esi, dword [ebp - 0x121c]
xor ebx, ebx
cmp byte [ebp - 0x114], 0
je 0x45ba06
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov byte [ebp - 0x114], 0
mov byte [ebp - 4], 0
test edi, edi
je 0x45ba15
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x30]
mov dword [ebp - 4], 0xffffffff
test esi, esi
je 0x45ba27
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x30]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004becb4
mov esp, ebp
pop ebp
ret