Function at 0x46e4a0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x2f8
push esi
push edi
mov edi, ecx
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x46e4bd
mov dword [ecx], 0xffffffff
cmp word [edi], 0
jne 0x46e536
cmp word [edx], 0
jne 0x46e536
mov eax, dword [0x4e9d50]
test eax, eax
jne 0x46e524
mov ecx, dword [0x4e9d4c]
test ecx, ecx
jne 0x46e4fe
push 0x4b00
call fcn.0049f95d
mov ecx, eax
add esp, 4
mov dword [0x4e9d4c], ecx
test ecx, ecx
je 0x46ebcf
mov eax, dword [0x4e9d50]
lea esi, [eax + eax*2]
shl esi, 5
push 0x11
add esi, ecx
call dword [sym.imp.GDI32.dll_GetStockObject]
push esi
push 0x5c
push eax
mov dword [esi + 0x5c], eax
call dword [sym.imp.GDI32.dll_GetObjectW]
inc dword [0x4e9d50]
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x46e52e
mov dword [ecx], 0xff000000
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 8]
test eax, eax
jne 0x46e551
cmp dword [0x4e9d50], eax
jle 0x46eb6f
mov eax, dword [0x4e9d4c]
mov dword [ebp + 8], eax
cmp word [edx], 0
movups xmm0, xmmword [eax]
movups xmmword [esp + 0x30], xmm0
movups xmm0, xmmword [eax + 0x10]
movups xmmword [esp + 0x40], xmm0
movups xmm0, xmmword [eax + 0x20]
movups xmmword [esp + 0x50], xmm0
movups xmm0, xmmword [eax + 0x30]
movups xmmword [esp + 0x60], xmm0
movups xmm0, xmmword [eax + 0x40]
movups xmmword [esp + 0x70], xmm0
movups xmm0, xmmword [eax + 0x50]
movups xmmword [esp + 0x80], xmm0
je 0x46e5a9
push 0x1f
push edx
lea eax, [esp + 0x54]
push eax
call fcn.004aad14
add esp, 0xc
xor eax, eax
mov word [esp + 0x8a], ax
or eax, 0xffffffff
mov dword [esp + 0x20], 0
mov dword [esp + 0x18], eax
movzx eax, word [edi]
cmp eax, 0x20
je 0x46e5c5
cmp eax, 9
jne 0x46e5ca
add edi, 2
jmp 0x46e5b8
test ax, ax
je 0x46e85e
mov edx, edi
mov ecx, eax
cmp cx, 0x20
je 0x46e5f1
cmp cx, 9
je 0x46e5f1
movzx eax, word [edx + 2]
add edx, 2
mov ecx, eax
test ax, ax
jne 0x46e5d7
mov eax, edx
mov dword [esp + 0x1c], edx
sub eax, edi
mov esi, 0x101
sar eax, 1
inc eax
cmp eax, esi
cmovb esi, eax
lea eax, [esp + 0xf8]
dec esi
push esi
push edi
push eax
call fcn.004aad14
add esp, 0xc
xor eax, eax
mov word [esp + esi*2 + 0xf8], ax
lea eax, [esp + 0xf8]
push str.Bold
push eax
call fcn.0049f841
add esp, 8
test eax, eax
jne 0x46e64d
mov edi, dword [esp + 0x1c]
mov dword [esp + 0x40], 0x2bc
jmp 0x46e5b8
lea eax, [esp + 0xf8]
push str.italic
push eax
call fcn.0049f841
add esp, 8
test eax, eax
jne 0x46e674
mov edi, dword [esp + 0x1c]
mov byte [esp + 0x44], 1
jmp 0x46e5b8
lea eax, [esp + 0xf8]
push str.norm
push eax
call fcn.0049f841
add esp, 8
test eax, eax
jne 0x46e6a7
mov edi, dword [esp + 0x1c]
mov word [esp + 0x44], ax
mov byte [esp + 0x46], al
mov dword [esp + 0x40], 0x190
jmp 0x46e5b8
lea eax, [esp + 0xf8]
push str.underline
push eax
call fcn.0049f841
add esp, 8
test eax, eax
jne 0x46e6ce
mov edi, dword [esp + 0x1c]
mov byte [esp + 0x45], 1
jmp 0x46e5b8
lea eax, [esp + 0xf8]
push str.strike
push eax
call fcn.0049f841
add esp, 8
test eax, eax
jne 0x46e6f5
mov edi, dword [esp + 0x1c]
mov byte [esp + 0x46], 1
jmp 0x46e5b8
mov edx, dword [esp + 0xf8]
mov eax, edx
and eax, 0xffdf
movzx ecx, ax
movzx eax, dx
lea esi, [edx - 0x61]
cmp si, 0x19
cmova ecx, eax
cmp word [esp + 0xfa], 0
movzx eax, cx
mov esi, eax
je case.0x46e76a.68
push eax
push 0x4da680
call fcn.0049d3cf
add esp, 8
test eax, eax
je 0x46e757
push ecx
push 1
push 0
xor edx, edx
lea ecx, [esp + 0x106]
call fcn.00481490
add esp, 0xc
test eax, eax
je case.0x46e76a.68
lea eax, [esi - 0x43]
cmp eax, 0x14
ja case.0x46e76a.68
movzx eax, byte [eax + 0x46ebf4]
jmp dword [eax*4 + 0x46ebe0]
cmp word [esp + 0xfa], 0
jne 0x46e78e
mov edi, dword [esp + 0x1c]
mov eax, 0xff000000
mov dword [esp + 0x18], eax
jmp 0x46e5b8
lea ecx, [esp + 0xfa]
call fcn.00482a20
mov dword [esp + 0x18], eax
cmp eax, 0xffffffff
jne 0x46e855
push 0x10
lea eax, [esp + 0x30]
push eax
lea eax, [esp + 0x102]
push eax
call fcn.004a5279
movzx edx, al
add esp, 0xc
movzx ecx, ax
shl edx, 8
shr ecx, 8
or edx, ecx
shr eax, 0x10
shl edx, 8
movzx eax, al
or edx, eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x18], edx
cmp word [eax], 0
je 0x46e855
push 0
mov edx, edi
mov ecx, str.Invalid_option.
call fcn.0040ddc0
add esp, 4
or eax, 0xffffffff
pop edi
pop esi
mov esp, ebp
pop ebp
ret
lea ecx, [esp + 0xfa]
call fcn.00481e40
mov edi, dword [esp + 0x1c]
mov dword [esp + 0x40], eax
jmp 0x46e5b8
lea eax, [esp + 0xfa]
push eax
call fcn.004a976f
fadd qword [0x4dc9e8]
mov edi, dword [esp + 0x20]
add esp, 4
fstp qword [esp + 0x20]
cvttsd2si eax, qword [esp + 0x20]
mov dword [esp + 0x20], eax
jmp 0x46e5b8
lea ecx, [esp + 0xfa]
call fcn.00481e40
mov byte [esp + 0x4a], al
mov edi, dword [esp + 0x1c]
jmp 0x46e5b8
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x46e86b
mov eax, dword [esp + 0x18]
mov dword [ecx], eax
push 0
call dword [sym.imp.USER32.dll_GetDC]
mov esi, eax
push 0x5a
push esi
call dword [sym.imp.GDI32.dll_GetDeviceCaps]
mov ecx, dword [esp + 0x20]
test ecx, ecx
je 0x46e896
push 0x48
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_MulDiv]
neg eax
mov dword [esp + 0x30], eax
push 0x1f
lea eax, [esp + 0x50]
mov byte [esp + 0xb3], 1
push eax
lea eax, [esp + 0xbc]
mov byte [esp + 0xbb], 0
push eax
call fcn.004aad14
add esp, 0xc
xor eax, eax
mov word [esp + 0xf2], ax
mov byte [esp + 0x17], al
push eax
lea eax, [esp + 0x1b]
push eax
push 0x482be0
lea eax, [esp + 0xa4]
push eax
push esi
call dword [sym.imp.GDI32.dll_EnumFontFamiliesExW]
cmp byte [esp + 0x17], 0
jne 0x46e910
mov ecx, dword [ebp + 8]
lea edx, [esp + 0x4c]
add ecx, 0x1c
sub edx, ecx
nop dword [eax + eax]
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [ecx + edx - 2], ax
test ax, ax
jne 0x46e900
push esi
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
mov eax, dword [0x4e9d50]
xor edi, edi
test eax, eax
jle 0x46e9a9
mov ecx, dword [0x4e9d4c]
xor esi, esi
lea eax, [esp + 0x4c]
push eax
lea eax, [ecx + 0x1c]
add eax, esi
push eax
call fcn.0049f841
mov ecx, dword [0x4e9d4c]
add esp, 8
test eax, eax
jne 0x46e988
mov eax, dword [esi + ecx]
cmp eax, dword [esp + 0x30]
jne 0x46e988
mov eax, dword [esi + ecx + 0x10]
cmp eax, dword [esp + 0x40]
jne 0x46e988
mov al, byte [esi + ecx + 0x14]
cmp al, byte [esp + 0x44]
jne 0x46e988
mov al, byte [esi + ecx + 0x15]
cmp al, byte [esp + 0x45]
jne 0x46e988
mov al, byte [esi + ecx + 0x16]
cmp al, byte [esp + 0x46]
jne 0x46e988
mov al, byte [esi + ecx + 0x1a]
cmp al, byte [esp + 0x4a]
je 0x46e997
mov eax, dword [0x4e9d50]
inc edi
add esi, 0x60
cmp edi, eax
jl 0x46e930
jmp 0x46e9a9
cmp edi, 0xffffffff
je 0x46e9a4
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [0x4e9d50]
cmp eax, 0xc8
jl 0x46ea83
mov ecx, dword [0x4ea500]
mov al, byte [0x4ea58c]
test ecx, ecx
je 0x46ea28
test al, al
je 0x46ea28
mov eax, dword [0x4e4788]
cmp dword [eax + 0x34], 0
jne 0x46ea06
cmp dword [0x4ea534], 0
jne 0x46ea06
cmp byte [0x4e9e3e], 0
jne 0x46ea06
push 0
push ecx
push 0x4cee30
push 0
push str.Too_many_fonts.
mov ecx, 0x4e9ec0
call fcn.0040d630
or eax, 0xffffffff
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push 0
push 0
push ecx
push 0x4cee30
push str.Too_many_fonts.
mov ecx, 0x4e9ec0
call fcn.0040c4b0
or eax, 0xffffffff
pop edi
pop esi
mov esp, ebp
pop ebp
ret
cmp byte [0x4ea58f], 0
je 0x46ea60
test al, al
jne 0x46ea60
push dword [0x4ea13c]
movzx eax, word [0x4ea138]
mov ecx, 0x4e9ec0
push eax
push 0x4cee30
push str.Too_many_fonts.
call fcn.0040c940
or eax, 0xffffffff
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push 0
push 0
push 0x4cee30
push 0
push str.Too_many_fonts.
mov ecx, 0x4e9ec0
call fcn.0040d630
or eax, 0xffffffff
pop edi
pop esi
mov esp, ebp
pop ebp
ret
lea eax, [esp + 0x30]
mov dword [esp + 0x34], 0
push eax
mov dword [esp + 0x3c], 0
mov dword [esp + 0x40], 0
mov word [esp + 0x4b], 0x401
mov byte [esp + 0x4d], 0
mov byte [esp + 0x4f], 0
call dword [sym.imp.GDI32.dll_CreateFontIndirectW]
mov dword [esp + 0x8c], eax
test eax, eax
jne 0x46eb78
mov ecx, dword [0x4ea500]
mov al, byte [0x4ea58c]
test ecx, ecx
je 0x46eb1d
test al, al
je 0x46eb1d
mov eax, dword [0x4e4788]
cmp dword [eax + 0x34], 0
jne 0x46eafb
cmp dword [0x4ea534], 0
jne 0x46eafb
cmp byte [0x4e9e3e], 0
jne 0x46eafb
push 0
push ecx
jmp 0x46eb59
push 0
push 0
push ecx
push 0x4cee30
push str.Cant_create_font.
mov ecx, 0x4e9ec0
call fcn.0040c4b0
or eax, 0xffffffff
pop edi
pop esi
mov esp, ebp
pop ebp
ret
cmp byte [0x4ea58f], 0
je 0x46eb55
test al, al
jne 0x46eb55
push dword [0x4ea13c]
movzx eax, word [0x4ea138]
mov ecx, 0x4e9ec0
push eax
push 0x4cee30
push str.Cant_create_font.
call fcn.0040c940
or eax, 0xffffffff
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push 0
push 0
push 0x4cee30
push 0
push str.Cant_create_font.
mov ecx, 0x4e9ec0
call fcn.0040d630
or eax, 0xffffffff
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, dword [0x4e9d50]
movups xmm0, xmmword [esp + 0x30]
pop edi
pop esi
lea eax, [ecx + ecx*2]
shl eax, 5
add eax, dword [0x4e9d4c]
inc ecx
mov dword [0x4e9d50], ecx
movups xmmword [eax], xmm0
movups xmm0, xmmword [esp + 0x38]
movups xmmword [eax + 0x10], xmm0
movups xmm0, xmmword [esp + 0x48]
movups xmmword [eax + 0x20], xmm0
movups xmm0, xmmword [esp + 0x58]
movups xmmword [eax + 0x30], xmm0
movups xmm0, xmmword [esp + 0x68]
movups xmmword [eax + 0x40], xmm0
movups xmm0, xmmword [esp + 0x78]
movups xmmword [eax + 0x50], xmm0
lea eax, [ecx - 1]
mov esp, ebp
pop ebp
ret
inc ecx
dec dword [ebx + 0x68c35de5]
xor dh, ch
dec esp
add byte [eax + 0x78], ch
daa
dec ebp
add al, ch
out dx, eax
stc
jmp dword [esi - 0x70]
push 0x4cee30
push str.Out_of_memory.
call fcn.0040dbd0
nop
jno 0x46ebc9
inc esi
add byte [ebp - 0x18], al
inc esi
add byte [eax], bl
call 0xe845ec34
inc esi
add ch, ah
out 0x46, eax
add byte [eax], al
add al, 4
add al, 4
add al, 4
add al, 4
add al, 4
add al, 4
add al, 1
add al, 2
add al, 4
add al, 3
int3