Function at 0x435710
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x34
push ebx
mov ebx, dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
push esi
push edi
mov edi, ecx
cmp dword [edi + 0x14], 0
jne 0x435744
cmp dword [edi + 0x18], 0
jne 0x435744
push 0xad4
push 0x450ca0
push str.atlas__TexPixelsAlpha8___0__atlas__TexPixelsRGBA32___0
call ebx
add esp, 0xc
mov ecx, edi
call fcn.00435270
mov ecx, edi
call fcn.00435490
mov ecx, dword [edi + 0x40]
xor eax, eax
mov dword [esp + 0xc], eax
test ecx, ecx
jle 0x435a1f
xor edx, edx
mov dword [esp + 0x10], edx
nop dword [eax]
test eax, eax
js 0x435778
cmp eax, ecx
jl 0x435794
push 0x6c7
push 0x446378
push str.i___0__i___Size
call ebx
mov eax, dword [esp + 0x18]
add esp, 0xc
mov edx, dword [esp + 0x10]
mov esi, dword [edi + 0x48]
add esi, edx
mov dword [esp + 0x14], esi
mov ecx, dword [esi + 0x18]
test ecx, ecx
je 0x435a08
cmp dword [esi + 8], 0
je 0x435a08
cmp dword [ecx + 0x30], edi
je 0x4357cb
push 0xae0
push 0x450ca0
push str.r__Font__ContainerAtlas__atlas
call ebx
add esp, 0xc
cmp dword [edi + 0x1c], 0
jle 0x4357d7
cmp dword [edi + 0x20], 0
jg 0x4357eb
push 0x8b1
push 0x450ca0
push str.TexWidth___0__TexHeight___0
call ebx
add esp, 0xc
mov eax, 0xffff
cmp word [esi + 4], ax
jne 0x43580a
push 0x8b2
push 0x450ca0
push str.rect__IsPacked__
call ebx
add esp, 0xc
movzx ecx, word [esi + 6]
movzx eax, word [esi + 4]
movzx esi, word [esi]
movd xmm2, ecx
cvtdq2ps xmm2, xmm2
movd xmm0, eax
add eax, esi
mulss xmm2, dword [edi + 0x28]
cvtdq2ps xmm0, xmm0
movss dword [esp + 0x30], xmm2
mulss xmm0, dword [edi + 0x24]
movd xmm2, eax
mov eax, dword [esp + 0x14]
movss dword [esp + 0x2c], xmm0
cvtdq2ps xmm2, xmm2
movzx edx, word [eax + 2]
movd xmm0, esi
mulss xmm2, dword [edi + 0x24]
lea eax, [edx + ecx]
movd xmm1, eax
mov eax, dword [esp + 0x14]
cvtdq2ps xmm0, xmm0
mov ecx, dword [eax + 0x18]
movzx ebx, word [eax + 8]
movss dword [esp + 0x34], xmm2
movss xmm2, dword [eax + 0x10]
addss xmm0, xmm2
mov dword [esp + 0x1c], ecx
cvtdq2ps xmm1, xmm1
lea esi, [ecx + 0x20]
mov dword [esp + 0x20], ebx
mov ecx, esi
movss dword [esp + 0x28], xmm2
mulss xmm1, dword [edi + 0x28]
movss dword [esp + 0x24], xmm0
movd xmm0, edx
cvtdq2ps xmm0, xmm0
movss dword [esp + 0x38], xmm1
movss xmm1, dword [eax + 0x14]
addss xmm0, xmm1
movss dword [esp + 0x18], xmm1
movss dword [esp + 0x14], xmm0
movss xmm0, dword [eax + 0xc]
mov eax, dword [esi]
inc eax
movss dword [esp + 0x3c], xmm0
push eax
call fcn.00437b80
cmp dword [esi], 0
mov ebx, dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
jg 0x4358ed
push 0x6d1
push 0x446378
push str.Size___0
call ebx
add esp, 0xc
mov eax, dword [esi]
mov esi, dword [esi + 8]
movss xmm2, dword [esp + 0x24]
movss xmm3, dword [esp + 0x28]
movss xmm0, dword [esp + 0x14]
lea edx, [eax + eax*4]
mov eax, dword [esp + 0x20]
movss xmm1, dword [esp + 0x18]
movzx ecx, ax
mov eax, dword [esi + edx*8 - 0x28]
and eax, 3
shl ecx, 2
or ecx, eax
ucomiss xmm3, xmm2
lahf
test ah, 0x44
jnp 0x435939
ucomiss xmm1, xmm0
lahf
test ah, 0x44
jnp 0x435939
mov eax, 2
jmp 0x43593b
xor eax, eax
movss dword [esi + edx*8 - 0x14], xmm0
and ecx, 0xfffffffd
movss xmm0, dword [esp + 0x2c]
or ecx, eax
movss dword [esi + edx*8 - 0x10], xmm0
and ecx, 0xfffffffe
movss xmm0, dword [esp + 0x30]
movss dword [esi + edx*8 - 0xc], xmm0
movss xmm0, dword [esp + 0x34]
movss dword [esi + edx*8 - 8], xmm0
movss xmm0, dword [esp + 0x38]
mov dword [esi + edx*8 - 0x28], ecx
mov ecx, dword [esp + 0x1c]
movss dword [esi + edx*8 - 4], xmm0
movss xmm0, dword [esp + 0x3c]
movss dword [esi + edx*8 - 0x1c], xmm1
movss dword [esi + edx*8 - 0x24], xmm0
movss dword [esi + edx*8 - 0x18], xmm2
movss dword [esi + edx*8 - 0x20], xmm3
mov eax, dword [ecx + 0x30]
movd xmm2, dword [eax + 0xc]
mov byte [ecx + 0x3e], 1
movd xmm1, dword [eax + 0x20]
movss xmm0, dword [esi + edx*8 - 4]
subss xmm0, dword [esi + edx*8 - 0xc]
cvtdq2ps xmm1, xmm1
cvtdq2ps xmm2, xmm2
mulss xmm1, xmm0
addss xmm2, dword [0x452e8c]
movss xmm0, dword [esi + edx*8 - 8]
subss xmm0, dword [esi + edx*8 - 0x10]
mov edx, dword [esp + 0x10]
addss xmm1, xmm2
cvttss2si ecx, xmm1
movd xmm1, dword [eax + 0x1c]
cvtdq2ps xmm1, xmm1
mulss xmm1, xmm0
addss xmm1, xmm2
cvttss2si eax, xmm1
imul ecx, eax
mov eax, dword [esp + 0x1c]
add dword [eax + 0x4c], ecx
mov eax, dword [esp + 0xc]
mov ecx, dword [edi + 0x40]
inc eax
add edx, 0x1c
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], edx
cmp eax, ecx
jl 0x435770
mov ecx, dword [edi + 0x34]
xor esi, esi
test ecx, ecx
jle 0x435b20
nop dword [eax]
test esi, esi
js 0x435a38
cmp esi, ecx
jl 0x435a4f
push 0x6c7
push 0x446378
push str.i___0__i___Size
call ebx
mov ecx, dword [edi + 0x34]
add esp, 0xc
mov eax, dword [edi + 0x3c]
mov eax, dword [eax + esi*4]
cmp byte [eax + 0x3e], 0
je 0x435a82
test esi, esi
js 0x435a63
cmp esi, ecx
jl 0x435a77
push 0x6c7
push 0x446378
push str.i___0__i___Size
call ebx
add esp, 0xc
mov ecx, dword [edi + 0x3c]
mov ecx, dword [ecx + esi*4]
call fcn.00435d40
mov ecx, dword [edi + 0x34]
inc esi
cmp esi, ecx
jl 0x435a30
xor esi, esi
mov dword [esp + 0x18], esi
test ecx, ecx
jle 0x435b20
test esi, esi
js 0x435aa0
cmp esi, ecx
jl 0x435ab4
push 0x6c7
push 0x446378
push str.i___0__i___Size
call ebx
add esp, 0xc
mov eax, dword [edi + 0x3c]
mov esi, dword [eax + esi*4]
mov eax, 0xffff
cmp word [esi + 0x3c], ax
jne 0x435b0c
mov dword [esp + 0x1c], 0x852026
xor edx, edx
nop
movzx ebx, word [esp + edx*2 + 0x1c]
mov ecx, ebx
cmp ecx, dword [esi + 0x14]
jae 0x435afa
mov eax, dword [esi + 0x1c]
movzx eax, word [eax + ecx*2]
mov ecx, 0xffff
cmp ax, cx
je 0x435afa
lea ecx, [eax + eax*4]
mov eax, dword [esi + 0x28]
lea eax, [eax + ecx*8]
test eax, eax
jne 0x435b02
inc edx
cmp edx, 2
jl 0x435ad0
jmp 0x435b06
mov word [esi + 0x3c], bx
mov ebx, dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
mov esi, dword [esp + 0x18]
mov ecx, dword [edi + 0x34]
inc esi
mov dword [esp + 0x18], esi
cmp esi, ecx
jl 0x435a98
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret