Function at 0x45af90
Capabilities:
Contain obfuscated stackstrings
Delete file

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
lea edi, [ebp - 0x148]
push ebx
sub esp, 0x1d8
mov dword [ebp - 0x190], 0x650054
mov dword [ebp - 0x18c], 0x740073
mov dword [ebp - 0x188], 0xffff
mov dword [ebp - 0x1a8], 0x212a25bc
mov dword [esp], 0
call dword [sym.imp.user32.dll_GetDC]
mov ecx, 0xe
mov dword [ebp - 0x14c], 0x10
mov ebx, eax
xor eax, eax
sub esp, 4
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x14c]
mov dword [ebp - 0x130], 0x74737953
mov dword [ebp - 0x12d], 0x6d6574
mov dword [esp], eax
mov eax, dword [sym.imp.gdi32.dll_CreateFontIndirectA]
mov dword [ebp - 0x1bc], eax
call eax
sub esp, 4
mov esi, eax
mov eax, 0x643
call fcn.00446860
xor eax, eax
test esi, esi
mov dword [esp + 4], str.CreateFontIndirect_failed_n
setne al
mov dword [esp], eax
call fcn.004471c0
mov eax, dword [sym.imp.gdi32.dll_SelectObject]
mov dword [esp + 4], esi
mov dword [esp], ebx
mov dword [ebp - 0x1ac], eax
call eax
sub esp, 8
mov esi, eax
mov eax, 0x645
call fcn.00446860
lea eax, [ebp - 0x184]
mov dword [esp], ebx
mov dword [esp + 4], eax
mov eax, dword [sym.imp.gdi32.dll_GetTextMetricsA]
mov dword [ebp - 0x1b8], eax
call eax
sub esp, 8
mov dword [esp + 4], str.GetTextMetrics_failed_n
mov dword [esp], eax
call fcn.004471c0
cmp byte [ebp - 0x150], 0
jne 0x45ba20
mov ecx, dword [sym.imp.gdi32.dll_GetGlyphIndicesW]
lea eax, [ebp - 0x19c]
lea edi, [ebp - 0x190]
mov dword [esp + 0x10], 1
mov dword [ebp - 0x1b0], eax
mov dword [esp + 4], edi
mov dword [esp + 0xc], eax
mov dword [esp + 8], 5
mov dword [esp], ebx
mov dword [ebp - 0x1b4], ecx
call ecx
sub esp, 0x14
mov dword [ebp - 0x1c0], eax
mov eax, 0x64a
call fcn.00446860
mov edx, dword [ebp - 0x1c0]
xor eax, eax
mov dword [esp + 4], str.GetGlyphIndicesW_count_of_glyphs_should__5_not__ld_n
cmp edx, 5
mov dword [esp + 8], edx
sete al
mov dword [esp], eax
call fcn.004471c0
mov eax, 0x64b
call fcn.00446860
movzx eax, word [ebp - 0x194]
mov dword [esp + 4], str.GetGlyphIndicesW_should_have_returned_a_nonexistent_char_not__04x_n
mov edx, eax
cmp ax, 0x1f
mov dword [esp + 8], eax
sete al
cmp dx, 0xffff
sete dl
or eax, edx
movzx eax, al
mov dword [esp], eax
call fcn.004471c0
mov dword [esp + 0x10], 0
mov eax, dword [ebp - 0x1b0]
mov dword [esp + 4], edi
mov dword [esp + 0xc], eax
mov dword [esp + 8], 5
mov dword [esp], ebx
mov ecx, dword [ebp - 0x1b4]
call ecx
sub esp, 0x14
mov edi, eax
mov eax, 0x64e
call fcn.00446860
xor eax, eax
cmp edi, 5
mov dword [esp + 8], edi
sete al
mov dword [esp + 4], str.GetGlyphIndicesW_count_of_glyphs_should__5_not__ld_n
mov dword [esp], eax
call fcn.004471c0
mov eax, 0x64f
call fcn.00446860
movzx eax, word [ebp - 0x194]
movzx edx, byte [ebp - 0x156]
mov dword [esp + 4], str.GetGlyphIndicesW_should_have_returned_a__04x_not__04x_n
mov ecx, eax
mov dword [esp + 0xc], eax
movzx eax, dl
cmp cx, 0x20
mov dword [esp + 8], eax
sete al
cmp dx, cx
sete dl
or eax, edx
movzx eax, al
mov dword [esp], eax
call fcn.004471c0
mov dword [esp + 4], esi
lea edi, [ebp - 0x148]
lea esi, [ebp - 0x14c]
mov dword [esp], ebx
mov eax, dword [ebp - 0x1ac]
call eax
mov ecx, dword [sym.imp.gdi32.dll_DeleteObject]
sub esp, 8
mov dword [esp], eax
mov dword [ebp - 0x1c0], ecx
call ecx
xor eax, eax
mov ecx, 0xe
mov edx, 0x66
rep stosd dword es:[edi], eax
sub esp, 4
mov word [ebp - 0x124], dx
lea edi, [ebp - 0x184]
mov dword [ebp - 0x130], 0x5320534d
mov dword [ebp - 0x12c], 0x20736e61
mov dword [ebp - 0x128], 0x69726553
mov dword [ebp - 0x14c], 0xfffffff3
mov byte [ebp - 0x135], 1
mov dword [esp], esi
mov esi, dword [ebp - 0x1bc]
call esi
sub esp, 4
mov esi, eax
call fcn.00492bc0
mov dword [eax], 0x4ab7f5
mov dword [eax + 4], 0x65d
xor eax, eax
test esi, esi
setne al
mov dword [esp + 4], str.CreateFontIndirect_failed_n
mov dword [esp], eax
call fcn.004471c0
mov dword [esp + 4], esi
mov dword [esp], ebx
mov eax, dword [ebp - 0x1ac]
call eax
sub esp, 8
mov esi, eax
mov eax, 0x65f
call fcn.00446860
mov dword [esp + 4], edi
mov dword [esp], ebx
mov edi, dword [ebp - 0x1b8]
call edi
sub esp, 8
mov dword [esp + 4], str.GetTextMetrics_failed_n
mov dword [esp], eax
call fcn.004471c0
mov dword [ebp - 0x19c], 0
mov dword [esp + 0x10], 1
mov edi, dword [ebp - 0x1b0]
mov dword [esp + 8], 2
mov dword [esp + 0xc], edi
lea edi, [ebp - 0x1a8]
mov dword [esp + 4], edi
mov dword [esp], ebx
mov edx, dword [ebp - 0x1b4]
call edx
sub esp, 0x14
mov dword [ebp - 0x1c4], eax
call fcn.00492bc0
mov edx, dword [ebp - 0x1c4]
mov dword [eax], 0x4ab7f5
mov dword [eax + 4], 0x663
xor eax, eax
cmp edx, 2
sete al
mov dword [esp + 8], edx
mov dword [esp], eax
mov dword [esp + 4], 0x4afbc1
call fcn.004471c0
call fcn.00492bc0
mov dword [eax], 0x4ab7f5
mov dword [eax + 4], 0x664
movzx eax, word [ebp - 0x19c]
mov dword [esp + 4], 0x4afbca
mov edx, eax
cmp ax, 0x1f
mov dword [esp + 8], eax
sete al
cmp dx, 0xffff
sete dl
or eax, edx
movzx eax, al
mov dword [esp], eax
call fcn.004471c0
call fcn.00492bc0
mov dword [eax], 0x4ab7f5
mov dword [eax + 4], 0x665
movzx eax, word [ebp - 0x19a]
mov dword [esp + 4], 0x4afbca
mov edx, eax
cmp ax, 0x1f
mov dword [esp + 8], eax
sete al
cmp dx, 0xffff
sete dl
or eax, edx
movzx eax, al
mov dword [esp], eax
call fcn.004471c0
mov dword [ebp - 0x19c], 0
mov dword [esp + 0x10], 0
mov edx, dword [ebp - 0x1b0]
mov dword [esp + 4], edi
mov dword [esp + 0xc], edx
mov dword [esp + 8], 2
mov dword [esp], ebx
mov edx, dword [ebp - 0x1b4]
call edx
sub esp, 0x14
mov edi, eax
mov eax, 0x669
call fcn.00446860
xor eax, eax
cmp edi, 2
mov dword [esp + 8], edi
sete al
mov dword [esp + 4], 0x4afbc1
mov dword [esp], eax
call fcn.004471c0
mov eax, 0x66a
call fcn.00446860
movzx eax, word [ebp - 0x19c]
mov dword [esp + 4], 0x4afbca
mov edx, eax
mov dword [esp + 8], eax
movzx eax, byte [ebp - 0x156]
cmp ax, dx
sete al
cmp dx, 0x20
sete dl
or eax, edx
movzx eax, al
mov dword [esp], eax
call fcn.004471c0
mov eax, 0x66b
call fcn.00446860
movzx eax, word [ebp - 0x19a]
mov dword [esp + 4], 0x4afbca
mov edx, eax
mov dword [esp + 8], eax
movzx eax, byte [ebp - 0x156]
cmp ax, dx
sete al
cmp dx, 0x20
sete dl
or eax, edx
movzx eax, al
mov dword [esp], eax
call fcn.004471c0
mov dword [esp + 4], esi
mov dword [esp], ebx
mov eax, dword [ebp - 0x1ac]
call eax
sub esp, 8
mov dword [esp], eax
mov ecx, dword [ebp - 0x1c0]
call ecx
mov eax, 0x4ac1ca
sub esp, 4
call fcn.00446060
test eax, eax
je 0x45ba58
xor eax, eax
mov ecx, 0xe
lea edi, [ebp - 0x148]
mov dword [ebp - 0x14c], 0x14
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x14c]
lea esi, [ebp - 0x184]
mov dword [ebp - 0x130], 0x6f686154
mov dword [ebp - 0x12d], 0x616d6f
mov dword [esp], eax
mov eax, dword [ebp - 0x1bc]
call eax
sub esp, 4
mov dword [esp + 4], eax
mov dword [esp], ebx
mov eax, dword [ebp - 0x1ac]
call eax
sub esp, 8
mov edi, eax
mov eax, 0x67b
call fcn.00446860
mov dword [esp + 4], esi
mov dword [esp], ebx
mov esi, dword [ebp - 0x1b8]
call esi
sub esp, 8
mov dword [esp + 4], str.GetTextMetric_failed_n
mov dword [esp], eax
call fcn.004471c0
mov dword [esp + 0x10], 1
mov esi, dword [ebp - 0x1b0]
lea ecx, [ebp - 0x190]
mov dword [esp + 8], 5
mov dword [esp + 0xc], esi
mov dword [esp + 4], ecx
mov dword [esp], ebx
mov ecx, dword [ebp - 0x1b4]
call ecx
sub esp, 0x14
mov esi, eax
mov eax, 0x67e
call fcn.00446860
xor eax, eax
cmp esi, 5
mov dword [esp + 8], esi
sete al
mov dword [esp + 4], str.GetGlyphIndicesW_count_of_glyphs_should__5_not__ld_n
mov dword [esp], eax
call fcn.004471c0
mov eax, 0x67f
call fcn.00446860
movzx edx, word [ebp - 0x194]
mov dword [esp + 4], str.GetGlyphIndicesW_should_have_returned_0xffff_char_not__04x_n
cmp dx, 0xffff
mov dword [esp + 8], edx
sete al
movzx eax, al
mov dword [esp], eax
call fcn.004471c0
movzx eax, byte [ebp - 0x156]
mov word [ebp - 0x190], ax
mov dword [esp + 0x10], 0
mov esi, dword [ebp - 0x1b0]
mov dword [esp + 8], 5
mov dword [esp + 0xc], esi
lea esi, [ebp - 0x190]
mov dword [esp + 4], esi
mov dword [esp], ebx
mov ecx, dword [ebp - 0x1b4]
call ecx
sub esp, 0x14
mov esi, eax
mov eax, 0x683
call fcn.00446860
xor eax, eax
cmp esi, 5
mov dword [esp + 8], esi
sete al
mov dword [esp + 4], str.GetGlyphIndicesW_count_of_glyphs_should__5_not__ld_n
lea esi, [ebp - 0x1a0]
mov dword [esp], eax
call fcn.004471c0
mov eax, 0x684
call fcn.00446860
movzx edx, word [ebp - 0x19c]
mov dword [esp + 4], str.GetGlyphIndicesW_for_tmDefaultChar_should_be_0_not__04x_n
test dx, dx
mov dword [esp + 8], edx
sete al
movzx eax, al
mov dword [esp], eax
call fcn.004471c0
mov eax, 0x685
call fcn.00446860
movzx edx, word [ebp - 0x194]
mov dword [esp + 4], str.GetGlyphIndicesW_should_have_returned_0_not__04x_n
test dx, dx
mov dword [esp + 8], edx
sete al
movzx eax, al
mov dword [esp], eax
call fcn.004471c0
mov dword [esp + 4], edi
mov dword [esp], ebx
mov eax, dword [ebp - 0x1ac]
call eax
sub esp, 8
mov dword [esp], eax
mov eax, dword [ebp - 0x1c0]
call eax
mov edx, esi
mov eax, str.wine_nul.ttf
sub esp, 4
call fcn.00445b90
test eax, eax
je 0x45ba00
lea ecx, [ebp - 0x110]
mov edx, esi
mov dword [ebp - 0x1c4], ecx
call fcn.00445c40
mov edi, eax
xor eax, eax
test edi, edi
setne al
mov dword [ebp - 0x1d0], eax
mov eax, 0x689
call fcn.00446860
mov dword [esp], edi
mov dword [esp + 4], str.Failed_to_create_test_font_file._n
call fcn.004471c0
mov eax, dword [ebp - 0x1c4]
lea edx, [ebp - 0x1a4]
call fcn.00445e10
mov edi, eax
mov eax, 0x68b
call fcn.00446860
xor eax, eax
test edi, edi
mov dword [esp + 4], str.Failed_to_map_font_file._n
setne al
mov dword [esp], eax
call fcn.004471c0
mov dword [ebp - 0x1a0], 0
mov dword [esp + 0xc], esi
mov dword [esp + 8], 0
mov eax, dword [ebp - 0x1a4]
mov esi, dword fs:[0x18]
mov dword [esp + 4], eax
mov dword [ebp - 0x1c8], edi
mov dword [esp], edi
lea edi, [ebp - 0x148]
call dword [sym.imp.gdi32.dll_AddFontMemResourceEx]
sub esp, 0x10
mov dword [ebp - 0x1cc], eax
mov eax, 0x68e
call fcn.00446860
mov eax, dword [esi + 0x34]
mov dword [esp + 4], str.Failed_to_add_resource___ld._n
mov dword [esp + 8], eax
mov ecx, dword [ebp - 0x1d0]
mov dword [esp], ecx
call fcn.004471c0
mov eax, 0x68f
call fcn.00446860
mov eax, dword [ebp - 0x1a0]
mov dword [esp + 4], str.Unexpected_number_of_fonts__lu._n
cmp eax, 1
mov dword [esp + 8], eax
sete al
movzx eax, al
mov dword [esp], eax
call fcn.004471c0
xor eax, eax
mov ecx, 0xe
mov dword [ebp - 0x14c], 0x14
rep stosd dword es:[edi], eax
lea ecx, [ebp - 0x14c]
mov dword [ebp - 0x130], 0x656e6977
mov dword [ebp - 0x12c], 0x6c756e5f
mov dword [esp], ecx
mov ecx, dword [ebp - 0x1bc]
call ecx
sub esp, 4
mov dword [esp], ebx
mov dword [esp + 4], eax
mov ecx, dword [ebp - 0x1ac]
call ecx
sub esp, 8
mov dword [ebp - 0x1bc], eax
mov eax, 0x697
call fcn.00446860
lea edx, [ebp - 0x184]
mov dword [esp], ebx
mov dword [esp + 4], edx
mov edx, dword [ebp - 0x1b8]
call edx
sub esp, 8
mov dword [esp], eax
mov dword [esp + 4], str.GetTextMetric_failed_n
call fcn.004471c0
mov eax, 0x54
mov word [ebp - 0x190], ax
mov dword [esp + 0x10], 0
mov edx, dword [ebp - 0x1b0]
mov dword [esp], ebx
mov dword [esp + 0xc], edx
lea edx, [ebp - 0x190]
mov dword [esp + 8], 5
mov dword [esp + 4], edx
mov edx, dword [ebp - 0x1b4]
call edx
sub esp, 0x14
mov edi, eax
mov eax, 0x69a
call fcn.00446860
xor eax, eax
cmp edi, 5
mov dword [esp + 8], edi
sete al
mov dword [esp + 4], str.GetGlyphIndicesW_count_of_glyphs_should__5_not__ld_n
mov dword [esp], eax
call fcn.004471c0
mov eax, 0x69b
call fcn.00446860
movzx ecx, word [ebp - 0x19c]
mov dword [esp + 4], str.GetGlyphIndicesW_for_tmDefaultChar_should_be_0_not__04x_n
test cx, cx
mov dword [esp + 8], ecx
sete al
movzx eax, al
mov dword [esp], eax
call fcn.004471c0
mov eax, 0x69c
call fcn.00446860
movzx ecx, word [ebp - 0x194]
mov dword [esp + 4], str.GetGlyphIndicesW_should_have_returned_0_not__04x_n
test cx, cx
mov dword [esp + 8], ecx
sete al
movzx eax, al
mov dword [esp], eax
call fcn.004471c0
mov edx, dword [ebp - 0x1bc]
mov dword [esp], ebx
mov dword [esp + 4], edx
mov ecx, dword [ebp - 0x1ac]
call ecx
sub esp, 8
mov dword [esp], eax
mov ecx, dword [ebp - 0x1c0]
call ecx
sub esp, 4
mov dword [esp + 4], ebx
mov dword [esp], 0
call dword [sym.imp.user32.dll_ReleaseDC]
mov ebx, dword [ebp - 0x1cc]
sub esp, 8
mov dword [esp], ebx
call dword [sym.imp.gdi32.dll_RemoveFontMemResourceEx]
sub esp, 4
mov ebx, eax
mov eax, 0x6a2
call fcn.00446860
mov eax, dword [esi + 0x34]
mov dword [esp], ebx
mov dword [esp + 4], str.RemoveFontMemResourceEx_error__ld_n
mov dword [esp + 8], eax
call fcn.004471c0
mov edi, dword [ebp - 0x1c8]
mov dword [esp], edi
call dword [sym.imp.kernel32.dll_UnmapViewOfFile]
mov eax, dword [ebp - 0x1c4]
sub esp, 4
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_DeleteFileA]
sub esp, 4
mov ebx, eax
mov eax, 0x6a5
call fcn.00446860
mov eax, dword [esi + 0x34]
mov dword [esp], ebx
mov dword [esp + 4], str.Failed_to_delete_font_file___ld._n
mov dword [esp + 8], eax
call fcn.004471c0
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
lea eax, [ebp - 0x110]
xor edi, edi
mov dword [ebp - 0x1d0], 0
mov dword [ebp - 0x1c4], eax
jmp 0x45b710
mov eax, 0x654
call fcn.00446860
mov dword [esp], str.GetGlyphIndices_System_font_tests_only_for_ANSI_CHARSET_n
call fcn.00446a30
lea eax, [ebp - 0x19c]
mov dword [ebp - 0x1b0], eax
mov eax, dword [sym.imp.gdi32.dll_GetGlyphIndicesW]
mov dword [ebp - 0x1b4], eax
jmp 0x45b1e1
mov eax, 0x671
call fcn.00446860
mov dword [esp], str.Tahoma_is_not_installed_so_skipping_this_test_n
call fcn.00446a30
mov dword [esp + 4], ebx
mov dword [esp], 0
call dword [sym.imp.user32.dll_ReleaseDC]
sub esp, 8
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret