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

Disassembly:
push rbx
push rsi
push rdi
push r12
push r14
sub rsp, 0x40
movsxd rdi, dword [rcx + 0x484]
lea rbx, [rcx + 0x58]
mov rsi, rcx
test edi, edi
jns 0x14003052a
mov r8d, 0xaa9
lea rdx, [0x14004fc00]
lea rcx, str.index___0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
jmp 0x14003052e
cmp edi, dword [rbx]
jl 0x140030548
mov r8d, 0x6c7
lea rdx, [0x14004fc00]
lea rcx, str.i___0__i___Size
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
mov r14, rdi
mov eax, 0xffff
shl r14, 5
add r14, qword [rbx + 8]
cmp word [r14 + 4], ax
jne 0x140030579
mov r8d, 0xa63
lea rdx, [0x14005a8d0]
lea rcx, str.r__IsPacked__
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
test byte [rsi], 2
mov ebx, dword [rsi + 0x30]
movzx eax, word [r14]
jne 0x140030cdc
mov ecx, 0xd9
mov qword [rsp + 0x80], r13
cmp ax, cx
jne 0x1400305a3
cmp word [r14 + 2], 0x1b
je 0x1400305bd
mov r8d, 0xa69
lea rdx, [0x14005a8d0]
lea rcx, str.r__Width__FONT_ATLAS_DEFAULT_TEX_DATA_W__2__1__r__Height__FONT_ATLAS_DEFAULT_TEX_DATA_H
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
cmp qword [rsi + 0x20], 0
lea r12, [r14 + 6]
movzx ebx, word [r12]
movzx r13d, word [r14 + 4]
mov qword [rsp + 0x78], rbp
mov qword [rsp + 0x88], r15
je 0x14003063d
mov byte [rsp + 0x38], 0xff
lea r15, [0x140056710]
mov ebp, 0x1b
mov byte [rsp + 0x30], 0x2e
mov qword [rsp + 0x28], r15
mov r8d, ebx
mov edx, r13d
mov dword [rsp + 0x20], ebp
mov rcx, rsi
lea r9d, [rbp + 0x51]
call fcn.1400303e0
movzx r8d, word [r12]
lea r9d, [rbp + 0x51]
mov byte [rsp + 0x38], 0xff
lea edx, [r13 + 0x6d]
mov byte [rsp + 0x30], 0x58
mov rcx, rsi
mov qword [rsp + 0x28], r15
mov dword [rsp + 0x20], ebp
call fcn.1400303e0
jmp 0x140030cc2
lea eax, [r13 + 0x6c]
cmp eax, dword [rsi + 0x30]
jle 0x140030660
mov r8d, 0xa58
lea rdx, [0x14005a8d0]
lea rcx, str.x___0__x__w___atlas__TexWidth
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
lea eax, [rbx + 0x1b]
cmp eax, dword [rsi + 0x34]
jle 0x140030682
mov r8d, 0xa59
lea rdx, [0x14005a8d0]
lea rcx, str.y___0__y__h___atlas__TexHeight
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
imul ebx, dword [rsi + 0x30]
lea rdi, [0x140056712]
mov rax, qword [rsi + 0x28]
mov ebp, 0x1b
mov rdx, rdi
mov r11d, ebp
movsxd rcx, ebx
mov ebx, 0xffffffff
add rcx, r13
lea r9, [rax + rcx*4]
nop dword [rax + rax]
lea rcx, [r9 + 8]
mov r8d, 2
nop word [rax + rax]
xor eax, eax
cmp byte [rdx - 2], 0x2e
cmove eax, ebx
mov dword [rcx - 8], eax
xor eax, eax
cmp byte [rdx - 1], 0x2e
cmove eax, ebx
mov dword [rcx - 4], eax
xor eax, eax
cmp byte [rdx], 0x2e
cmove eax, ebx
mov dword [rcx], eax
xor eax, eax
cmp byte [rdx + 1], 0x2e
cmove eax, ebx
mov dword [rcx + 4], eax
xor eax, eax
cmp byte [rdx + 2], 0x2e
cmove eax, ebx
mov dword [rcx + 8], eax
xor eax, eax
cmp byte [rdx + 3], 0x2e
cmove eax, ebx
mov dword [rcx + 0xc], eax
xor eax, eax
cmp byte [rdx + 4], 0x2e
cmove eax, ebx
mov dword [rcx + 0x10], eax
xor eax, eax
cmp byte [rdx + 5], 0x2e
cmove eax, ebx
mov dword [rcx + 0x14], eax
xor eax, eax
cmp byte [rdx + 6], 0x2e
cmove eax, ebx
mov dword [rcx + 0x18], eax
xor eax, eax
cmp byte [rdx + 7], 0x2e
cmove eax, ebx
mov dword [rcx + 0x1c], eax
xor eax, eax
cmp byte [rdx + 8], 0x2e
cmove eax, ebx
mov dword [rcx + 0x20], eax
xor eax, eax
cmp byte [rdx + 9], 0x2e
cmove eax, ebx
mov dword [rcx + 0x24], eax
xor eax, eax
cmp byte [rdx + 0xa], 0x2e
cmove eax, ebx
mov dword [rcx + 0x28], eax
xor eax, eax
cmp byte [rdx + 0xb], 0x2e
cmove eax, ebx
mov dword [rcx + 0x2c], eax
xor eax, eax
cmp byte [rdx + 0xc], 0x2e
cmove eax, ebx
mov dword [rcx + 0x30], eax
xor eax, eax
cmp byte [rdx + 0xd], 0x2e
cmove eax, ebx
mov dword [rcx + 0x34], eax
xor eax, eax
cmp byte [rdx + 0xe], 0x2e
cmove eax, ebx
mov dword [rcx + 0x38], eax
xor eax, eax
cmp byte [rdx + 0xf], 0x2e
cmove eax, ebx
mov dword [rcx + 0x3c], eax
xor eax, eax
cmp byte [rdx + 0x10], 0x2e
cmove eax, ebx
mov dword [rcx + 0x40], eax
xor eax, eax
cmp byte [rdx + 0x11], 0x2e
cmove eax, ebx
mov dword [rcx + 0x44], eax
xor eax, eax
cmp byte [rdx + 0x12], 0x2e
cmove eax, ebx
mov dword [rcx + 0x48], eax
xor eax, eax
cmp byte [rdx + 0x13], 0x2e
cmove eax, ebx
mov dword [rcx + 0x4c], eax
xor eax, eax
cmp byte [rdx + 0x14], 0x2e
cmove eax, ebx
mov dword [rcx + 0x50], eax
xor eax, eax
cmp byte [rdx + 0x15], 0x2e
cmove eax, ebx
mov dword [rcx + 0x54], eax
xor eax, eax
cmp byte [rdx + 0x16], 0x2e
cmove eax, ebx
mov dword [rcx + 0x58], eax
xor eax, eax
cmp byte [rdx + 0x17], 0x2e
cmove eax, ebx
mov dword [rcx + 0x5c], eax
xor eax, eax
cmp byte [rdx + 0x18], 0x2e
cmove eax, ebx
mov dword [rcx + 0x60], eax
xor eax, eax
cmp byte [rdx + 0x19], 0x2e
cmove eax, ebx
mov dword [rcx + 0x64], eax
xor eax, eax
cmp byte [rdx + 0x1a], 0x2e
cmove eax, ebx
mov dword [rcx + 0x68], eax
xor eax, eax
cmp byte [rdx + 0x1b], 0x2e
cmove eax, ebx
mov dword [rcx + 0x6c], eax
xor eax, eax
cmp byte [rdx + 0x1c], 0x2e
cmove eax, ebx
mov dword [rcx + 0x70], eax
xor eax, eax
cmp byte [rdx + 0x1d], 0x2e
cmove eax, ebx
mov dword [rcx + 0x74], eax
xor eax, eax
cmp byte [rdx + 0x1e], 0x2e
cmove eax, ebx
mov dword [rcx + 0x78], eax
xor eax, eax
cmp byte [rdx + 0x1f], 0x2e
cmove eax, ebx
mov dword [rcx + 0x7c], eax
xor eax, eax
cmp byte [rdx + 0x20], 0x2e
cmove eax, ebx
mov dword [rcx + 0x80], eax
xor eax, eax
cmp byte [rdx + 0x21], 0x2e
cmove eax, ebx
mov dword [rcx + 0x84], eax
xor eax, eax
cmp byte [rdx + 0x22], 0x2e
cmove eax, ebx
mov dword [rcx + 0x88], eax
xor eax, eax
cmp byte [rdx + 0x23], 0x2e
cmove eax, ebx
mov dword [rcx + 0x8c], eax
xor eax, eax
cmp byte [rdx + 0x24], 0x2e
cmove eax, ebx
mov dword [rcx + 0x90], eax
xor eax, eax
cmp byte [rdx + 0x25], 0x2e
cmove eax, ebx
mov dword [rcx + 0x94], eax
xor eax, eax
cmp byte [rdx + 0x26], 0x2e
cmove eax, ebx
mov dword [rcx + 0x98], eax
lea rcx, [rcx + 0xd8]
xor eax, eax
cmp byte [rdx + 0x27], 0x2e
cmove eax, ebx
mov dword [rcx - 0x3c], eax
xor eax, eax
cmp byte [rdx + 0x28], 0x2e
cmove eax, ebx
mov dword [rcx - 0x38], eax
xor eax, eax
cmp byte [rdx + 0x29], 0x2e
cmove eax, ebx
mov dword [rcx - 0x34], eax
xor eax, eax
cmp byte [rdx + 0x2a], 0x2e
cmove eax, ebx
mov dword [rcx - 0x30], eax
xor eax, eax
cmp byte [rdx + 0x2b], 0x2e
cmove eax, ebx
mov dword [rcx - 0x2c], eax
xor eax, eax
cmp byte [rdx + 0x2c], 0x2e
cmove eax, ebx
mov dword [rcx - 0x28], eax
xor eax, eax
cmp byte [rdx + 0x2d], 0x2e
cmove eax, ebx
mov dword [rcx - 0x24], eax
xor eax, eax
cmp byte [rdx + 0x2e], 0x2e
cmove eax, ebx
mov dword [rcx - 0x20], eax
xor eax, eax
cmp byte [rdx + 0x2f], 0x2e
cmove eax, ebx
mov dword [rcx - 0x1c], eax
xor eax, eax
cmp byte [rdx + 0x30], 0x2e
cmove eax, ebx
mov dword [rcx - 0x18], eax
xor eax, eax
cmp byte [rdx + 0x31], 0x2e
cmove eax, ebx
mov dword [rcx - 0x14], eax
xor eax, eax
cmp byte [rdx + 0x32], 0x2e
cmove eax, ebx
mov dword [rcx - 0x10], eax
xor eax, eax
cmp byte [rdx + 0x33], 0x2e
cmove eax, ebx
add rdx, 0x36
mov dword [rcx - 0xc], eax
sub r8, 1
jne 0x1400306c0
movsxd r10, dword [rsi + 0x30]
lea r9, [r9 + r10*4]
sub r11, 1
jne 0x1400306b0
movzx r15d, word [r12]
lea eax, [r13 + 0xd9]
cmp eax, r10d
jle 0x1400309ad
mov r8d, 0xa58
lea rdx, [0x14005a8d0]
lea rcx, str.x___0__x__w___atlas__TexWidth
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
lea eax, [r15 + 0x1b]
cmp eax, dword [rsi + 0x34]
jle 0x1400309d0
mov r8d, 0xa59
lea rdx, [0x14005a8d0]
lea rcx, str.y___0__y__h___atlas__TexHeight
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
imul r15d, dword [rsi + 0x30]
lea eax, [r13 + 0x6d]
movsxd rcx, r15d
add rcx, rax
mov rax, qword [rsi + 0x28]
lea rdx, [rax + rcx*4]
nop word [rax + rax]
lea rcx, [rdx + 8]
mov r8d, 2
nop word [rax + rax]
xor eax, eax
cmp byte [rdi - 2], 0x58
cmove eax, ebx
mov dword [rcx - 8], eax
xor eax, eax
cmp byte [rdi - 1], 0x58
cmove eax, ebx
mov dword [rcx - 4], eax
xor eax, eax
cmp byte [rdi], 0x58
cmove eax, ebx
mov dword [rcx], eax
xor eax, eax
cmp byte [rdi + 1], 0x58
cmove eax, ebx
mov dword [rcx + 4], eax
xor eax, eax
cmp byte [rdi + 2], 0x58
cmove eax, ebx
mov dword [rcx + 8], eax
xor eax, eax
cmp byte [rdi + 3], 0x58
cmove eax, ebx
mov dword [rcx + 0xc], eax
xor eax, eax
cmp byte [rdi + 4], 0x58
cmove eax, ebx
mov dword [rcx + 0x10], eax
xor eax, eax
cmp byte [rdi + 5], 0x58
cmove eax, ebx
mov dword [rcx + 0x14], eax
xor eax, eax
cmp byte [rdi + 6], 0x58
cmove eax, ebx
mov dword [rcx + 0x18], eax
xor eax, eax
cmp byte [rdi + 7], 0x58
cmove eax, ebx
mov dword [rcx + 0x1c], eax
xor eax, eax
cmp byte [rdi + 8], 0x58
cmove eax, ebx
mov dword [rcx + 0x20], eax
xor eax, eax
cmp byte [rdi + 9], 0x58
cmove eax, ebx
mov dword [rcx + 0x24], eax
xor eax, eax
cmp byte [rdi + 0xa], 0x58
cmove eax, ebx
mov dword [rcx + 0x28], eax
xor eax, eax
cmp byte [rdi + 0xb], 0x58
cmove eax, ebx
mov dword [rcx + 0x2c], eax
xor eax, eax
cmp byte [rdi + 0xc], 0x58
cmove eax, ebx
mov dword [rcx + 0x30], eax
xor eax, eax
cmp byte [rdi + 0xd], 0x58
cmove eax, ebx
mov dword [rcx + 0x34], eax
xor eax, eax
cmp byte [rdi + 0xe], 0x58
cmove eax, ebx
mov dword [rcx + 0x38], eax
xor eax, eax
cmp byte [rdi + 0xf], 0x58
cmove eax, ebx
mov dword [rcx + 0x3c], eax
xor eax, eax
cmp byte [rdi + 0x10], 0x58
cmove eax, ebx
mov dword [rcx + 0x40], eax
xor eax, eax
cmp byte [rdi + 0x11], 0x58
cmove eax, ebx
mov dword [rcx + 0x44], eax
xor eax, eax
cmp byte [rdi + 0x12], 0x58
cmove eax, ebx
mov dword [rcx + 0x48], eax
xor eax, eax
cmp byte [rdi + 0x13], 0x58
cmove eax, ebx
mov dword [rcx + 0x4c], eax
xor eax, eax
cmp byte [rdi + 0x14], 0x58
cmove eax, ebx
mov dword [rcx + 0x50], eax
xor eax, eax
cmp byte [rdi + 0x15], 0x58
cmove eax, ebx
mov dword [rcx + 0x54], eax
xor eax, eax
cmp byte [rdi + 0x16], 0x58
cmove eax, ebx
mov dword [rcx + 0x58], eax
xor eax, eax
cmp byte [rdi + 0x17], 0x58
cmove eax, ebx
mov dword [rcx + 0x5c], eax
xor eax, eax
cmp byte [rdi + 0x18], 0x58
cmove eax, ebx
mov dword [rcx + 0x60], eax
xor eax, eax
cmp byte [rdi + 0x19], 0x58
cmove eax, ebx
mov dword [rcx + 0x64], eax
xor eax, eax
cmp byte [rdi + 0x1a], 0x58
cmove eax, ebx
mov dword [rcx + 0x68], eax
xor eax, eax
cmp byte [rdi + 0x1b], 0x58
cmove eax, ebx
mov dword [rcx + 0x6c], eax
xor eax, eax
cmp byte [rdi + 0x1c], 0x58
cmove eax, ebx
mov dword [rcx + 0x70], eax
xor eax, eax
cmp byte [rdi + 0x1d], 0x58
cmove eax, ebx
mov dword [rcx + 0x74], eax
xor eax, eax
cmp byte [rdi + 0x1e], 0x58
cmove eax, ebx
mov dword [rcx + 0x78], eax
xor eax, eax
cmp byte [rdi + 0x1f], 0x58
cmove eax, ebx
mov dword [rcx + 0x7c], eax
xor eax, eax
cmp byte [rdi + 0x20], 0x58
cmove eax, ebx
mov dword [rcx + 0x80], eax
xor eax, eax
cmp byte [rdi + 0x21], 0x58
cmove eax, ebx
mov dword [rcx + 0x84], eax
xor eax, eax
cmp byte [rdi + 0x22], 0x58
cmove eax, ebx
mov dword [rcx + 0x88], eax
xor eax, eax
cmp byte [rdi + 0x23], 0x58
cmove eax, ebx
mov dword [rcx + 0x8c], eax
xor eax, eax
cmp byte [rdi + 0x24], 0x58
cmove eax, ebx
mov dword [rcx + 0x90], eax
xor eax, eax
cmp byte [rdi + 0x25], 0x58
cmove eax, ebx
mov dword [rcx + 0x94], eax
xor eax, eax
cmp byte [rdi + 0x26], 0x58
cmove eax, ebx
mov dword [rcx + 0x98], eax
lea rcx, [rcx + 0xd8]
xor eax, eax
cmp byte [rdi + 0x27], 0x58
cmove eax, ebx
mov dword [rcx - 0x3c], eax
xor eax, eax
cmp byte [rdi + 0x28], 0x58
cmove eax, ebx
mov dword [rcx - 0x38], eax
xor eax, eax
cmp byte [rdi + 0x29], 0x58
cmove eax, ebx
mov dword [rcx - 0x34], eax
xor eax, eax
cmp byte [rdi + 0x2a], 0x58
cmove eax, ebx
mov dword [rcx - 0x30], eax
xor eax, eax
cmp byte [rdi + 0x2b], 0x58
cmove eax, ebx
mov dword [rcx - 0x2c], eax
xor eax, eax
cmp byte [rdi + 0x2c], 0x58
cmove eax, ebx
mov dword [rcx - 0x28], eax
xor eax, eax
cmp byte [rdi + 0x2d], 0x58
cmove eax, ebx
mov dword [rcx - 0x24], eax
xor eax, eax
cmp byte [rdi + 0x2e], 0x58
cmove eax, ebx
mov dword [rcx - 0x20], eax
xor eax, eax
cmp byte [rdi + 0x2f], 0x58
cmove eax, ebx
mov dword [rcx - 0x1c], eax
xor eax, eax
cmp byte [rdi + 0x30], 0x58
cmove eax, ebx
mov dword [rcx - 0x18], eax
xor eax, eax
cmp byte [rdi + 0x31], 0x58
cmove eax, ebx
mov dword [rcx - 0x14], eax
xor eax, eax
cmp byte [rdi + 0x32], 0x58
cmove eax, ebx
mov dword [rcx - 0x10], eax
xor eax, eax
cmp byte [rdi + 0x33], 0x58
cmove eax, ebx
add rdi, 0x36
mov dword [rcx - 0xc], eax
sub r8, 1
jne 0x140030a00
movsxd rax, dword [rsi + 0x30]
lea rdx, [rdx + rax*4]
sub rbp, 1
jne 0x1400309f0
mov r15, qword [rsp + 0x88]
mov r13, qword [rsp + 0x80]
mov rbp, qword [rsp + 0x78]
jmp 0x140030d70
cmp ax, 2
jne 0x140030ce9
cmp word [r14 + 2], ax
je 0x140030d03
mov r8d, 0xa7a
lea rdx, [0x14005a8d0]
lea rcx, str.r__Width__2__r__Height__2
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
movzx eax, word [r14 + 4]
lea r12, [r14 + 6]
movzx edx, word [r12]
mov r9, qword [rsi + 0x20]
imul edx, ebx
add edx, eax
movsxd r8, edx
lea eax, [rdx + rbx]
movsxd rcx, eax
test r9, r9
je 0x140030d4b
mov byte [r9 + rcx + 1], 0xff
mov rax, qword [rsi + 0x20]
mov byte [rcx + rax], 0xff
mov rax, qword [rsi + 0x20]
mov byte [r8 + rax + 1], 0xff
mov rax, qword [rsi + 0x20]
mov byte [r8 + rax], 0xff
jmp 0x140030d70
mov rax, qword [rsi + 0x28]
mov ebx, 0xffffffff
mov dword [rax + rcx*4 + 4], ebx
mov rax, qword [rsi + 0x28]
mov dword [rax + rcx*4], ebx
mov rax, qword [rsi + 0x28]
mov dword [rax + r8*4 + 4], ebx
mov rax, qword [rsi + 0x28]
mov dword [rax + r8*4], ebx
movzx eax, word [r14 + 4]
movd xmm2, eax
movzx eax, word [r12]
cvtdq2ps xmm2, xmm2
movd xmm1, eax
addss xmm2, dword [0x140056594]
cvtdq2ps xmm1, xmm1
mulss xmm2, dword [rsi + 0x38]
addss xmm1, dword [0x140056594]
movss dword [rsi + 0x40], xmm2
mulss xmm1, dword [rsi + 0x3c]
movss dword [rsi + 0x44], xmm1
add rsp, 0x40
pop r14
pop r12
pop rdi
pop rsi
pop rbx
ret