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

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x78
mov eax, dword [rsp + 0xe0]
mov ebx, dword [r9 + 0x1c]
mov r15, qword [rcx + 0x10]
mov qword [rsp + 0x58], rdx
mov edx, dword [rcx + 0x44]
mov r12, rcx
mov rdi, r9
mov dword [rsp + 0x38], eax
mov rax, qword [rsp + 0xe8]
mov rsi, r8
lea ecx, [rdx - 1]
mov dword [rsp + 0x40], ebx
mov rbx, qword [r9]
mov dword [r12 + 0x44], ecx
mov r9d, dword [r9 + 0x14]
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x4c], ecx
movzx ecx, byte [rax]
mov eax, dword [rax + 4]
mov byte [rsp + 0x37], cl
mov dword [rsp + 0x68], ecx
mov dword [rsp + 0x6c], eax
test r9d, r9d
jne 0x5b1af0
mov eax, dword [rdi + 0xc]
mov dword [rsp + 0x3c], eax
movzx eax, byte [rsp + 0x37]
sub eax, 9
cmp al, 1
jbe 0x5b1711
cmp dword [rsp + 0x68], 0xd
jne 0x5b1878
mov rax, qword [rsp + 0x50]
mov dword [rsp + 0x44], 0
mov r13d, dword [rax + 8]
mov eax, dword [rsp + 0x38]
sub eax, 1
mov dword [rsp + 0x64], eax
mov eax, dword [rbx]
sub eax, dword [rdi + 8]
mov dword [rsp + 0x48], eax
lea r14d, [rax + 1]
test byte [rdi + 0x24], 1
je 0x5b1aa0
mov eax, dword [r12 + 0x38]
mov ebp, dword [r12 + 0x34]
mov r11d, dword [rdi + 0x14]
lea ebx, [rax + 1]
lea eax, [rbp + 1]
mov dword [r12 + 0x34], eax
mov eax, dword [rsp + 0x38]
mov dword [r12 + 0x38], ebx
lea r10d, [rax + r14]
test r11d, r11d
jne 0x5b18e0
mov dword [rsp + 0x20], r10d
mov r9d, ebx
mov r8d, ebp
mov edx, 0x72
mov rcx, r15
call fcn.005af360
mov dword [rsp + 0x20], 0
mov r9d, dword [rsp + 0x40]
mov edx, 0x23
mov rcx, r15
mov r8d, dword [rsp + 0x3c]
call fcn.005af360
add eax, 1
mov dword [rsp + 0x60], eax
mov rax, qword [rsp + 0x58]
mov edx, dword [rax]
test edx, edx
jle 0x5b17c9
mov r8d, dword [rsp + 0x4c]
mov rcx, r15
call fcn.005afe40
mov dword [rsp + 0x20], ebp
mov r8d, dword [rsp + 0x3c]
mov r9d, ebx
mov rcx, r15
mov edx, 0x7d
call fcn.005af360
mov eax, dword [rsp + 0x48]
mov ecx, dword [rsp + 0x38]
lea r14d, [rax - 1]
test ecx, ecx
jle 0x5b1958
lea edx, [rcx - 1]
lea rax, [rsi + 0x20]
shl rdx, 5
lea rdx, [rsi + rdx + 0x40]
nop word cs:[rax + rax]
cmp word [rax], 1
adc r14d, 0
add rax, 0x20
cmp rdx, rax
jne 0x5b1810
movsxd rbx, dword [rsp + 0x64]
jmp 0x5b1859
sub r9d, 1
lea eax, [r13 + rbx]
mov r8d, ebp
mov edx, 0x59
mov rcx, r15
mov dword [rsp + 0x20], eax
sub rbx, 1
call fcn.005af360
test ebx, ebx
js 0x5b1970
mov rax, rbx
shl rax, 5
movzx r9d, word [rsi + rax + 0x20]
test r9w, r9w
jne 0x5b1830
mov r9d, r14d
sub r14d, 1
jmp 0x5b1834
movzx ecx, byte [rsp + 0x37]
movzx eax, byte [r12 + 0x1f]
and ecx, 0xfffffffd
test al, al
je 0x5b1cc0
lea edx, [rax - 1]
movzx r8d, dl
mov byte [r12 + 0x1f], dl
mov r11d, dword [r12 + r8*4 + 0xcc]
mov dword [rsp + 0x44], r11d
cmp cl, 0xc
jne 0x5b1ca0
test dl, dl
je 0x5b1cd6
sub eax, 2
mov dword [rsp + 0x64], 0xffffffff
mov byte [r12 + 0x1f], al
movzx eax, al
mov dword [rsp + 0x38], 0
mov r13d, dword [r12 + rax*4 + 0xcc]
jmp 0x5b172d
xor r9d, r9d
xor r8d, r8d
mov edx, 0x11
mov rcx, r15
mov dword [rsp + 0x20], 0
mov dword [rsp + 0x60], r10d
call fcn.005af360
mov r10d, dword [rsp + 0x60]
mov r9d, ebx
mov r8d, ebp
mov r14d, eax
mov edx, 0x72
mov rcx, r15
mov dword [rsp + 0x20], r10d
call fcn.005af360
test r14d, r14d
je 0x5b178b
mov eax, dword [r15 + 0x90]
mov rcx, qword [r15]
lea edx, [rax - 1]
cmovs r14d, edx
cmp byte [rcx + 0x61], 0
lea rdx, [0x0085a6a0]
je 0x5b1c50
mov dword [rdx + 8], eax
jmp 0x5b178b
mov r9d, dword [rsp + 0x64]
test r9d, r9d
jns 0x5b1821
nop word cs:[rax + rax]
movzx eax, byte [rsp + 0x37]
cmp al, 0xb
je 0x5b1bc8
ja 0x5b19f0
cmp al, 0xa
jne 0x5b1a00
mov eax, dword [rsp + 0x44]
test eax, eax
jne 0x5b1a38
mov edx, dword [rsp + 0x4c]
mov rcx, r15
call fcn.005af190
test byte [rdi + 0x24], 1
mov r9d, dword [rsp + 0x60]
mov dword [rsp + 0x20], 0
mov r8d, dword [rsp + 0x3c]
je 0x5b1a60
mov edx, 3
mov rcx, r15
call fcn.005af360
mov r8d, dword [rdi + 0x10]
test r8d, r8d
jne 0x5b1a7a
mov edx, dword [rsp + 0x40]
mov rcx, r15
add rsp, 0x78
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
jmp fcn.005af190
movzx eax, byte [rsp + 0x37]
and eax, 0xfffffffd
cmp al, 0xc
je 0x5b1b40
cmp dword [rsp + 0x68], 9
mov dword [rsp + 0x20], 0
je 0x5b1c6a
mov rax, qword [rsp + 0x50]
xor r9d, r9d
mov edx, 0xe
mov rcx, r15
mov r8d, dword [rax + 4]
call fcn.005af360
mov eax, dword [rsp + 0x44]
test eax, eax
je 0x5b198f
test r13d, r13d
je 0x5b1a48
mov edx, r13d
mov rcx, r12
call fcn.00599680
mov edx, dword [rsp + 0x44]
mov rcx, r12
call fcn.00599680
jmp 0x5b198f
mov edx, 5
mov rcx, r15
call fcn.005af360
mov r8d, dword [rdi + 0x10]
test r8d, r8d
je 0x5b19d1
mov dword [rsp + 0x20], 0
xor r9d, r9d
mov edx, 0x41
mov rcx, r15
call fcn.005af360
jmp 0x5b19d1
mov ebx, dword [rsp + 0x3c]
mov dword [rsp + 0x20], 0
mov edx, 0x24
mov rcx, r15
mov r9d, dword [rsp + 0x40]
mov r8d, ebx
mov ebp, ebx
call fcn.005af360
mov dword [rsp + 0x48], r14d
add eax, 1
mov dword [rsp + 0x60], eax
mov rax, qword [rsp + 0x58]
mov edx, dword [rax]
test edx, edx
jle 0x5b17e2
mov r8d, dword [rsp + 0x4c]
mov rcx, r15
call fcn.005afe40
jmp 0x5b17e2
mov dword [rsp + 0x20], 0
mov r8d, dword [rdi + 0x10]
mov rcx, r15
mov edx, 0xc
call fcn.005af360
mov r9d, dword [rsp + 0x40]
mov rcx, r15
xor r8d, r8d
mov dword [rsp + 0x20], 0
mov edx, 0xb
call fcn.005af360
mov edx, dword [rdi + 0x14]
mov rcx, r15
call fcn.005af190
jmp 0x5b16f3
mov dword [rsp + 0x20], r13d
mov r9d, dword [rsp + 0x48]
mov r8d, ebp
mov rcx, r15
mov edx, 0x59
call fcn.005af360
mov esi, dword [rsp + 0x44]
mov ebx, dword [rsp + 0x6c]
mov rcx, r15
mov dword [rsp + 0x20], 0
mov edx, 0x78
mov r9d, esi
mov r8d, ebx
call fcn.005af360
mov dword [rsp + 0x20], esi
mov r9d, r13d
mov r8d, ebx
mov edx, 0x79
mov rcx, r15
call fcn.005af360
movsxd rax, dword [r15 + 0x90]
test eax, eax
jle 0x5b1983
mov rcx, qword [r15 + 0x88]
lea rax, [rax + rax*2]
mov r8d, 8
lea rax, [rcx + rax*8]
mov word [rax - 0x16], r8w
jmp 0x5b1983
mov r14d, dword [rsp + 0x44]
mov rax, qword [rsp + 0x50]
mov r8d, r13d
mov rcx, r15
mov esi, dword [rsp + 0x38]
mov edx, 0x5b
mov rbx, qword [rax + 0x10]
mov dword [rsp + 0x20], r14d
mov r9d, esi
call fcn.005af360
mov r9d, esi
mov r8, rbx
mov rcx, r15
mov edx, eax
call fcn.0059fe40
mov dword [rsp + 0x28], esi
mov r9d, r14d
mov rcx, r15
mov dword [rsp + 0x20], r13d
mov r8d, dword [rsp + 0x6c]
mov edx, 0x83
call fcn.005af540
test r14d, r14d
je 0x5b198f
cmp esi, 1
je 0x5b1cf9
mov eax, dword [rsp + 0x38]
cmp eax, dword [r12 + 0x28]
jle 0x5b1a48
mov dword [r12 + 0x28], eax
mov dword [r12 + 0x2c], r13d
jmp 0x5b1a48
mov rdx, qword [r15 + 0x88]
movsxd r11, r14d
lea rcx, [r11 + r11*2]
lea rdx, [rdx + rcx*8]
mov dword [rdx + 8], eax
jmp 0x5b178b
mov rax, qword [rsp + 0x50]
mov r9d, dword [rsp + 0x38]
mov edx, 0x50
mov rcx, r15
mov r8d, dword [rax + 8]
call fcn.005af360
mov edx, dword [rsp + 0x44]
test edx, edx
jne 0x5b1a38
jmp 0x5b198f
mov r11d, dword [rsp + 0x38]
mov rcx, r12
mov edx, r11d
call fcn.005996a0
mov r13d, eax
lea eax, [r11 - 1]
mov dword [rsp + 0x64], eax
jmp 0x5b172d
mov eax, dword [r12 + 0x38]
add eax, 1
mov dword [rsp + 0x44], eax
mov dword [r12 + 0x38], eax
cmp cl, 0xc
jne 0x5b1ca0
mov eax, dword [r12 + 0x38]
mov dword [rsp + 0x64], 0xffffffff
mov dword [rsp + 0x38], 0
lea r13d, [rax + 1]
mov dword [r12 + 0x38], r13d
jmp 0x5b172d
mov edx, r13d
mov rcx, r12
call fcn.00599710
jmp 0x5b1a48