Function at 0x458a90
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push edi
xor edi, edi
push esi
push ebx
sub esp, 0x124
mov dword [ebp - 0x120], eax
lea edx, [ebp - 0x114]
mov eax, str.wine_vdmx.ttf
call fcn.00445b90
mov edx, dword [ebp - 0x114]
mov ebx, eax
mov dword [esp], edx
mov dword [ebp - 0x118], edx
call dword [sym.imp.msvcrt.dll_malloc]
mov edx, dword [ebp - 0x118]
mov dword [esp + 4], ebx
mov dword [esp], eax
mov esi, eax
mov dword [esp + 8], edx
call sub.msvcrt.dll_memcpy
movzx ecx, word [esi + 4]
lea eax, [esi + 0xc]
mov edx, ecx
rol dx, 8
test cx, cx
je 0x49413c
movzx edx, dx
shl edx, 4
lea edx, [esi + edx + 0xc]
jmp 0x458b13
add eax, 0x10
cmp edx, eax
je 0x458dda
cmp dword [eax], 0x584d4456
jne 0x458b08
mov ebx, dword [eax + 8]
movzx eax, word [edi*8 + 0x4b2ec0]
bswap ebx
rol ax, 8
add ebx, esi
mov word [ebx], ax
call fcn.00492bc0
mov dword [eax], 0x4ab7f5
mov dword [eax + 4], 0x83a
movzx edx, word [ebx + 2]
mov dword [esp + 4], 0x4ace98
mov eax, edx
rol ax, 8
movzx eax, ax
mov dword [esp + 8], eax
xor eax, eax
cmp dx, 0x100
sete al
mov dword [esp], eax
call fcn.004471c0
call fcn.00492bc0
mov dword [eax], 0x4ab7f5
mov dword [eax + 4], 0x83b
movzx edx, word [ebx + 4]
mov dword [esp + 4], 0x4ace98
mov eax, edx
rol ax, 8
movzx eax, ax
mov dword [esp + 8], eax
xor eax, eax
cmp dx, 0x100
sete al
mov dword [esp], eax
call fcn.004471c0
movzx eax, byte [edi*8 + 0x4b2ec2]
lea edx, [ebp - 0x114]
mov byte [ebx + 6], al
lea ebx, [ebp - 0x110]
mov eax, esi
mov ecx, ebx
call fcn.00445c40
mov dword [esp], esi
call dword [sym.imp.msvcrt.dll_free]
call fcn.00492bc0
mov dword [eax], 0x4ab7f5
mov dword [eax + 4], 0x842
mov dword [esp], 0
call dword [sym.imp.user32.dll_GetDC]
sub esp, 4
mov esi, eax
mov dword [esp], eax
mov eax, dword [sym.imp.gdi32.dll_EnumFontFamiliesA]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x445940
mov dword [esp + 4], 0x4af53b
mov dword [ebp - 0x118], eax
call eax
sub esp, 0x10
mov dword [ebp - 0x11c], eax
mov dword [esp + 4], esi
mov esi, dword [sym.imp.user32.dll_ReleaseDC]
mov dword [esp], 0
call esi
xor eax, eax
sub esp, 8
mov dword [esp + 4], str.Already_installed_n
mov edx, dword [ebp - 0x11c]
test edx, edx
setne al
mov dword [esp], eax
call fcn.004471c0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x10
mov dword [esp], ebx
call dword [sym.imp.gdi32.dll_AddFontResourceExA]
sub esp, 0xc
test eax, eax
jne 0x458d20
call fcn.00492bc0
mov dword [eax], 0x4ab7f5
mov dword [eax + 4], 0x844
mov dword [esp], str.Unable_to_add_ttf_font_resource_n
call fcn.0044e0c0
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_DeleteFileA]
sub esp, 4
mov ebx, eax
call fcn.00492bc0
mov dword [eax], 0x4ab7f5
mov dword [eax + 4], 0x84c
mov eax, dword fs:[0x18]
mov edx, dword [eax + 0x34]
test ebx, ebx
jne 0x458d10
cmp edx, 5
jne 0x458ce0
mov eax, dword [0x5b41f0]
xor ebx, ebx
test eax, eax
sete bl
lea esi, [esi]
mov dword [esp + 8], edx
add edi, 1
mov dword [esp + 4], str.DeleteFile_error__ld_n
mov dword [esp], ebx
call fcn.004471c0
cmp edi, 4
jne 0x458aa4
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov ebx, 1
jmp 0x458ce0
call fcn.00492bc0
mov dword [eax], 0x4ab7f5
mov dword [eax + 4], 0x847
mov dword [esp], 0
call dword [sym.imp.user32.dll_GetDC]
sub esp, 4
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x445940
mov dword [esp + 4], 0x4af53b
mov dword [esp], eax
mov dword [ebp - 0x11c], eax
mov eax, dword [ebp - 0x118]
call eax
mov edx, dword [ebp - 0x11c]
sub esp, 0x10
mov dword [ebp - 0x118], eax
mov dword [esp + 4], edx
mov dword [esp], 0
call esi
xor eax, eax
sub esp, 8
mov dword [esp + 4], str.Not_installed_n
mov ecx, dword [ebp - 0x118]
test ecx, ecx
sete al
mov dword [esp], eax
call fcn.004471c0
mov edx, dword [edi*8 + 0x4b2ec4]
mov eax, dword [ebp - 0x120]
call fcn.00448bc0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x10
mov dword [esp], ebx
call dword [sym.imp.gdi32.dll_RemoveFontResourceExA]
sub esp, 0xc
jmp 0x458c9e
jmp 0x49413c
mov word [0], 0
ud2