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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x20
movsxd r14, edx
mov esi, r8d
lea rbx, str...___________XXXXXXX_____X________________X____________XXXXXXX_____________________XXXXXXX______XX__________..___________X.....X____X.X______________X.X___________X.....X_____________________X.....X_____X..X______________________XXX.XXX___X...X____________X...X__________X....X_______________________X....X_____X..X_________X______________X.X____X.....X__________X.....X_________X...X_________________________X...X_____X..X_________XX_____________X.X___X.......X________X.......X________X..X.X_______________________X.X..X_____X..X_________X.X____________X.X___XXXX.XXXX________XXXX.XXXX________X.X_X.X_____________________X.X_X.X_____X..XXX_______X..X___________X.X______X.X______________X.X___________XX___X.X___________________X.X___XX_____X..X..XXX____X...X__________X.X______X.X________XX____X.X____XX___________X.X_________________X.X___________X..X..X..XX__X....X_________X.X______X.X_______X.X____X.X____X.X___________X.X_______________X.X____________X..X..X..X.X_X.....X________X.X______X.X______X..X____X.X____X..X___________X.X_____________X.X_________XXX_X..X..X..X..XX......X_______X.X______X.X_____X...XXXXXX.XXXXXX...X___________X.X___XX_XX___X.X__________X..XX........X..XX.......X______X.X______X.X____X.....................X___________X.X_X.X_X.X_X.X___________X...X...........XX........X_____X.X______X.X_____X...XXXXXX.XXXXXX...X_____________X.X..X_X..X.X_____________X..............XX.........X__XXX.XXX____X.X______X..X____X.X____X..X_______________X...X_X...X_______________X.............XX..........X_X.....X____X.X_______X.X____X.X____X.X_______________X....X_X....X______________X.............XX......XXXXX_XXXXXXX____X.X________XX____X.X____XX_______________X.....X_X.....X______________X............XX...X..X________________X.X______________X.X_____________________XXXXXXX_XXXXXXX______________X...........X_X..X_X..X____________XXXX.XXXX________XXXX.XXXX________________________________________________X..........X_X.X__X..X____________X.......X________X.......X____________XX___________XX_____________________X..........X_XX____X..X____________X.....X__________X.....X____________X.X___________X.X_____________________X........X________X..X_____________X...X____________X...X____________X..X___________X..X____________________X........X_________XX_______________X.X______________X.X____________X...XXXXXXXXXXXXX...X___________________XXXXXXXXXX___________________________X________________X____________X.....................X______________________________________________________________________________________X...XXXXXXXXXXXXX...X________________________________________________________________________________________X..X___________X..X__________________________________________________________________________________________X.X___________X.X____________________________________________________________________________________________XX___________XX_____
mov rbp, rcx
test edx, edx
js 0x1400396c7
lea eax, [r14 + 0x6c]
cmp eax, dword [rcx + 0x30]
jle 0x1400396e1
mov r8d, 0xa58
lea rdx, [0x140058940]
lea rcx, str.x___0__x__w___atlas__TexWidth
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
test esi, esi
js 0x1400396ed
lea eax, [rsi + 0x1b]
cmp eax, dword [rbp + 0x34]
jle 0x140039707
mov r8d, 0xa59
lea rdx, [0x140058940]
lea rcx, str.y___0__y__h___atlas__TexHeight
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
imul esi, dword [rbp + 0x30]
mov r10d, 0x1b
mov rax, qword [rbp + 0x28]
movzx r8d, byte [rsp + 0x60]
movsxd rcx, esi
mov esi, 0xffffffff
add rcx, r14
lea r9, [rax + rcx*4]
nop word [rax + rax]
lea rdx, [rbx + 2]
mov r11d, 2
lea rax, [r9 + 8]
nop
xor ecx, ecx
cmp byte [rdx - 2], r8b
cmove ecx, esi
mov dword [rax - 8], ecx
xor ecx, ecx
cmp byte [rdx - 1], r8b
cmove ecx, esi
mov dword [rax - 4], ecx
xor ecx, ecx
cmp byte [rdx], r8b
cmove ecx, esi
mov dword [rax], ecx
xor ecx, ecx
cmp byte [rdx + 1], r8b
cmove ecx, esi
mov dword [rax + 4], ecx
xor ecx, ecx
cmp byte [rdx + 2], r8b
cmove ecx, esi
mov dword [rax + 8], ecx
xor ecx, ecx
cmp byte [rdx + 3], r8b
cmove ecx, esi
mov dword [rax + 0xc], ecx
xor ecx, ecx
cmp byte [rdx + 4], r8b
cmove ecx, esi
mov dword [rax + 0x10], ecx
xor ecx, ecx
cmp byte [rdx + 5], r8b
cmove ecx, esi
mov dword [rax + 0x14], ecx
xor ecx, ecx
cmp byte [rdx + 6], r8b
cmove ecx, esi
mov dword [rax + 0x18], ecx
xor ecx, ecx
cmp byte [rdx + 7], r8b
cmove ecx, esi
mov dword [rax + 0x1c], ecx
xor ecx, ecx
cmp byte [rdx + 8], r8b
cmove ecx, esi
mov dword [rax + 0x20], ecx
xor ecx, ecx
cmp byte [rdx + 9], r8b
cmove ecx, esi
mov dword [rax + 0x24], ecx
xor ecx, ecx
cmp byte [rdx + 0xa], r8b
cmove ecx, esi
mov dword [rax + 0x28], ecx
xor ecx, ecx
cmp byte [rdx + 0xb], r8b
cmove ecx, esi
mov dword [rax + 0x2c], ecx
xor ecx, ecx
cmp byte [rdx + 0xc], r8b
cmove ecx, esi
mov dword [rax + 0x30], ecx
xor ecx, ecx
cmp byte [rdx + 0xd], r8b
cmove ecx, esi
mov dword [rax + 0x34], ecx
xor ecx, ecx
cmp byte [rdx + 0xe], r8b
cmove ecx, esi
mov dword [rax + 0x38], ecx
xor ecx, ecx
cmp byte [rdx + 0xf], r8b
cmove ecx, esi
mov dword [rax + 0x3c], ecx
xor ecx, ecx
cmp byte [rdx + 0x10], r8b
cmove ecx, esi
mov dword [rax + 0x40], ecx
xor ecx, ecx
cmp byte [rdx + 0x11], r8b
cmove ecx, esi
mov dword [rax + 0x44], ecx
xor ecx, ecx
cmp byte [rdx + 0x12], r8b
cmove ecx, esi
mov dword [rax + 0x48], ecx
xor ecx, ecx
cmp byte [rdx + 0x13], r8b
cmove ecx, esi
mov dword [rax + 0x4c], ecx
xor ecx, ecx
cmp byte [rdx + 0x14], r8b
cmove ecx, esi
mov dword [rax + 0x50], ecx
xor ecx, ecx
cmp byte [rdx + 0x15], r8b
cmove ecx, esi
mov dword [rax + 0x54], ecx
xor ecx, ecx
cmp byte [rdx + 0x16], r8b
cmove ecx, esi
mov dword [rax + 0x58], ecx
xor ecx, ecx
cmp byte [rdx + 0x17], r8b
cmove ecx, esi
mov dword [rax + 0x5c], ecx
xor ecx, ecx
cmp byte [rdx + 0x18], r8b
cmove ecx, esi
mov dword [rax + 0x60], ecx
xor ecx, ecx
cmp byte [rdx + 0x19], r8b
cmove ecx, esi
mov dword [rax + 0x64], ecx
xor ecx, ecx
cmp byte [rdx + 0x1a], r8b
cmove ecx, esi
mov dword [rax + 0x68], ecx
xor ecx, ecx
cmp byte [rdx + 0x1b], r8b
cmove ecx, esi
mov dword [rax + 0x6c], ecx
xor ecx, ecx
cmp byte [rdx + 0x1c], r8b
cmove ecx, esi
mov dword [rax + 0x70], ecx
xor ecx, ecx
cmp byte [rdx + 0x1d], r8b
cmove ecx, esi
mov dword [rax + 0x74], ecx
xor ecx, ecx
cmp byte [rdx + 0x1e], r8b
cmove ecx, esi
mov dword [rax + 0x78], ecx
xor ecx, ecx
cmp byte [rdx + 0x1f], r8b
cmove ecx, esi
mov dword [rax + 0x7c], ecx
xor ecx, ecx
cmp byte [rdx + 0x20], r8b
cmove ecx, esi
mov dword [rax + 0x80], ecx
xor ecx, ecx
cmp byte [rdx + 0x21], r8b
cmove ecx, esi
mov dword [rax + 0x84], ecx
xor ecx, ecx
cmp byte [rdx + 0x22], r8b
cmove ecx, esi
mov dword [rax + 0x88], ecx
xor ecx, ecx
cmp byte [rdx + 0x23], r8b
cmove ecx, esi
mov dword [rax + 0x8c], ecx
xor ecx, ecx
cmp byte [rdx + 0x24], r8b
cmove ecx, esi
mov dword [rax + 0x90], ecx
xor ecx, ecx
cmp byte [rdx + 0x25], r8b
cmove ecx, esi
mov dword [rax + 0x94], ecx
xor ecx, ecx
cmp byte [rdx + 0x26], r8b
cmove ecx, esi
lea rdx, [rdx + 0x36]
mov dword [rax + 0x98], ecx
lea rax, [rax + 0xd8]
xor ecx, ecx
cmp byte [rdx - 0xf], r8b
cmove ecx, esi
mov dword [rax - 0x3c], ecx
xor ecx, ecx
cmp byte [rdx - 0xe], r8b
cmove ecx, esi
mov dword [rax - 0x38], ecx
xor ecx, ecx
cmp byte [rdx - 0xd], r8b
cmove ecx, esi
mov dword [rax - 0x34], ecx
xor ecx, ecx
cmp byte [rdx - 0xc], r8b
cmove ecx, esi
mov dword [rax - 0x30], ecx
xor ecx, ecx
cmp byte [rdx - 0xb], r8b
cmove ecx, esi
mov dword [rax - 0x2c], ecx
xor ecx, ecx
cmp byte [rdx - 0xa], r8b
cmove ecx, esi
mov dword [rax - 0x28], ecx
xor ecx, ecx
cmp byte [rdx - 9], r8b
cmove ecx, esi
mov dword [rax - 0x24], ecx
xor ecx, ecx
cmp byte [rdx - 8], r8b
cmove ecx, esi
mov dword [rax - 0x20], ecx
xor ecx, ecx
cmp byte [rdx - 7], r8b
cmove ecx, esi
mov dword [rax - 0x1c], ecx
xor ecx, ecx
cmp byte [rdx - 6], r8b
cmove ecx, esi
mov dword [rax - 0x18], ecx
xor ecx, ecx
cmp byte [rdx - 5], r8b
cmove ecx, esi
mov dword [rax - 0x14], ecx
xor ecx, ecx
cmp byte [rdx - 4], r8b
cmove ecx, esi
mov dword [rax - 0x10], ecx
xor ecx, ecx
cmp byte [rdx - 3], r8b
cmove ecx, esi
mov dword [rax - 0xc], ecx
sub r11, 1
jne 0x140039740
movsxd rax, dword [rbp + 0x30]
add rbx, 0x6c
lea r9, [r9 + rax*4]
sub r10, 1
jne 0x140039730
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret