Function at 0x4811f0
Capabilities:
Delete file
Get common file path
Get file size
Read file on windows

Disassembly:
push ebp
mov eax, 0x1260
mov ebp, esp
push edi
push esi
push ebx
call fcn.00494110
mov esi, dword fs:[0x18]
sub esp, eax
lea ebx, [ebp - 0x1214]
mov dword [esp + 4], ebx
mov dword [esp], 0x104
call dword [sym.imp.kernel32.dll_GetTempPathA]
lea eax, [ebp - 0x1110]
sub esp, 8
mov dword [esp], ebx
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0
mov dword [esp + 4], 0x4baaec
call dword [sym.imp.kernel32.dll_GetTempFileNameA]
lea eax, [ebp - 0x1110]
sub esp, 0x10
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], eax
mov dword [esp], 0
call dword [sym.imp.gdi32.dll_CreateEnhMetaFileA]
sub esp, 0x10
mov ebx, eax
mov dword [ebp - 0x123c], eax
mov eax, 0xeb1
call fcn.00472290
mov eax, dword [esi + 0x34]
mov dword [esp + 4], str.CreateMetaFileA_NULL__error__ld_n
mov dword [esp + 8], eax
xor eax, eax
test ebx, ebx
setne al
mov dword [esp], eax
call fcn.00472ba0
lea eax, [ebp - 0x1110]
mov dword [esp + 0x18], 0
mov dword [esp], eax
mov eax, dword [sym.imp.kernel32.dll_CreateFileA]
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 3
mov dword [esp + 0xc], 0
mov dword [esp + 8], 3
mov dword [esp + 4], 0x80000000
mov dword [ebp - 0x1244], eax
call eax
sub esp, 0x1c
mov ebx, eax
mov eax, 0xeb5
call fcn.00472290
mov edx, dword [esi + 0x34]
xor eax, eax
cmp ebx, 0xffffffff
je 0x481aa8
mov dword [esp + 0xc], edx
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], str.CreateFile_returned:__p__lu_n
mov ebx, dword fs:[0x18]
call fcn.00472ba0
lea eax, [ebp - 0x1110]
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 3
mov dword [esp + 0xc], 0
mov dword [esp + 8], 3
mov dword [esp + 4], 0
mov dword [esp], eax
mov eax, dword [ebp - 0x1244]
call eax
sub esp, 0x1c
mov edi, eax
mov eax, 0xeba
call fcn.00472290
mov eax, dword [ebx + 0x34]
mov dword [esp + 4], str.CreateFile_failed:__lu_n
mov dword [esp + 8], eax
xor eax, eax
cmp edi, 0xffffffff
setne al
mov dword [esp], eax
call fcn.00472ba0
mov esi, dword [sym.imp.kernel32.dll_GetFileSize]
mov dword [esp + 4], 0
mov dword [ebp - 0x1240], edi
mov dword [esp], edi
mov dword [ebp - 0x1248], esi
call esi
lea esi, [ebp - 0x1234]
sub esp, 8
mov dword [ebp - 0x1238], eax
mov eax, 0xebd
call fcn.00472290
mov eax, dword [ebp - 0x1238]
mov dword [esp + 4], str.size___lu_n
test eax, eax
mov dword [esp + 8], eax
sete al
movzx eax, al
mov dword [esp], eax
call fcn.00472ba0
mov edx, dword [sym.imp.gdi32.dll_PolyBezierTo]
mov dword [ebp - 0x1230], 0xa
mov dword [ebp - 0x1234], 0xa
mov dword [ebp - 0x1228], 0x14
mov dword [ebp - 0x122c], 0x14
mov dword [ebp - 0x1220], 0xf
mov dword [ebp - 0x1224], 0xf
mov dword [ebp - 0x1218], 0x19
mov dword [ebp - 0x121c], 0x19
mov dword [esp + 4], esi
mov dword [esp + 8], 3
mov eax, dword [ebp - 0x123c]
mov dword [esp], eax
mov dword [ebp - 0x1250], edx
call edx
sub esp, 0xc
mov edi, eax
mov eax, 0xec4
call fcn.00472290
mov dword [esp], edi
mov dword [esp + 4], str.PolyBezierTo_failed_n
call fcn.00472ba0
mov ecx, dword [sym.imp.gdi32.dll_PolyBezier]
mov dword [esp + 4], esi
mov dword [esp + 8], 4
mov eax, dword [ebp - 0x123c]
mov dword [esp], eax
mov dword [ebp - 0x124c], ecx
call ecx
sub esp, 0xc
mov edi, eax
mov eax, 0xec6
call fcn.00472290
mov dword [esp], edi
mov dword [esp + 4], str.PolyBezier_failed_n
call fcn.00472ba0
mov dword [ebp - 0x1230], 0x8001
mov dword [ebp - 0x1234], 0x8001
mov dword [esp + 4], esi
mov dword [esp + 8], 4
mov eax, dword [ebp - 0x123c]
mov dword [esp], eax
mov ecx, dword [ebp - 0x124c]
call ecx
sub esp, 0xc
mov edi, eax
mov eax, 0xeca
call fcn.00472290
mov dword [esp], edi
mov dword [esp + 4], str.PolyBezier_failed_n
call fcn.00472ba0
mov dword [esp + 4], esi
mov dword [esp + 8], 3
mov eax, dword [ebp - 0x123c]
mov dword [esp], eax
mov edx, dword [ebp - 0x1250]
call edx
sub esp, 0xc
mov esi, eax
mov eax, 0xecc
call fcn.00472290
mov dword [esp], esi
mov dword [esp + 4], str.PolyBezierTo_failed_n
call fcn.00472ba0
mov dword [esp + 4], 0
mov edi, dword [ebp - 0x1240]
mov dword [esp], edi
mov esi, dword [ebp - 0x1248]
call esi
sub esp, 8
mov dword [ebp - 0x1238], eax
mov eax, 0xecf
call fcn.00472290
mov eax, dword [ebp - 0x1238]
mov dword [esp + 4], str.size___lu_n
test eax, eax
mov dword [esp + 8], eax
sete al
movzx eax, al
mov dword [esp], eax
call fcn.00472ba0
mov ecx, dword [sym.imp.gdi32.dll_CloseEnhMetaFile]
mov eax, dword [ebp - 0x123c]
mov dword [esp], eax
mov dword [ebp - 0x124c], ecx
call ecx
sub esp, 4
mov dword [ebp - 0x1240], eax
mov dword [esp], edi
mov dword [esp + 4], 0
call esi
sub esp, 8
mov dword [ebp - 0x1238], eax
mov eax, 0xed3
call fcn.00472290
mov eax, dword [ebp - 0x1238]
mov dword [esp + 4], str.size___lu_n
cmp eax, 0x144
mov dword [esp + 8], eax
sete al
movzx eax, al
mov dword [esp], eax
call fcn.00472ba0
mov ecx, dword [sym.imp.kernel32.dll_CloseHandle]
mov dword [esp], edi
mov dword [ebp - 0x1248], ecx
call ecx
lea ecx, [ebp - 0x1110]
sub esp, 4
mov dword [esp], ecx
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 3
mov dword [esp + 0xc], 0
mov dword [esp + 8], 3
mov dword [esp + 4], 0x40000000
mov eax, dword [ebp - 0x1244]
call eax
mov edi, dword [0x5b41f0]
sub esp, 0x1c
mov esi, eax
call fcn.00492bc0
mov ecx, dword [eax + 0x10]
mov dword [eax + 0x14], 1
lea edx, [ecx + ecx]
xor ecx, ecx
test edi, edi
setne cl
or edx, ecx
mov dword [eax + 0x10], edx
jmp 0x4816a8
mov dword [esp + 0xc], edx
mov dword [esp], eax
mov dword [esp + 8], esi
mov dword [esp + 4], str.CreateFile_returned:__p__lu_n
call fcn.00472ba0
call fcn.00492bc0
shr dword [eax + 0x10], 1
call fcn.00492bc0
mov edi, dword [eax + 0x14]
mov dword [eax + 0x14], 0
test edi, edi
je 0x4816e8
call fcn.00492bc0
mov dword [eax], 0x4b8dcc
mov dword [eax + 4], 0xed9
xor eax, eax
mov edx, dword [ebx + 0x34]
cmp esi, 0xffffffff
jne 0x481688
xor eax, eax
cmp edx, 0x20
sete al
jmp 0x481688
cmp esi, 0xffffffff
je 0x4816fb
mov dword [esp], esi
mov eax, dword [ebp - 0x1248]
call eax
sub esp, 4
lea eax, [ebp - 0x1110]
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 3
mov dword [esp + 0xc], 0
mov dword [esp + 8], 3
mov dword [esp + 4], 0x80000000
mov dword [esp], eax
mov eax, dword [ebp - 0x1244]
call eax
sub esp, 0x1c
mov ebx, eax
mov eax, 0xede
call fcn.00472290
mov edx, dword fs:[0x18]
mov eax, dword [edx + 0x34]
mov dword [ebp - 0x1244], edx
mov dword [esp + 4], str.CreateFile_failed:__lu_n
mov dword [esp + 8], eax
xor eax, eax
cmp ebx, 0xffffffff
setne al
mov dword [esp], eax
call fcn.00472ba0
lea eax, [ebp - 0x1238]
mov dword [esp], ebx
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x100c]
mov dword [esp + 0x10], 0
mov dword [esp + 8], 0x1000
mov dword [esp + 4], eax
call dword [sym.imp.kernel32.dll_ReadFile]
sub esp, 0x14
mov esi, eax
mov eax, 0xee0
call fcn.00472290
mov edx, dword [ebp - 0x1244]
mov eax, dword [edx + 0x34]
mov dword [esp + 4], str.ReadFile_failed:__lu_n
mov dword [esp], esi
mov dword [esp + 8], eax
call fcn.00472ba0
mov eax, 0xee1
call fcn.00472290
mov eax, dword [ebp - 0x1238]
mov dword [esp + 4], str.size___lu_n
cmp eax, 0x144
mov dword [esp + 8], eax
sete al
movzx eax, al
mov dword [esp], eax
call fcn.00472ba0
mov dword [esp], ebx
mov eax, dword [ebp - 0x1248]
call eax
mov ecx, 0x144
mov edx, 0x4c7620
sub esp, 4
mov dword [esp + 4], 0
mov dword [esp], str.emf_Bezier
mov ebx, dword [ebp - 0x1240]
mov eax, ebx
call fcn.0047e2e0
test eax, eax
je 0x481845
mov edx, dword [0x4975a8]
test edx, edx
jne 0x481a78
mov eax, dword [ebp - 0x1240]
mov ebx, dword [sym.imp.gdi32.dll_DeleteEnhMetaFile]
mov esi, dword fs:[0x18]
mov dword [esp], eax
call ebx
sub esp, 4
mov dword [ebp - 0x1244], eax
mov eax, 0xeeb
call fcn.00472290
mov eax, dword [esi + 0x34]
mov dword [esp + 4], str.Could_not_delete_emf:__lu_n
mov dword [esp + 8], eax
mov edx, dword [ebp - 0x1244]
mov dword [esp], edx
call fcn.00472ba0
mov eax, dword [ebp - 0x1240]
mov dword [esi + 0x34], 0xdeadbeef
mov dword [esp], eax
call ebx
sub esp, 4
mov dword [ebp - 0x1240], eax
mov eax, 0xeef
call fcn.00472290
mov dword [esp + 4], str.DeleteEnhMetaFile_succeeded_n
xor eax, eax
mov edx, dword [ebp - 0x1240]
test edx, edx
sete al
mov dword [esp], eax
call fcn.00472ba0
mov eax, 0xef0
call fcn.00472290
mov eax, dword [esi + 0x34]
mov dword [esp + 4], str.GetLastError_____lu_n
mov dword [esp + 8], eax
xor eax, eax
cmp dword [esi + 0x34], 6
sete al
mov dword [esp], eax
call fcn.00472ba0
mov eax, dword [ebp - 0x123c]
mov dword [esi + 0x34], 0xdeadbeef
mov dword [esp], eax
mov eax, dword [ebp - 0x124c]
call eax
mov dword [ebp - 0x123c], eax
sub esp, 4
mov eax, 0xef4
call fcn.00472290
mov edx, dword [ebp - 0x123c]
mov eax, dword [esi + 0x34]
test edx, edx
je 0x481ab8
mov dword [esp + 8], edx
mov dword [esp + 0xc], eax
mov dword [esp], edi
mov dword [esp + 4], str.CloseMetaFile_returned__p___lu__n
mov esi, dword fs:[0x18]
call fcn.00472ba0
lea eax, [ebp - 0x1110]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_DeleteFileA]
sub esp, 4
mov edi, eax
mov eax, 0xef8
call fcn.00472290
mov eax, dword [esi + 0x34]
mov dword [esp], edi
mov dword [esp + 4], str.Could_not_delete_file:__lu_n
mov dword [esp + 8], eax
call fcn.00472ba0
mov dword [esi + 0x34], 0xdeadbeef
mov dword [esp], 0xdeadbeef
call ebx
sub esp, 4
mov ebx, eax
mov eax, 0xefc
call fcn.00472290
xor eax, eax
test ebx, ebx
mov dword [esp + 4], str.DeleteEnhMetaFile_succeeded_n
sete al
mov dword [esp], eax
call fcn.00472ba0
mov eax, 0xefd
call fcn.00472290
mov eax, dword [esi + 0x34]
mov dword [esp + 4], str.GetLastError_____lu_n
mov dword [esp + 8], eax
xor eax, eax
cmp dword [esi + 0x34], 6
sete al
mov dword [esp], eax
call fcn.00472ba0
mov dword [esi + 0x34], 0xdeadbeef
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], 0xdeadbeef
call dword [sym.imp.gdi32.dll_GetEnhMetaFileBits]
sub esp, 0xc
mov dword [ebp - 0x1238], eax
mov eax, 0xf01
call fcn.00472290
mov eax, dword [ebp - 0x1238]
mov dword [esp + 4], str.GetEnhMetaFileBitsEx_returned__lu_n
test eax, eax
mov dword [esp + 8], eax
sete al
movzx eax, al
mov dword [esp], eax
call fcn.00472ba0
mov eax, 0xf02
call fcn.00472290
mov eax, dword [esi + 0x34]
mov dword [esp + 4], str.GetLastError_____lu_n
mov dword [esp + 8], eax
xor eax, eax
cmp dword [esi + 0x34], 6
sete al
mov dword [esp], eax
call fcn.00472ba0
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, ebx
mov edx, str.emf_Bezier
call fcn.004769e0
mov eax, dword [0x4975a8]
test eax, eax
je 0x481845
mov edx, str.emf_Bezier
mov eax, ebx
call fcn.00476910
jmp 0x481845
xor eax, eax
cmp edx, 0x20
sete al
jmp 0x481306
xor ecx, ecx
cmp eax, 6
sete cl
mov edi, ecx
jmp 0x481935