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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x1c8
mov eax, dword [0x55c054]
xor eax, esp
mov dword [esp + 0x1c4], eax
mov eax, dword [0x562924]
push esi
push edi
mov edi, edx
mov dword [esp + 0x14], ecx
mov edx, dword [ebp + 8]
mov dword [esp + 0x1c], edx
mov dword [esp + 0x44], eax
mov esi, dword [edx]
test esi, esi
jle 0x452730
mov ecx, dword [edx + 8]
lea eax, [esi + esi*4]
cmp dword [ecx + eax*8 - 0xc], 0
jne 0x452730
lea eax, [esi + esi*4]
cmp dword [ecx + eax*8 - 8], 0
jne 0x452730
dec esi
mov eax, dword [edx + 0x30]
mov ecx, 0x527b0c
push esi
push dword [edx + 0xc]
test eax, eax
push dword [edx + 0x18]
cmovne ecx, eax
push ecx
push str.DrawList
push str._s:__s__d_vtx___d_indices___d_cmds
push edx
call fcn.004b2360
mov edx, dword [0x562924]
add esp, 0x1c
mov byte [esp + 0x13], al
mov eax, dword [esp + 0x1c]
mov ecx, dword [edx + 0x3f34]
mov byte [ecx + 0xe1], 1
mov ecx, dword [edx + 0x3f34]
cmp eax, dword [ecx + 0x2a4]
jne 0x4527bf
movss xmm1, dword [0x54f7a8]
xorps xmm0, xmm0
call fcn.004361e0
movaps xmm0, xmmword [0x550130]
lea eax, [esp + 0x70]
push str.CURRENTLY_APPENDING
push eax
movups xmmword [esp + 0x78], xmm0
call fcn.0049d6c0
add esp, 8
cmp byte [esp + 0x13], 0
je 0x452d95
jmp 0x452d90
test edi, edi
je 0x4527df
push str.Foreground
mov edx, 1
mov ecx, edi
call fcn.00426df0
add esp, 4
mov dword [esp + 0x20], eax
mov edi, eax
jmp 0x4527e5
xor edi, edi
mov dword [esp + 0x20], edi
mov eax, dword [esp + 0x14]
test eax, eax
je 0x4528ab
xor ecx, ecx
call fcn.00426860
test al, al
mov eax, dword [esp + 0x14]
je 0x4528ab
test edi, edi
je 0x4528ab
test byte [edi + 0x24], 1
mov ecx, edi
movss xmm3, dword [eax + 0x44]
movss xmm4, dword [eax + 0x48]
movaps xmm1, xmm3
movss xmm0, dword [0x54f494]
movaps xmm2, xmm4
addss xmm1, dword [eax + 0x4c]
addss xmm2, dword [eax + 0x50]
addss xmm3, xmm0
addss xmm4, xmm0
push 0
lea eax, [esp + 0x3c]
push eax
lea eax, [esp + 0x30]
movss dword [esp + 0x30], xmm3
movss dword [esp + 0x34], xmm4
xorps xmm3, xmm3
push eax
je 0x452863
subss xmm1, xmm0
subss xmm2, xmm0
jmp 0x452873
subss xmm1, dword [0x54f490]
subss xmm2, dword [0x54f490]
movss dword [esp + 0x44], xmm1
movss dword [esp + 0x48], xmm2
call fcn.004895c0
push ecx
mov dword [esp], 0x3f800000
mov ecx, edi
push 1
push 0xff00ffff
push dword [edi + 0x54]
push dword [edi + 0x5c]
call fcn.00487410
mov eax, dword [esp + 0x14]
mov dword [edi + 0x54], 0
cmp byte [esp + 0x13], 0
je 0x452d95
test eax, eax
je 0x4528d0
cmp byte [eax + 0xe0], 0
jne 0x4528d0
push str.Warning:_owning_Window_is_inactive._This_DrawList_is_not_being_rendered_
call fcn.0049d720
add esp, 4
mov eax, dword [esp + 0x1c]
mov eax, dword [eax + 8]
mov dword [esp + 0x14], eax
lea eax, [esi + esi*4]
mov esi, dword [esp + 0x14]
shl eax, 3
mov dword [esp + 0x38], eax
add eax, esi
cmp esi, eax
jae 0x452d90
mov eax, dword [esi + 0x20]
test eax, eax
je 0x452910
push dword [esi + 0x24]
push eax
push str.Callback__p__user_data__p
call fcn.0049dbc0
add esp, 0xc
jmp 0x452d72
movss xmm0, dword [esi + 0xc]
sub esp, 0x20
cvtps2pd xmm0, xmm0
mov eax, 0xaaaaaaab
mul dword [esi + 0x1c]
movsd qword [esp + 0x18], xmm0
movss xmm0, dword [esi + 8]
cvtps2pd xmm0, xmm0
lea eax, [esp + 0xb8]
shr edx, 1
movsd qword [esp + 0x10], xmm0
movss xmm0, dword [esi + 4]
cvtps2pd xmm0, xmm0
movsd qword [esp + 8], xmm0
movss xmm0, dword [esi]
cvtps2pd xmm0, xmm0
movsd qword [esp], xmm0
push dword [esi + 0x10]
push edx
push str.DrawCmd:_5d_tris__Tex_0x_p__ClipRect___4.0f__4.0f____4.0f__4.0f_
push 0x12c
push eax
call fcn.00420df0
add esp, 0x34
lea eax, [esp + 0x98]
mov ecx, esi
push eax
mov eax, dword [esp + 0x20]
push 0x528334
sub ecx, dword [eax + 8]
mov eax, 0x66666667
imul ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
push eax
call fcn.004b2360
add esp, 0xc
mov byte [esp + 0x13], al
xor ecx, ecx
call fcn.00426860
test al, al
je 0x4529e2
mov eax, dword [esp + 0x44]
mov cl, byte [eax + 0x5d71]
test cl, cl
jne 0x4529c6
cmp byte [eax + 0x5d72], cl
je 0x4529e2
test edi, edi
je 0x4529e2
movzx eax, byte [eax + 0x5d72]
mov edx, dword [esp + 0x1c]
push eax
push ecx
push esi
mov ecx, edi
call fcn.00452db0
add esp, 0xc
cmp byte [esp + 0x13], 0
je 0x452d72
mov edx, dword [esp + 0x1c]
cmp dword [edx + 0xc], 0
jle 0x4529fc
mov esi, dword [edx + 0x14]
jmp 0x4529fe
xor esi, esi
mov eax, dword [esp + 0x14]
xorps xmm6, xmm6
mov dword [esp + 0x34], esi
mov eax, dword [eax + 0x14]
lea ecx, [eax + eax*4]
mov eax, dword [edx + 0x20]
lea edx, [eax + ecx*4]
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x40], edx
mov eax, dword [ecx + 0x18]
mov ecx, dword [ecx + 0x1c]
add ecx, eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x24], ecx
cmp eax, ecx
jae 0x452ae9
mov edi, eax
lea ecx, [edi + 2]
lea ecx, [esi + ecx*2]
mov dword [esp + 0x18], ecx
test esi, esi
je 0x452a6b
movzx eax, word [ecx - 4]
lea ecx, [eax + eax*4]
mov eax, dword [esp + 0x18]
movzx eax, word [eax - 2]
lea eax, [eax + eax*4]
movss xmm0, dword [edx + eax*4]
movss xmm4, dword [edx + eax*4 + 4]
mov eax, dword [esp + 0x18]
movzx eax, word [eax]
jmp 0x452a80
lea eax, [edi + edi*4]
movss xmm0, dword [edx + eax*4 + 0x14]
lea ecx, [edi + edi*4]
movss xmm4, dword [edx + eax*4 + 0x18]
lea eax, [edi + 2]
movss xmm3, dword [edx + ecx*4 + 4]
lea eax, [eax + eax*4]
movss xmm2, dword [edx + eax*4 + 4]
add edi, 3
movss xmm5, dword [edx + ecx*4]
subss xmm2, xmm3
mov ecx, dword [esp + 0x18]
subss xmm3, xmm4
add ecx, 6
mov dword [esp + 0x18], ecx
mulss xmm2, xmm0
movaps xmm0, xmm4
subss xmm0, dword [edx + eax*4 + 4]
mulss xmm3, dword [edx + eax*4]
mulss xmm0, xmm5
addss xmm2, xmm0
addss xmm2, xmm3
andps xmm2, xmmword [0x5505b0]
mulss xmm2, dword [0x54f494]
addss xmm6, xmm2
cmp edi, dword [esp + 0x24]
jb 0x452a41
mov edi, dword [esp + 0x20]
mov eax, dword [esp + 0x14]
sub esp, 8
cvtps2pd xmm0, xmm6
movsd qword [esp], xmm0
push dword [eax + 0x18]
push dword [eax + 0x14]
push dword [eax + 0x1c]
lea eax, [esp + 0xac]
push str.Mesh:_ElemCount:__d__VtxOffset:__d__IdxOffset:__d__Area:__0.f_px
push 0x12c
push eax
call fcn.00420df0
lea eax, [esp + 0x68]
mov dword [esp + 0x68], 0
push eax
push 0
xor dl, dl
mov dword [esp + 0x74], 0
lea ecx, [esp + 0xc0]
call fcn.004b3910
add esp, 0x28
xor ecx, ecx
call fcn.00426860
test al, al
je 0x452b65
test edi, edi
je 0x452b65
mov edx, dword [esp + 0x1c]
mov ecx, edi
push 0
push 1
push dword [esp + 0x1c]
call fcn.00452db0
add esp, 0xc
mov ecx, dword [esp + 0x14]
mov eax, 0xaaaaaaab
movss xmm2, dword [0x54f7a8]
xorps xmm0, xmm0
movaps xmmword [esp + 0x50], xmm0
movq qword [esp + 0x60], xmm0
mul dword [ecx + 0x1c]
lea ecx, [esp + 0x50]
mov dword [esp + 0x68], 0
shr edx, 1
push edx
call fcn.004222d0
lea ecx, [esp + 0x50]
call fcn.004230a0
test al, al
je 0x452d60
nop dword [eax]
mov eax, dword [esp + 0x54]
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x28], eax
lea edi, [eax + eax*2]
add edi, dword [ecx + 0x18]
cmp eax, dword [esp + 0x58]
jge 0x452d4f
mov dword [esp + 0x70], 0
mov dword [esp + 0x74], 0
nop dword [eax]
lea eax, [esp + 0x98]
mov dword [esp + 0x90], 0
mov dword [esp + 0x30], eax
xorps xmm0, xmm0
lea eax, [esp + 0x80]
mov dword [esp + 0x94], 0
movups xmmword [esp + 0x80], xmm0
mov dword [esp + 0x24], 0
mov dword [esp + 0x18], eax
nop
test esi, esi
je 0x452c2a
movzx eax, word [esi + edi*2]
jmp 0x452c2c
mov eax, edi
mov ecx, dword [esp + 0x40]
lea edx, [eax + eax*4]
mov esi, dword [esp + 0x18]
mov eax, dword [ecx + edx*4]
mov ecx, dword [ecx + edx*4 + 4]
mov dword [esi], eax
mov eax, esi
mov dword [eax + 4], ecx
mov ecx, 0x534954
mov eax, dword [esp + 0x40]
push dword [eax + edx*4 + 0x10]
movss xmm0, dword [eax + edx*4 + 0xc]
cvtps2pd xmm0, xmm0
sub esp, 0x20
cmp dword [esp + 0x48], 0
movsd qword [esp + 0x18], xmm0
movss xmm0, dword [eax + edx*4 + 8]
cvtps2pd xmm0, xmm0
movsd qword [esp + 0x10], xmm0
movss xmm0, dword [eax + edx*4 + 4]
cvtps2pd xmm0, xmm0
movsd qword [esp + 8], xmm0
movss xmm0, dword [eax + edx*4]
mov eax, str.Vert:
cvtps2pd xmm0, xmm0
cmovne eax, ecx
mov ecx, dword [esp + 0x54]
movsd qword [esp], xmm0
push edi
push eax
lea eax, [esp + 0x1f0]
push str._s__04d:_pos___8.2f__8.2f___uv___.6f__.6f___col__08X_n
sub eax, ecx
push eax
push ecx
call fcn.00420df0
add dword [esp + 0x68], eax
add esp, 0x38
mov eax, dword [esp + 0x24]
inc edi
add dword [esp + 0x18], 8
inc eax
mov esi, dword [esp + 0x34]
mov dword [esp + 0x24], eax
cmp eax, 3
jl 0x452c20
lea eax, [esp + 0x70]
xor dl, dl
push eax
push 0
lea ecx, [esp + 0xa0]
call fcn.004b3910
add esp, 8
cmp dword [esp + 0x20], 0
je 0x452d3c
xor ecx, ecx
call fcn.00426860
test al, al
je 0x452d3c
mov ecx, dword [esp + 0x20]
push ecx
mov dword [esp], 0x3f800000
push 1
mov esi, dword [ecx + 0x24]
mov eax, esi
and eax, 0xfffffffe
push 0xff00ffff
mov dword [ecx + 0x24], eax
lea eax, [esp + 0x8c]
push 3
push eax
call fcn.00487410
mov eax, dword [esp + 0x20]
mov dword [eax + 0x24], esi
mov esi, dword [esp + 0x34]
mov ecx, dword [esp + 0x28]
inc ecx
mov dword [esp + 0x28], ecx
cmp ecx, dword [esp + 0x58]
jl 0x452be0
lea ecx, [esp + 0x50]
call fcn.004230a0
test al, al
jne 0x452bb0
call fcn.004b3470
lea ecx, [esp + 0x50]
call fcn.00422510
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x1c]
add esi, 0x28
mov edi, dword [esp + 0x20]
mov dword [esp + 0x14], esi
mov eax, dword [eax + 8]
add eax, dword [esp + 0x38]
cmp esi, eax
jb 0x4528f3
call fcn.004b3470
mov ecx, dword [esp + 0x1cc]
pop edi
pop esi
xor ecx, esp
call fcn.004e7a8e
mov esp, ebp
pop ebp
ret