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

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0xa8
mov rbx, qword [rcx + 0x28]
movsxd r8, edx
mov rdx, qword [rcx + 0x30]
mov rax, qword [rdx + 0x88]
mov r12, rcx
xor r15d, r15d
mov rbp, qword [rax + 0x15e0]
mov rax, qword [rcx + 0x20]
mov dword [rcx + 0x48], r8d
mov r13, qword [rax + 8]
mov edi, r15d
mov qword [rsp + 0x80], rdx
mov qword [rcx + 0x38], r13
mov rax, qword [rdx + 0x88]
mov rcx, r8
imul rcx, rcx, 0x15e8
add rax, rcx
cmp dword [r12 + 8], r15d
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x98], r13
mov rsi, r8
mov qword [rsp + 0x88], rax
mov qword [r12 + 0x40], rax
jne 0x180125e7f
call fcn.1800c8c00
mov r14, qword [rsp + 0x110]
test r14, r14
movsd qword [r12 + 0x50], xmm0
je 0x1801259dd
cmp dword [r14], r15d
je 0x1801259dd
mov rbx, qword [r13 + 0x18]
mov r11d, r15d
cmp dword [rbx + 0x10], r15d
jle 0x1801259ac
lea r8, [rsi + rsi*8]
mov r9, r15
lea r10, [rbp + 0x3b0]
shl r8, 6
add r8, 0x9c
nop
mov rdx, qword [rbx + 0x18]
mov rcx, qword [r14 + 0x50]
add r11d, 1
mov eax, dword [r9 + rdx + 0x10]
add r8, 4
add r10, 4
mov dword [rcx + r8 - 0x88], eax
mov eax, dword [r9 + rdx + 0x14]
mov rcx, qword [r14 + 0x50]
mov dword [r8 + rcx - 4], eax
mov eax, dword [r9 + rdx + 0x14]
mov rcx, qword [r14 + 0x50]
imul eax, dword [r9 + rdx + 0x10]
add edi, eax
mov eax, dword [r10 - 0x88]
mov dword [rcx + r8 + 0x80], eax
mov eax, dword [r10 - 4]
mov rcx, qword [r14 + 0x50]
mov dword [rcx + r8 + 0x104], eax
add r9, 0x98
cmp r11d, dword [rbx + 0x10]
jl 0x180125940
mov eax, dword [r14 + 0x40]
imul eax, dword [r14 + 0x3c]
imul eax, edi
movsxd rcx, eax
shl rcx, 4
call fcn.1800c8c40
mov rcx, qword [r14 + 0x50]
mov rbx, qword [rsp + 0x60]
lea rdx, [rsi + rsi*8]
shl rdx, 6
mov qword [rdx + rcx + 0x228], rax
cmp dword [r13 + 0x10], r15d
mov dword [rsp + 0x6c], r15d
jle 0x180125c29
mov r8, r15
mov qword [rsp + 0x78], r15
mov rsi, r15
mov qword [rsp + 0x90], r15
mov r11, r15
mov rax, qword [rbx + 0x18]
cmp dword [r8 + rax + 0x20], 0
je 0x180125a13
mov edi, r15d
jmp 0x180125a22
mov ecx, dword [r8 + rax + 0x18]
mov edi, 1
sub ecx, 1
shl edi, cl
mov r10d, dword [r8 + rax]
mov r9d, dword [rbx]
mov rcx, rax
mov r8d, dword [r8 + rcx + 4]
mov ecx, dword [rbx + 4]
mov rbx, qword [r13 + 0x18]
lea eax, [r9 + r10 - 1]
cdq
idiv r10d
mov dword [rsp + 0x68], eax
lea eax, [rcx + r8 - 1]
cdq
idiv r8d
mov r8d, dword [r11 + rbx + 8]
mov r12d, eax
mov eax, r8d
sub eax, dword [r11 + rbx]
mov dword [rsp + 0x70], eax
mov rax, qword [rsp + 0x60]
mov ecx, dword [rax + 8]
sub ecx, r9d
lea eax, [rcx + r10 - 1]
cdq
idiv r10d
mov r14d, eax
mov rax, qword [rsp + 0x88]
mov rcx, qword [rax + 0x15e0]
mov edx, dword [rsi + rcx + 0x14]
cmp edx, 1
jne 0x180125b30
mov esi, dword [r11 + rbx + 4]
cmp esi, dword [r11 + rbx + 0xc]
jge 0x180125bd9
mov r13d, dword [rsp + 0x70]
mov r15d, dword [rsp + 0x68]
mov ebp, esi
sub ebp, r12d
mov r12, qword [rsp + 0x78]
imul ebp, r14d
nop
mov r9d, dword [r11 + rbx]
mov eax, r9d
sub eax, r15d
add eax, ebp
movsxd rdx, eax
mov rax, qword [rsp + 0x60]
mov rax, qword [rax + 0x18]
mov rcx, qword [r12 + rax + 0x30]
mov eax, esi
sub eax, dword [r11 + rbx + 4]
lea r10, [rcx + rdx*4]
imul eax, r13d
cmp r9d, r8d
movsxd rcx, eax
mov rax, qword [r11 + rbx + 0x20]
lea rdx, [rax + rcx*4]
jge 0x180125b1e
nop
mov eax, dword [r10]
add r9d, 1
add rdx, 4
sub eax, edi
add r10, 4
mov dword [rdx - 4], eax
mov r8d, dword [r11 + rbx + 8]
cmp r9d, r8d
jl 0x180125b00
add esi, 1
add ebp, r14d
cmp esi, dword [r11 + rbx + 0xc]
jl 0x180125ac0
jmp 0x180125bce
test edx, edx
jne 0x180125bd9
mov esi, dword [r11 + rbx + 4]
cmp esi, dword [r11 + rbx + 0xc]
jge 0x180125bd9
mov r15d, dword [rsp + 0x70]
mov r13d, dword [rsp + 0x68]
mov ebp, esi
sub ebp, r12d
mov r12, qword [rsp + 0x78]
imul ebp, r14d
mov r9d, dword [r11 + rbx]
mov eax, r9d
sub eax, r13d
add eax, ebp
movsxd rdx, eax
mov rax, qword [rsp + 0x60]
mov rax, qword [rax + 0x18]
mov rcx, qword [r12 + rax + 0x30]
mov eax, esi
sub eax, dword [r11 + rbx + 4]
lea r10, [rcx + rdx*4]
imul eax, r15d
cmp r9d, r8d
movsxd rcx, eax
mov rax, qword [r11 + rbx + 0x20]
lea rdx, [rax + rcx*4]
jge 0x180125bc1
nop
mov eax, dword [r10]
add r9d, 1
add rdx, 4
sub eax, edi
add r10, 4
shl eax, 0xb
mov dword [rdx - 4], eax
mov r8d, dword [r11 + rbx + 8]
cmp r9d, r8d
jl 0x180125ba0
add esi, 1
add ebp, r14d
cmp esi, dword [r11 + rbx + 0xc]
jl 0x180125b60
mov r13, qword [rsp + 0x98]
xor r15d, r15d
mov ecx, dword [rsp + 0x6c]
mov r8, qword [rsp + 0x78]
add qword [rsp + 0x90], 0x434
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x90]
add ecx, 1
add r8, 0x38
add r11, 0x30
cmp ecx, dword [r13 + 0x10]
mov dword [rsp + 0x6c], ecx
mov qword [rsp + 0x78], r8
jl 0x180125a02
mov r12, qword [rsp + 0xf0]
mov r14, qword [rsp + 0x110]
mov rsi, qword [rsp + 0x88]
cmp dword [rsi + 0x10], 0
je 0x180125c74
mov rcx, qword [r13 + 0x18]
mov eax, dword [rcx + 8]
mov r9d, dword [rcx + 0xc]
mov r8, qword [rcx + 0x80]
sub eax, dword [rcx]
sub r9d, dword [rcx + 4]
mov rdx, qword [rcx + 0x50]
imul r9d, eax
mov rax, qword [rsi + 0x15e0]
mov rcx, qword [rcx + 0x20]
cmp dword [rax + 0x14], 0
jne 0x180125c6f
call fcn.180147ee0
jmp 0x180125c74
call fcn.180147e10
cmp dword [r13 + 0x10], 0
mov ebx, r15d
jle 0x180125cc0
mov rdi, r15
movsxd rax, ebx
lea rcx, [rax + rax*2]
mov rax, qword [rsi + 0x15e0]
mov edx, dword [rdi + rax + 0x14]
shl rcx, 4
add rcx, qword [r13 + 0x18]
cmp edx, 1
jne 0x180125ca7
call fcn.180127980
jmp 0x180125cb0
test edx, edx
jne 0x180125cb0
call fcn.180127d40
add ebx, 1
add rdi, 0x434
cmp ebx, dword [r13 + 0x10]
jl 0x180125c81
mov rcx, qword [r12 + 0x18]
call fcn.1801471e0
mov r8, rsi
mov rdx, r13
mov rcx, rax
mov rbx, rax
call fcn.180147290
mov rcx, rbx
call fcn.180147240
test r14, r14
je 0x180125cec
mov dword [r14 + 0x14], r15d
mov rdx, qword [rsp + 0x80]
cmp dword [rdx + 0x18], 0
jne 0x180125e52
cmp dword [rdx + 0x20], 0
jne 0x180125e52
mov rax, qword [r12 + 0x40]
mov ebx, r15d
cmp dword [rax + 0xc], 0
jle 0x180125d45
nop
nop
nop
mov r8d, 1
mov edx, ebx
mov rcx, r12
call fcn.180124690
mov rax, qword [r12 + 0x40]
add ebx, 1
cmp ebx, dword [rax + 0xc]
jl 0x180125d20
mov rdx, qword [rsp + 0x80]
mov rbp, qword [rsp + 0x100]
mov edi, dword [rsp + 0x108]
mov rbx, qword [rsp + 0x60]
test r14, r14
je 0x180125d66
mov dword [r14 + 0x14], 1
mov rcx, qword [r12 + 0x18]
mov r8, rdx
mov rdx, rbx
call fcn.1801452e0
mov ecx, dword [r12 + 0x10]
mov r9d, dword [rsi + 0xc]
mov edx, dword [rsp + 0xf8]
mov dword [rsp + 0x50], 1
mov dword [rsp + 0x48], ecx
mov ecx, dword [r12]
mov r8, r13
mov rbx, rax
mov dword [rsp + 0x40], ecx
mov ecx, dword [r12 + 4]
mov dword [rsp + 0x38], ecx
mov qword [rsp + 0x30], r14
mov rcx, rax
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], rbp
call fcn.180144d50
mov rcx, rbx
mov edi, eax
call fcn.180145340
mov r11d, dword [r12 + 0xc]
sub r11d, 1
cmp dword [r12 + 8], r11d
jne 0x180125e3c
call fcn.1800c8c00
mov rcx, qword [r12 + 0x18]
lea r8, str.__tile_encoded_in__f_s_n
subsd xmm0, qword [r12 + 0x50]
mov edx, 4
movsd xmm3, xmm0
movsd qword [r12 + 0x50], xmm0
movq r9, xmm3
call fcn.1800866f0
cmp dword [r13 + 0x10], 0
jle 0x180125e3c
mov rbx, r15
nop
nop
nop
mov rcx, qword [r13 + 0x18]
mov rcx, qword [rcx + rbx + 0x20]
call fcn.180079290
add r15d, 1
add rbx, 0x30
cmp r15d, dword [r13 + 0x10]
jl 0x180125e20
mov eax, edi
add rsp, 0xa8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
mov edi, dword [rsp + 0x108]
mov rbp, qword [rsp + 0x100]
mov r9, r14
mov r8d, edi
mov rdx, rbp
mov rcx, r12
call fcn.180124ef0
mov rdx, qword [rsp + 0x80]
jmp 0x180125d54
mov r14, qword [rsp + 0x110]
mov edi, dword [rsp + 0x108]
mov rbp, qword [rsp + 0x100]
mov rsi, rax
jmp 0x180125d59