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

Disassembly:
push rsi
push rdi
push r13
push r14
sub rsp, 0x38
mov r14, qword [rcx + 0x98]
mov rdi, rcx
mov rsi, qword [rcx + 0x10]
mov r13, qword [rcx]
test r14, r14
je 0x180059fe0
mov qword [rsp + 0x60], rbx
lea r9, [rsi + 0x88]
mov qword [rsp + 0x70], r12
xor r11d, r11d
mov qword [rsp + 0x30], r15
mov qword [rsp + 0x68], rbp
nop dword [rax]
nop word [rax + rax]
movsxd rbx, dword [r14 + 0x10]
movzx eax, byte [rdi + 0x1f]
mov r15d, dword [r14 + 0x14]
shl rbx, 5
add rbx, qword [r13 + 0x20]
test al, al
jne 0x180059d50
inc dword [rdi + 0x38]
mov ebp, dword [rdi + 0x38]
jmp 0x180059d66
dec al
lea r9, [rsi + 0x88]
movzx eax, al
mov byte [rdi + 0x1f], al
mov ebp, dword [rdi + rax*4 + 0xd8]
movsxd rcx, dword [rsi + 0x90]
lea r8d, [r15 + 2]
lea edx, [rcx + 7]
cmp dword [rsi + 0x94], ecx
jg 0x180059d96
mov r9d, edx
mov dword [rsp + 0x20], r15d
mov edx, 0x37
mov rcx, rsi
call fcn.1800cbd20
xor r11d, r11d
jmp 0x180059dc0
lea eax, [rcx + 1]
mov dword [rsi + 0x90], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [r9]
mov dword [rax + rcx*8], 0x37
mov dword [rax + rcx*8 + 4], r8d
mov dword [rax + rcx*8 + 8], edx
mov dword [rax + rcx*8 + 0xc], r15d
mov qword [rax + rcx*8 + 0x10], r11
mov rax, qword [rbx + 0x18]
mov r9d, dword [r14 + 0x10]
mov r10, qword [rdi + 0x10]
mov rbx, qword [rax + 0x68]
test byte [rbx + 0x30], 0x80
jne 0x180059e3e
movsxd rcx, dword [r10 + 0x90]
movsx edx, word [rbx + 0x38]
mov r8d, dword [rbx + 0x28]
cmp dword [r10 + 0x94], ecx
jg 0x180059e0e
mov dword [rsp + 0x28], edx
mov rcx, r10
mov dword [rsp + 0x20], r9d
mov r9d, r8d
xor r8d, r8d
lea edx, [r8 + 0x71]
call fcn.180055110
jmp 0x180059ebb
lea eax, [rcx + 1]
mov dword [r10 + 0x90], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [r10 + 0x88]
mov qword [rax + rcx*8], 0xfd71
mov dword [rax + rcx*8 + 8], r8d
mov dword [rax + rcx*8 + 0xc], r9d
mov dword [rax + rcx*8 + 0x10], edx
jmp 0x180059ebe
mov rbx, qword [rbx + 0x10]
test rbx, rbx
je 0x180059e59
mov eax, dword [rbx + 0x64]
and al, 3
cmp al, 2
je 0x180059e59
mov rbx, qword [rbx + 0x28]
test rbx, rbx
jne 0x180059e47
movsxd rcx, dword [r10 + 0x90]
mov edx, dword [rbx + 0x58]
cmp dword [r10 + 0x94], ecx
jg 0x180059e85
xor r8d, r8d
mov dword [rsp + 0x20], r9d
mov r9d, edx
mov rcx, r10
lea edx, [r8 + 0x71]
call fcn.1800cbd20
jmp 0x180059eb0
lea eax, [rcx + 1]
mov dword [r10 + 0x90], eax
lea rcx, [rcx + rcx*2]
mov rax, qword [r10 + 0x88]
mov qword [rax + rcx*8], 0x71
mov dword [rax + rcx*8 + 8], edx
mov dword [rax + rcx*8 + 0xc], r9d
mov qword [rax + rcx*8 + 0x10], r11
mov rdx, rbx
mov rcx, rdi
call fcn.180171780
xor r11d, r11d
mov eax, dword [rsi + 0x90]
add eax, 5
cmp eax, dword [rsi + 0x94]
jle 0x180059ee7
mov edx, 5
mov rcx, rsi
call fcn.1800cbda0
test eax, eax
jne 0x180059fcc
xor r11d, r11d
movsxd rax, dword [rsi + 0x90]
lea r9, [rsi + 0x88]
lea rcx, [rax + rax*2]
mov rax, qword [r9]
mov dword [rax + rcx*8 + 8], 2
mov byte [rax + rcx*8], 0x33
mov dword [rax + rcx*8 + 4], r11d
lea rdx, [rax + rcx*8]
mov eax, dword [rsi + 0x90]
mov dword [rdx + 0xc], r11d
add eax, 2
mov dword [rdx + 8], eax
mov byte [rdx + 1], 0
mov qword [rdx + 0x10], r11
mov word [rdx + 2], r11w
mov qword [rdx + 0x18], 0x7f
mov qword [rdx + 0x20], 0
mov qword [rdx + 0x28], r11
mov qword [rdx + 0x30], 0x61
mov qword [rdx + 0x38], 2
mov qword [rdx + 0x40], r11
mov qword [rdx + 0x48], 0x80
mov qword [rdx + 0x50], 0
mov qword [rdx + 0x58], r11
mov qword [rdx + 0x60], 0x7a
mov qword [rdx + 0x68], 0
mov qword [rdx + 0x70], r11
add dword [rsi + 0x90], 5
test rdx, rdx
je 0x180059fcc
mov dword [rdx + 0x3c], ebp
lea ecx, [r15 + 1]
mov dword [rdx + 4], ecx
lea eax, [r15 - 1]
mov dword [rdx + 0x20], ecx
mov dword [rdx + 0x34], eax
mov dword [rdx + 0x54], ecx
mov dword [rdx + 0x50], ebp
mov word [rdx + 0x4a], 8
test ebp, ebp
je 0x180059fc0
movzx eax, byte [rdi + 0x1f]
cmp al, 8
jae 0x180059fc0
mov dword [rdi + rax*4 + 0xd8], ebp
inc byte [rdi + 0x1f]
mov r14, qword [r14]
test r14, r14
jne 0x180059d30
mov rbp, qword [rsp + 0x68]
mov r12, qword [rsp + 0x70]
mov rbx, qword [rsp + 0x60]
mov r15, qword [rsp + 0x30]
add rsp, 0x38
pop r14
pop r13
pop rdi
pop rsi
ret