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

Disassembly:
push 0xffffffffffffffff
push 0x5e2879
mov eax, dword fs:[0]
push eax
sub esp, 0x118
mov eax, dword [0x694114]
xor eax, esp
mov dword [esp + 0x114], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x694114]
xor eax, esp
push eax
lea eax, [esp + 0x12c]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x13c]
mov edi, dword [esp + 0x164]
xor ebx, ebx
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x18], ebx
push str.span
lea ecx, [esp + 0xe4]
mov dword [esp + 0x138], ebx
call fcn.00402bb0
lea eax, [esp + 0xe0]
push eax
mov ecx, edi
mov byte [esp + 0x138], 1
mov dword [esp + 0x1c], 1
call fcn.004205f0
test eax, eax
je 0x54202c
mov byte [esp + 0x17], 1
cmp dword [esp + 0x150], ebx
jne 0x542030
mov byte [esp + 0x17], bl
mov ecx, dword [esp + 0xfc]
push ecx
mov dword [esp + 0x138], ebx
call fcn.005844d1
add esp, 4
cmp dword [esp + 0xf4], 8
jb 0x542061
mov edx, dword [esp + 0xe0]
push edx
call fcn.00584768
add esp, 4
cmp byte [esp + 0x17], bl
je 0x542126
call fcn.00420510
mov dword [esp + 0x50], eax
push 0xffffffffffffffff
lea eax, [esp + 0x58]
push str.tag___s__cant_have_attributes
push eax
mov byte [esp + 0x140], 2
call fcn.00402290
mov byte [esp + 0x140], 3
call fcn.00420510
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], ebx
mov dword [esp + 0x6c], ebx
sub esp, 0x18
mov esi, esp
mov dword [esp + 0x48], esp
push 0xffffffffffffffff
xor ecx, ecx
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], ebx
push ebx
mov word [esi], cx
push edi
mov ecx, esi
mov byte [esp + 0x164], 4
call fcn.00402610
lea edx, [esp + 0x74]
push edx
push ebp
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x20], ebx
call fcn.0042c400
add esp, 0x2c
lea ecx, [esp + 0x50]
mov byte [esp + 0x134], bl
call fcn.004020c0
mov eax, dword [esp + 0x15c]
push eax
call fcn.005844d1
add esp, 4
cmp dword [esp + 0x154], 8
jb 0x54211f
mov ecx, dword [esp + 0x140]
push ecx
call fcn.00584768
add esp, 4
mov eax, ebp
jmp 0x542833
add edi, 0x24
mov dword [esp + 0x18], edi
mov ebp, 7
cmp dword [esp + 0x150], ebx
je 0x542810
nop
xor edx, edx
mov dword [esp + 0xd0], ebp
mov dword [esp + 0xcc], ebx
mov word [esp + 0xbc], dx
mov dword [esp + 0xd8], ebx
mov dword [esp + 0xdc], ebx
lea eax, [esp + 0xbc]
push eax
push ecx
mov eax, esp
lea ecx, [esp + 0xe8]
mov dword [esp + 0x28], esp
push ecx
lea ecx, [esp + 0x14c]
mov byte [esp + 0x140], 5
mov dword [eax], 0x20
call fcn.00422260
push 0xffffffffffffffff
push ebx
lea edx, [esp + 0xc4]
push edx
lea ecx, [esp + 0x14c]
mov byte [esp + 0x140], 6
call fcn.00402610
xor eax, eax
mov dword [esp + 0xac], ebp
mov dword [esp + 0xa8], ebx
mov word [esp + 0x98], ax
mov dword [esp + 0xb4], ebx
mov dword [esp + 0xb8], ebx
lea ecx, [esp + 0x98]
push ecx
push ecx
mov eax, esp
lea edx, [esp + 0x10c]
mov dword [esp + 0x28], esp
push edx
lea ecx, [esp + 0xec]
mov byte [esp + 0x140], 7
mov dword [eax], 0x3d
call fcn.00422260
lea eax, [esp + 0x74]
push eax
lea ecx, [esp + 0x108]
mov byte [esp + 0x138], 8
call fcn.0041e830
lea ecx, [esp + 0x2c]
push ecx
lea ecx, [esp + 0x9c]
mov byte [esp + 0x138], 9
call fcn.0041e830
mov edx, dword [esp + 0x3c]
mov byte [esp + 0x134], 0xa
cmp edx, 2
jb 0x542a1f
mov esi, dword [esp + 0x40]
mov edi, dword [esp + 0x2c]
mov eax, edi
cmp esi, 8
jae 0x542267
lea eax, [esp + 0x2c]
lea eax, [eax + edx*2 - 2]
mov ecx, edi
cmp esi, 8
jae 0x542276
lea ecx, [esp + 0x2c]
movzx eax, word [eax]
movzx ecx, word [ecx]
cmp ecx, eax
jne 0x542a1f
mov eax, edi
cmp esi, 8
jae 0x54228f
lea eax, [esp + 0x2c]
cmp word [eax], 0x22
je 0x5422aa
mov eax, edi
cmp esi, 8
jae 0x5422a0
lea eax, [esp + 0x2c]
cmp word [eax], 0x27
jne 0x542a1f
lea eax, [edx - 2]
push eax
mov esi, 1
lea edx, [esp + 0x30]
push esi
push edx
mov ecx, edx
call fcn.00402610
push str.foreground
lea ecx, [esp + 0x78]
call fcn.00421ee0
test eax, eax
je 0x54268a
push str.fgcolor
lea ecx, [esp + 0x78]
call fcn.00421ee0
test eax, eax
je 0x54268a
push str.color
lea ecx, [esp + 0x78]
call fcn.00421ee0
test eax, eax
je 0x54268a
push str.background
lea ecx, [esp + 0x78]
call fcn.00421ee0
test eax, eax
je 0x542681
push str.bgcolor
lea ecx, [esp + 0x78]
call fcn.00421ee0
test eax, eax
je 0x542681
push str.font_family
lea ecx, [esp + 0x78]
call fcn.00421ee0
test eax, eax
je 0x542678
push str.face
lea ecx, [esp + 0x78]
call fcn.00421ee0
test eax, eax
je 0x542678
push str.font_weight
lea ecx, [esp + 0x78]
call fcn.00421ee0
test eax, eax
je 0x5425c6
push str.weight
lea ecx, [esp + 0x78]
call fcn.00421ee0
test eax, eax
je 0x5425c6
push str.font_style
lea ecx, [esp + 0x78]
call fcn.00421ee0
test eax, eax
je 0x542574
push str.style
lea ecx, [esp + 0x78]
call fcn.00421ee0
test eax, eax
je 0x542574
push str.size
lea ecx, [esp + 0x78]
call fcn.00421ee0
test eax, eax
jne 0x5426a1
push 0xa
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x34]
call fcn.00420960
test al, al
je 0x5423f3
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x28]
mov dword [eax + 0x6c], 3
mov dword [eax + 0x70], ecx
jmp 0x5426a1
push str.smaller
lea ecx, [esp + 0x30]
call fcn.00421ee0
test eax, eax
je 0x54254f
push str.larger
lea ecx, [esp + 0x30]
call fcn.00421ee0
test eax, eax
je 0x54254f
push 0x63619c
lea ecx, [esp + 0x54]
call fcn.00402bb0
lea edx, [esp + 0xbc]
push edx
lea eax, [esp + 0x54]
push eax
lea ecx, [esp + 0x34]
mov byte [esp + 0x13c], 0x10
call fcn.004218c0
lea ecx, [esp + 0x50]
mov byte [esp + 0x17], al
mov byte [esp + 0x134], 0xa
call fcn.00405eb0
cmp byte [esp + 0x17], bl
je 0x542470
mov esi, 3
jmp 0x5424f9
push 0x636198
lea ecx, [esp + 0x54]
call fcn.00402bb0
lea ecx, [esp + 0xbc]
push ecx
lea edx, [esp + 0x54]
push edx
lea ecx, [esp + 0x34]
mov byte [esp + 0x13c], 0x11
call fcn.004218c0
lea ecx, [esp + 0x50]
mov byte [esp + 0x17], al
mov byte [esp + 0x134], 0xa
call fcn.00405eb0
cmp byte [esp + 0x17], bl
je 0x5424be
mov esi, 2
jmp 0x5424f9
push str.medium
lea ecx, [esp + 0x30]
call fcn.00421ee0
test eax, eax
jne 0x5424e5
mov eax, dword [esp + 0x18]
xor esi, esi
mov dword [eax + 0x6c], 2
mov dword [eax + 0x70], esi
jmp 0x5426a1
push 0xffffffffffffffff
push ebx
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0xc8]
call fcn.00402610
push str.small
lea ecx, [esp + 0xc0]
call fcn.00421ee0
test eax, eax
jne 0x542523
mov eax, dword [esp + 0x18]
neg esi
mov dword [eax + 0x6c], 2
mov dword [eax + 0x70], esi
jmp 0x5426a1
push str.large
lea ecx, [esp + 0xc0]
call fcn.00421ee0
test eax, eax
jne 0x54285d
mov eax, dword [esp + 0x18]
mov dword [eax + 0x6c], 2
mov dword [eax + 0x70], esi
jmp 0x5426a1
mov edi, dword [esp + 0x18]
push str.smaller
lea ecx, [esp + 0x30]
mov dword [edi + 0x6c], esi
call fcn.00421ee0
neg eax
sbb eax, eax
and eax, 2
dec eax
mov dword [edi + 0x70], eax
jmp 0x5426a1
push str.normal
lea ecx, [esp + 0x30]
call fcn.00421ee0
test eax, eax
jne 0x542592
mov ecx, dword [esp + 0x18]
mov dword [ecx + 0x78], ebx
jmp 0x5426a1
push str.oblique
lea ecx, [esp + 0x30]
call fcn.00421ee0
test eax, eax
je 0x5425ba
push 0x62470c
lea ecx, [esp + 0x30]
call fcn.00421ee0
test eax, eax
jne 0x5428f3
mov edx, dword [esp + 0x18]
mov dword [edx + 0x78], esi
jmp 0x5426a1
push str.ultralight
lea ecx, [esp + 0x30]
call fcn.00421ee0
test eax, eax
je 0x54266f
push str.light
lea ecx, [esp + 0x30]
call fcn.00421ee0
test eax, eax
je 0x54266f
push str.normal
lea ecx, [esp + 0x30]
call fcn.00421ee0
test eax, eax
je 0x54266f
push str.bold
lea ecx, [esp + 0x30]
call fcn.00421ee0
test eax, eax
je 0x542666
push str.ultrabold
lea ecx, [esp + 0x30]
call fcn.00421ee0
test eax, eax
je 0x542666
push str.heavy
lea ecx, [esp + 0x30]
call fcn.00421ee0
test eax, eax
je 0x542666
push 0xa
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x34]
call fcn.00420960
test al, al
je 0x542989
cmp dword [esp + 0x24], 0x258
mov edx, dword [esp + 0x18]
sbb ecx, ecx
inc ecx
mov dword [edx + 0x74], ecx
jmp 0x5426a1
mov eax, dword [esp + 0x18]
mov dword [eax + 0x74], esi
jmp 0x5426a1
mov ecx, dword [esp + 0x18]
mov dword [ecx + 0x74], ebx
jmp 0x5426a1
mov ecx, dword [esp + 0x18]
add ecx, 0x48
jmp 0x54268e
mov ecx, dword [esp + 0x18]
add ecx, 0x24
jmp 0x54268e
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x2c]
cmp ecx, edx
je 0x5426a1
push 0xffffffffffffffff
push ebx
mov eax, edx
push eax
call fcn.00402610
mov ecx, dword [esp + 0x48]
push ecx
call fcn.005844d1
mov esi, 8
add esp, 4
cmp dword [esp + 0x40], esi
jb 0x5426c6
mov edx, dword [esp + 0x2c]
push edx
call fcn.00584768
add esp, 4
mov ecx, dword [esp + 0x90]
xor eax, eax
push ecx
mov dword [esp + 0x44], ebp
mov dword [esp + 0x40], ebx
mov word [esp + 0x30], ax
call fcn.005844d1
add esp, 4
cmp dword [esp + 0x88], esi
jb 0x5426fb
mov edx, dword [esp + 0x74]
push edx
call fcn.00584768
add esp, 4
mov ecx, dword [esp + 0x120]
xor eax, eax
push ecx
mov dword [esp + 0x8c], ebp
mov dword [esp + 0x88], ebx
mov word [esp + 0x78], ax
call fcn.005844d1
add esp, 4
cmp dword [esp + 0x118], esi
jb 0x542739
mov edx, dword [esp + 0x104]
push edx
call fcn.00584768
add esp, 4
mov ecx, dword [esp + 0xb4]
xor eax, eax
push ecx
mov dword [esp + 0x11c], ebp
mov dword [esp + 0x118], ebx
mov word [esp + 0x108], ax
call fcn.005844d1
add esp, 4
cmp dword [esp + 0xac], esi
jb 0x54277a
mov edx, dword [esp + 0x98]
push edx
call fcn.00584768
add esp, 4
mov ecx, dword [esp + 0xfc]
xor eax, eax
push ecx
mov dword [esp + 0xb0], ebp
mov dword [esp + 0xac], ebx
mov word [esp + 0x9c], ax
call fcn.005844d1
add esp, 4
cmp dword [esp + 0xf4], esi
jb 0x5427bb
mov edx, dword [esp + 0xe0]
push edx
call fcn.00584768
add esp, 4
mov ecx, dword [esp + 0xd8]
xor eax, eax
push ecx
mov dword [esp + 0xf8], ebp
mov dword [esp + 0xf4], ebx
mov word [esp + 0xe4], ax
mov byte [esp + 0x138], bl
call fcn.005844d1
add esp, 4
cmp dword [esp + 0xd0], esi
jb 0x542803
mov edx, dword [esp + 0xbc]
push edx
call fcn.00584768
add esp, 4
cmp dword [esp + 0x150], ebx
jne 0x542140
mov esi, dword [esp + 0x1c]
mov dword [esi + 0x14], ebp
mov dword [esi + 0x10], ebx
xor ecx, ecx
mov word [esi], cx
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x20], ebx
lea ecx, [esp + 0x140]
call fcn.00405eb0
mov eax, esi
mov ecx, dword [esp + 0x12c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x114]
xor ecx, esp
call fcn.00585b7b
add esp, 0x124
ret 0x2c
push str.invalid_font_size___s_
lea ecx, [esp + 0x54]
call fcn.00421460
sub esp, 0x24
lea eax, [esp + 0xbc]
mov ecx, esp
mov dword [esp + 0x44], esp
push eax
mov byte [esp + 0x15c], 0x12
call fcn.00402b70
mov esi, dword [esp + 0x40]
lea ecx, [esp + 0x74]
push ecx
push esi
call fcn.0042c400
add esp, 0x2c
lea ecx, [esp + 0x50]
mov byte [esp + 0x134], 0xa
call fcn.004020c0
lea ecx, [esp + 0x2c]
call fcn.00405eb0
lea ecx, [esp + 0x74]
call fcn.00405eb0
lea ecx, [esp + 0x104]
call fcn.00405eb0
lea ecx, [esp + 0x98]
call fcn.00405eb0
lea ecx, [esp + 0xe0]
call fcn.00405eb0
lea ecx, [esp + 0xbc]
call fcn.00405eb0
jmp 0x542825
push str.invalid_font_style___s_
lea ecx, [esp + 0x54]
call fcn.00421460
sub esp, 0x24
lea edx, [esp + 0xbc]
mov ecx, esp
mov dword [esp + 0x44], esp
push edx
mov byte [esp + 0x15c], 0xf
call fcn.00402b70
mov esi, dword [esp + 0x40]
lea eax, [esp + 0x74]
push eax
push esi
call fcn.0042c400
add esp, 0x2c
lea ecx, [esp + 0x50]
mov byte [esp + 0x134], 0xa
call fcn.004020c0
lea ecx, [esp + 0x2c]
call fcn.00405eb0
lea ecx, [esp + 0x74]
call fcn.00405eb0
lea ecx, [esp + 0x104]
call fcn.00405eb0
lea ecx, [esp + 0x98]
call fcn.00405eb0
lea ecx, [esp + 0xe0]
call fcn.00405eb0
lea ecx, [esp + 0xbc]
call fcn.00405eb0
jmp 0x542825
push str.invalid_font_weight___s_
lea ecx, [esp + 0x54]
call fcn.00421460
sub esp, 0x24
lea edx, [esp + 0xbc]
mov ecx, esp
mov dword [esp + 0x44], esp
push edx
mov byte [esp + 0x15c], 0xe
call fcn.00402b70
mov esi, dword [esp + 0x40]
lea eax, [esp + 0x74]
push eax
push esi
call fcn.0042c400
add esp, 0x2c
lea ecx, [esp + 0x50]
mov byte [esp + 0x134], 0xa
call fcn.004020c0
lea ecx, [esp + 0x2c]
call fcn.00405eb0
lea ecx, [esp + 0x74]
call fcn.00405eb0
lea ecx, [esp + 0x104]
call fcn.00405eb0
lea ecx, [esp + 0x98]
call fcn.00405eb0
lea ecx, [esp + 0xe0]
call fcn.00405eb0
lea ecx, [esp + 0xbc]
call fcn.00405eb0
jmp 0x542825
call fcn.00420510
mov dword [esp + 0x50], eax
push 0xffffffffffffffff
lea ecx, [esp + 0x58]
push str.bad_quoting_for_value_of___s_
push ecx
mov byte [esp + 0x140], 0xb
call fcn.00402290
mov byte [esp + 0x140], 0xc
call fcn.00420510
mov dword [esp + 0x64], eax
mov dword [esp + 0x68], ebx
mov dword [esp + 0x6c], ebx
sub esp, 0x18
mov esi, esp
mov dword [esp + 0x44], esp
push 0xffffffffffffffff
push ebx
lea eax, [esp + 0x130]
xor edx, edx
mov dword [esi + 0x14], ebp
mov dword [esi + 0x10], ebx
push eax
mov ecx, esi
mov byte [esp + 0x164], 0xd
mov word [esi], dx
call fcn.00402610
mov edi, dword [esp + 0x40]
lea ecx, [esp + 0x74]
push ecx
push edi
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x20], ebx
call fcn.0042c400
add esp, 0x2c
lea ecx, [esp + 0x50]
mov byte [esp + 0x134], 0xa
call fcn.004020c0
mov edx, dword [esp + 0x48]
push edx
call fcn.005844d1
mov esi, 8
add esp, 4
cmp dword [esp + 0x40], esi
jb 0x542ad6
mov eax, dword [esp + 0x2c]
push eax
call fcn.00584768
add esp, 4
mov edx, dword [esp + 0x90]
xor ecx, ecx
push edx
mov dword [esp + 0x44], ebp
mov dword [esp + 0x40], ebx
mov word [esp + 0x30], cx
call fcn.005844d1
add esp, 4
cmp dword [esp + 0x88], esi
jb 0x542b0b
mov eax, dword [esp + 0x74]
push eax
call fcn.00584768
add esp, 4
mov edx, dword [esp + 0x120]
xor ecx, ecx
push edx
mov dword [esp + 0x8c], ebp
mov dword [esp + 0x88], ebx
mov word [esp + 0x78], cx
call fcn.005844d1
add esp, 4
cmp dword [esp + 0x118], esi
jb 0x542b49
mov eax, dword [esp + 0x104]
push eax
call fcn.00584768
add esp, 4
mov edx, dword [esp + 0xb4]
xor ecx, ecx
push edx
mov dword [esp + 0x11c], ebp
mov dword [esp + 0x118], ebx
mov word [esp + 0x108], cx
call fcn.005844d1
add esp, 4
cmp dword [esp + 0xac], esi
jb 0x542b8a
mov eax, dword [esp + 0x98]
push eax
call fcn.00584768
add esp, 4
mov edx, dword [esp + 0xfc]
xor ecx, ecx
push edx
mov dword [esp + 0xb0], ebp
mov dword [esp + 0xac], ebx
mov word [esp + 0x9c], cx
call fcn.005844d1
add esp, 4
cmp dword [esp + 0xf4], esi
jb 0x542bcb
mov eax, dword [esp + 0xe0]
push eax
call fcn.00584768
add esp, 4
mov edx, dword [esp + 0xd8]
xor ecx, ecx
push edx
mov dword [esp + 0xf8], ebp
mov dword [esp + 0xf4], ebx
mov word [esp + 0xe4], cx
call fcn.005844d1
add esp, 4
cmp dword [esp + 0xd0], esi
jb 0x542c0c
mov eax, dword [esp + 0xbc]
push eax
call fcn.00584768
add esp, 4
mov edx, dword [esp + 0x15c]
xor ecx, ecx
push edx
mov dword [esp + 0xd4], ebp
mov dword [esp + 0xd0], ebx
mov word [esp + 0xc0], cx
call fcn.005844d1
add esp, 4
cmp dword [esp + 0x154], esi
jb 0x542c4d
mov eax, dword [esp + 0x140]
push eax
call fcn.00584768
add esp, 4
mov eax, edi
jmp 0x542833