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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
movsxd rsi, edx
mov edi, r8d
mov rbx, rcx
test edx, edx
js 0x1801c7264
lea eax, [rsi + 0x7a]
cmp eax, dword [rcx + 0x40]
jle 0x1801c7289
mov r9d, 0x12
lea r8, str.Assertion_failed
lea rdx, str.x___0__x__w___atlas__TexWidth
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
add eax, 0xfffffffd
cmp eax, 1
ja 0x1801c7289
int3
test edi, edi
js 0x1801c7295
lea eax, [rdi + 0x1b]
cmp eax, dword [rbx + 0x44]
jle 0x1801c72ba
mov r9d, 0x12
lea r8, str.Assertion_failed
lea rdx, str.y___0__y__h___atlas__TexHeight
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
add eax, 0xfffffffd
cmp eax, 1
ja 0x1801c72ba
int3
imul edi, dword [rbx + 0x40]
mov r10d, 0x1b
mov rax, qword [rbx + 0x38]
movzx r8d, byte [rsp + 0x60]
movsxd rcx, edi
mov edi, 0xffffffff
add rcx, rsi
lea r9, [rax + rcx*4]
lea rax, [0x18028ad02]
nop dword [rax]
nop dword [rax + rax]
lea rdx, [r9 + 8]
mov r11d, 2
nop word [rax + rax]
xor ecx, ecx
cmp byte [rax - 2], r8b
cmove ecx, edi
mov dword [rdx - 8], ecx
xor ecx, ecx
cmp byte [rax - 1], r8b
cmove ecx, edi
mov dword [rdx - 4], ecx
xor ecx, ecx
cmp byte [rax], r8b
cmove ecx, edi
mov dword [rdx], ecx
xor ecx, ecx
cmp byte [rax + 1], r8b
cmove ecx, edi
mov dword [rdx + 4], ecx
xor ecx, ecx
cmp byte [rax + 2], r8b
cmove ecx, edi
mov dword [rdx + 8], ecx
xor ecx, ecx
cmp byte [rax + 3], r8b
cmove ecx, edi
mov dword [rdx + 0xc], ecx
xor ecx, ecx
cmp byte [rax + 4], r8b
cmove ecx, edi
mov dword [rdx + 0x10], ecx
xor ecx, ecx
cmp byte [rax + 5], r8b
cmove ecx, edi
mov dword [rdx + 0x14], ecx
xor ecx, ecx
cmp byte [rax + 6], r8b
cmove ecx, edi
mov dword [rdx + 0x18], ecx
xor ecx, ecx
cmp byte [rax + 7], r8b
cmove ecx, edi
mov dword [rdx + 0x1c], ecx
xor ecx, ecx
cmp byte [rax + 8], r8b
cmove ecx, edi
mov dword [rdx + 0x20], ecx
xor ecx, ecx
cmp byte [rax + 9], r8b
cmove ecx, edi
mov dword [rdx + 0x24], ecx
xor ecx, ecx
cmp byte [rax + 0xa], r8b
cmove ecx, edi
mov dword [rdx + 0x28], ecx
xor ecx, ecx
cmp byte [rax + 0xb], r8b
cmove ecx, edi
mov dword [rdx + 0x2c], ecx
xor ecx, ecx
cmp byte [rax + 0xc], r8b
cmove ecx, edi
mov dword [rdx + 0x30], ecx
xor ecx, ecx
cmp byte [rax + 0xd], r8b
cmove ecx, edi
mov dword [rdx + 0x34], ecx
xor ecx, ecx
cmp byte [rax + 0xe], r8b
cmove ecx, edi
mov dword [rdx + 0x38], ecx
xor ecx, ecx
cmp byte [rax + 0xf], r8b
cmove ecx, edi
mov dword [rdx + 0x3c], ecx
xor ecx, ecx
cmp byte [rax + 0x10], r8b
cmove ecx, edi
mov dword [rdx + 0x40], ecx
xor ecx, ecx
cmp byte [rax + 0x11], r8b
cmove ecx, edi
mov dword [rdx + 0x44], ecx
xor ecx, ecx
cmp byte [rax + 0x12], r8b
cmove ecx, edi
mov dword [rdx + 0x48], ecx
xor ecx, ecx
cmp byte [rax + 0x13], r8b
cmove ecx, edi
mov dword [rdx + 0x4c], ecx
xor ecx, ecx
cmp byte [rax + 0x14], r8b
cmove ecx, edi
mov dword [rdx + 0x50], ecx
xor ecx, ecx
cmp byte [rax + 0x15], r8b
cmove ecx, edi
mov dword [rdx + 0x54], ecx
xor ecx, ecx
cmp byte [rax + 0x16], r8b
cmove ecx, edi
mov dword [rdx + 0x58], ecx
xor ecx, ecx
cmp byte [rax + 0x17], r8b
cmove ecx, edi
mov dword [rdx + 0x5c], ecx
xor ecx, ecx
cmp byte [rax + 0x18], r8b
cmove ecx, edi
mov dword [rdx + 0x60], ecx
xor ecx, ecx
cmp byte [rax + 0x19], r8b
cmove ecx, edi
mov dword [rdx + 0x64], ecx
xor ecx, ecx
cmp byte [rax + 0x1a], r8b
cmove ecx, edi
mov dword [rdx + 0x68], ecx
xor ecx, ecx
cmp byte [rax + 0x1b], r8b
cmove ecx, edi
mov dword [rdx + 0x6c], ecx
xor ecx, ecx
cmp byte [rax + 0x1c], r8b
cmove ecx, edi
mov dword [rdx + 0x70], ecx
xor ecx, ecx
cmp byte [rax + 0x1d], r8b
cmove ecx, edi
mov dword [rdx + 0x74], ecx
xor ecx, ecx
cmp byte [rax + 0x1e], r8b
cmove ecx, edi
mov dword [rdx + 0x78], ecx
xor ecx, ecx
cmp byte [rax + 0x1f], r8b
cmove ecx, edi
mov dword [rdx + 0x7c], ecx
xor ecx, ecx
cmp byte [rax + 0x20], r8b
cmove ecx, edi
mov dword [rdx + 0x80], ecx
xor ecx, ecx
cmp byte [rax + 0x21], r8b
cmove ecx, edi
mov dword [rdx + 0x84], ecx
xor ecx, ecx
cmp byte [rax + 0x22], r8b
cmove ecx, edi
mov dword [rdx + 0x88], ecx
xor ecx, ecx
cmp byte [rax + 0x23], r8b
cmove ecx, edi
mov dword [rdx + 0x8c], ecx
xor ecx, ecx
cmp byte [rax + 0x24], r8b
cmove ecx, edi
mov dword [rdx + 0x90], ecx
xor ecx, ecx
cmp byte [rax + 0x25], r8b
cmove ecx, edi
mov dword [rdx + 0x94], ecx
xor ecx, ecx
cmp byte [rax + 0x26], r8b
cmove ecx, edi
mov dword [rdx + 0x98], ecx
xor ecx, ecx
cmp byte [rax + 0x27], r8b
cmove ecx, edi
mov dword [rdx + 0x9c], ecx
xor ecx, ecx
cmp byte [rax + 0x28], r8b
cmove ecx, edi
mov dword [rdx + 0xa0], ecx
xor ecx, ecx
cmp byte [rax + 0x29], r8b
cmove ecx, edi
mov dword [rdx + 0xa4], ecx
xor ecx, ecx
cmp byte [rax + 0x2a], r8b
cmove ecx, edi
mov dword [rdx + 0xa8], ecx
xor ecx, ecx
cmp byte [rax + 0x2b], r8b
cmove ecx, edi
mov dword [rdx + 0xac], ecx
xor ecx, ecx
cmp byte [rax + 0x2c], r8b
cmove ecx, edi
mov dword [rdx + 0xb0], ecx
xor ecx, ecx
cmp byte [rax + 0x2d], r8b
cmove ecx, edi
mov dword [rdx + 0xb4], ecx
xor ecx, ecx
cmp byte [rax + 0x2e], r8b
cmove ecx, edi
mov dword [rdx + 0xb8], ecx
xor ecx, ecx
cmp byte [rax + 0x2f], r8b
cmove ecx, edi
mov dword [rdx + 0xbc], ecx
xor ecx, ecx
cmp byte [rax + 0x30], r8b
cmove ecx, edi
mov dword [rdx + 0xc0], ecx
xor ecx, ecx
cmp byte [rax + 0x31], r8b
cmove ecx, edi
mov dword [rdx + 0xc4], ecx
xor ecx, ecx
cmp byte [rax + 0x32], r8b
cmove ecx, edi
mov dword [rdx + 0xc8], ecx
xor ecx, ecx
cmp byte [rax + 0x33], r8b
cmove ecx, edi
mov dword [rdx + 0xcc], ecx
xor ecx, ecx
cmp byte [rax + 0x34], r8b
cmove ecx, edi
mov dword [rdx + 0xd0], ecx
xor ecx, ecx
cmp byte [rax + 0x35], r8b
cmove ecx, edi
mov dword [rdx + 0xd4], ecx
xor ecx, ecx
cmp byte [rax + 0x36], r8b
cmove ecx, edi
mov dword [rdx + 0xd8], ecx
xor ecx, ecx
cmp byte [rax + 0x37], r8b
cmove ecx, edi
mov dword [rdx + 0xdc], ecx
xor ecx, ecx
cmp byte [rax + 0x38], r8b
cmove ecx, edi
mov dword [rdx + 0xe0], ecx
xor ecx, ecx
cmp byte [rax + 0x39], r8b
cmove ecx, edi
mov dword [rdx + 0xe4], ecx
xor ecx, ecx
cmp byte [rax + 0x3a], r8b
cmove ecx, edi
add rax, 0x3d
mov dword [rdx + 0xe8], ecx
lea rdx, [rdx + 0xf4]
sub r11, 1
jne 0x1801c7300
movsxd rcx, dword [rbx + 0x40]
lea r9, [r9 + rcx*4]
sub r10, 1
jne 0x1801c72f0
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret