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

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x58
mov rbx, qword [rcx + 0x10]
mov r13d, r9d
mov r14, rdx
mov rsi, qword [rbx + 0x30]
mov rdi, rcx
movsxd rbp, dword [rsi + 0x78]
lea eax, [rbp + 1]
mov dword [rsi + 0x78], eax
lea eax, [rbp - 1]
test ebp, eax
jne 0x180051257
mov rdx, qword [rsi + 0x80]
mov rcx, qword [rsi]
lea eax, [rbp + rbp + 1]
movsxd r8, eax
shl r8, 2
call fcn.18003bc90
mov qword [rsi + 0x80], rax
mov rcx, qword [rsi + 0x80]
or r15d, 0xffffffff
test rcx, rcx
je 0x18005126b
mov dword [rcx + rbp*4], r15d
mov rsi, qword [rbx + 0x30]
mov eax, r15d
sub eax, ebp
movsxd rbp, dword [rsi + 0x78]
mov dword [rsp + 0x3c], eax
lea eax, [rbp + 1]
mov dword [rsi + 0x78], eax
lea eax, [rbp - 1]
test ebp, eax
jne 0x1800512aa
mov rdx, qword [rsi + 0x80]
mov rcx, qword [rsi]
lea eax, [rbp + rbp + 1]
movsxd r8, eax
shl r8, 2
call fcn.18003bc90
mov qword [rsi + 0x80], rax
mov rcx, qword [rsi + 0x80]
test rcx, rcx
je 0x1800512ba
mov dword [rcx + rbp*4], r15d
mov rdx, qword [rsp + 0xb0]
mov eax, r15d
xor r9d, r9d
mov r8d, dword [rdx + 0x14]
sub eax, ebp
mov rbp, qword [rdx]
mov dword [rsp + 0x40], eax
mov rax, qword [rsp + 0xc0]
mov esi, r9d
movzx r12d, byte [rax]
mov ecx, dword [rax + 4]
mov dword [rsp + 0x4c], r12d
mov dword [rsp + 0x38], ecx
test r8d, r8d
je 0x18005136f
mov dword [rsp + 0x20], r9d
mov r9d, r8d
mov r8d, dword [rdx + 0x10]
mov edx, 0x11
mov rcx, rbx
call fcn.180042780
mov r9d, dword [rsp + 0x3c]
xor r8d, r8d
lea edx, [r8 + 0x10]
mov rcx, rbx
mov dword [rsp + 0x20], esi
call fcn.180042780
mov rdx, qword [rsp + 0xb0]
mov r11, qword [rbx + 0x30]
mov r8d, dword [rdx + 0x14]
mov eax, r15d
sub eax, r8d
js 0x18005135b
mov rdx, qword [r11 + 0x80]
test rdx, rdx
je 0x180051353
movsxd rcx, eax
mov eax, dword [rbx + 0x3c]
mov dword [rdx + rcx*4], eax
mov rdx, qword [rsp + 0xb0]
mov eax, dword [rbx + 0x3c]
dec eax
xor r9d, r9d
mov dword [r11 + 0x64], eax
mov rax, qword [rsp + 0xc0]
mov ecx, dword [rdx + 0xc]
mov dword [rsp + 0x34], ecx
cmp r12d, 9
je 0x1800513d6
cmp r12d, 0xd
je 0x1800513d6
movzx eax, byte [rdi + 0x1f]
test al, al
jne 0x180051392
inc dword [rdi + 0x54]
mov ecx, dword [rdi + 0x54]
jmp 0x18005139e
dec al
movzx eax, al
mov byte [rdi + 0x1f], al
mov ecx, dword [rdi + rax*4 + 0x24]
movzx eax, byte [rdi + 0x1f]
mov dword [rsp + 0x30], ecx
test al, al
jne 0x1800513bd
inc dword [rdi + 0x54]
mov ecx, dword [rsp + 0x34]
mov r12d, dword [rdi + 0x54]
mov r13d, 1
jmp 0x1800513df
mov ecx, dword [rsp + 0x34]
dec al
mov r13d, 1
movzx eax, al
mov byte [rdi + 0x1f], al
mov r12d, dword [rdi + rax*4 + 0x24]
jmp 0x1800513df
mov r12d, dword [rax + 8]
mov dword [rsp + 0x30], r9d
mov r15d, dword [rbp]
sub r15d, dword [rdx + 8]
test byte [rdx + 0x1c], 1
je 0x1800514b3
mov r14d, dword [rdi + 0x50]
inc dword [rdi + 0x54]
mov ebp, dword [rdi + 0x54]
lea eax, [r14 + 1]
mov dword [rdi + 0x50], eax
test r8d, r8d
je 0x180051411
mov rcx, rdi
call fcn.18004c1d0
mov esi, eax
lea ecx, [r15 + r13 + 1]
mov r9d, ebp
mov r8d, r14d
mov dword [rsp + 0x20], ecx
mov rcx, rbx
mov edx, 0x3c
call fcn.180042780
test esi, esi
je 0x180051452
mov edx, dword [rbx + 0x3c]
cmp edx, esi
jbe 0x180051446
mov eax, esi
lea rcx, [rax + rax*2]
mov rax, qword [rbx + 8]
mov dword [rax + rcx*8 + 8], edx
mov ecx, dword [rbx + 0x3c]
mov rax, qword [rbx + 0x30]
dec ecx
mov dword [rax + 0x64], ecx
mov esi, dword [rsp + 0x34]
mov r9d, dword [rsp + 0x3c]
mov edx, 0x6a
mov rcx, rbx
mov r8d, esi
mov dword [rsp + 0x20], 0
call fcn.180042780
mov rcx, qword [rsp + 0xa8]
mov r8d, dword [rsp + 0x40]
mov edx, dword [rcx + 0x10]
inc eax
mov rcx, rbx
mov dword [rsp + 0x44], eax
call fcn.180049980
mov r9d, ebp
mov r8d, esi
mov edx, 0x64
mov rcx, rbx
mov dword [rsp + 0x20], r14d
call fcn.180042780
mov dword [rsp + 0x48], 0
jmp 0x1800514f1
mov dword [rsp + 0x20], r9d
mov r9d, dword [rsp + 0x3c]
mov r8d, ecx
mov edx, 0x6b
mov rcx, rbx
call fcn.180042780
mov r8d, dword [rsp + 0x40]
mov edx, dword [r14 + 0x10]
inc eax
mov rcx, rbx
mov dword [rsp + 0x44], eax
call fcn.180049980
mov r14d, dword [rsp + 0x34]
mov dword [rsp + 0x48], 1
xor esi, esi
test r13d, r13d
jle 0x180051567
mov edi, dword [rsp + 0x48]
nop dword [rax]
mov rax, qword [rbx + 0x30]
movsxd rbp, dword [rbx + 0x3c]
cmp dword [rax + 0x60], ebp
jg 0x18005151e
mov edx, 1
mov rcx, rbx
call fcn.18003af10
test eax, eax
jne 0x180051558
inc dword [rbx + 0x3c]
mov rcx, qword [rbx + 8]
lea rdx, [rbp + rbp*2]
lea eax, [rsi + rdi]
mov byte [rcx + rdx*8], 0x2f
mov byte [rcx + rdx*8 + 3], 0
add eax, r15d
mov dword [rcx + rdx*8 + 4], r14d
mov qword [rcx + rdx*8 + 0x10], 0
mov dword [rcx + rdx*8 + 8], eax
lea eax, [rsi + r12]
mov byte [rcx + rdx*8 + 1], 0
mov dword [rcx + rdx*8 + 0xc], eax
inc esi
cmp esi, r13d
jl 0x180051500
mov rdi, qword [rsp + 0xa0]
mov edx, dword [rsp + 0x4c]
mov ecx, edx
sub ecx, 0xa
je 0x1800517be
sub ecx, 1
je 0x1800516bf
sub ecx, 1
je 0x180051623
cmp ecx, 2
je 0x180051623
mov r13, qword [rsp + 0xc0]
xor r15d, r15d
mov rcx, rbx
mov dword [rsp + 0x20], r15d
cmp edx, 9
jne 0x18005160e
mov esi, dword [rsp + 0xb8]
mov r8d, dword [r13 + 8]
lea edx, [r15 + 0x23]
mov r9d, esi
call fcn.180042780
mov r11d, dword [r13 + 8]
lea rcx, [rdi + 0x94]
lea r9d, [r11 + rsi - 1]
lea r8d, [r15 + 0xa]
mov edx, dword [rcx]
cmp edx, r11d
jl 0x1800515ff
cmp edx, r9d
jg 0x1800515ff
cmp byte [rcx - 6], r15b
je 0x1800515fc
movzx eax, byte [rdi + 0x1f]
cmp al, 8
jae 0x1800515f8
movzx eax, al
mov dword [rdi + rax*4 + 0x24], edx
inc byte [rdi + 0x1f]
mov byte [rcx - 6], r15b
mov dword [rcx], r15d
add rcx, 0x14
sub r8, 1
jne 0x1800515d4
jmp 0x1800517d7
mov r8d, dword [r13 + 4]
xor r9d, r9d
lea edx, [r9 + 0x16]
call fcn.180042780
jmp 0x1800517d7
mov rax, qword [rbx + 0x30]
movsxd rsi, dword [rbx + 0x3c]
cmp dword [rax + 0x60], esi
jg 0x180051641
mov edx, 1
mov rcx, rbx
call fcn.18003af10
test eax, eax
jne 0x18005167d
inc dword [rbx + 0x3c]
mov rax, qword [rbx + 8]
mov r8d, dword [rsp + 0x38]
mov r14d, dword [rsp + 0x30]
lea rcx, [rsi + rsi*2]
xor r15d, r15d
mov byte [rax + rcx*8], 0x4a
mov byte [rax + rcx*8 + 3], 0
mov dword [rax + rcx*8 + 4], r8d
mov dword [rax + rcx*8 + 8], r14d
mov dword [rax + rcx*8 + 0xc], r15d
mov qword [rax + rcx*8 + 0x10], r15
mov byte [rax + rcx*8 + 1], r15b
jmp 0x18005168a
mov r14d, dword [rsp + 0x30]
mov r8d, dword [rsp + 0x38]
xor r15d, r15d
mov r9d, r12d
mov edx, 0x4b
mov rcx, rbx
mov dword [rsp + 0x20], r14d
call fcn.180042780
mov r11, qword [rbx + 8]
test r11, r11
je 0x1800517d7
movsxd rax, dword [rbx + 0x3c]
lea rcx, [rax + rax*2]
mov byte [r11 + rcx*8 - 0x15], 8
jmp 0x1800517d7
mov r13, qword [rsp + 0xc0]
mov r14d, dword [rsp + 0x30]
mov r9d, 1
lea edx, [r9 + 0x30]
mov r8d, r12d
mov rcx, rbx
inc r13
mov dword [rsp + 0x20], r14d
call fcn.180042780
mov rsi, qword [rbx + 8]
mov rcx, qword [rbx]
test rsi, rsi
je 0x18005174f
cmp byte [rcx + 0x51], 0
jne 0x18005174f
test eax, eax
jns 0x180051704
mov eax, dword [rbx + 0x3c]
dec eax
cdqe
lea rbp, [rax + rax*2]
movsx edx, byte [rsi + rbp*8 + 1]
mov r8, qword [rsi + rbp*8 + 0x10]
call fcn.180046990
xor r15d, r15d
mov qword [rsi + rbp*8 + 0x10], r15
test r13, r13
jne 0x180051732
mov qword [rsi + rbp*8 + 0x10], r15
mov byte [rsi + rbp*8 + 1], r15b
jmp 0x18005175f
mov rcx, qword [rbx]
mov r8d, 1
mov rdx, r13
call fcn.180034f20
mov byte [rsi + rbp*8 + 1], 0xff
mov qword [rsi + rbp*8 + 0x10], rax
jmp 0x18005175f
mov r8, r13
mov edx, 1
call fcn.180046990
xor r15d, r15d
lea rcx, [rdi + 0x94]
mov r8d, 0xa
nop dword [rax]
mov edx, dword [rcx]
cmp edx, r12d
jl 0x180051798
jg 0x180051798
cmp byte [rcx - 6], 0
je 0x180051795
movzx eax, byte [rdi + 0x1f]
cmp al, 8
jae 0x180051791
movzx eax, al
mov dword [rdi + rax*4 + 0x24], edx
inc byte [rdi + 0x1f]
mov byte [rcx - 6], 0
mov dword [rcx], r15d
add rcx, 0x14
sub r8, 1
jne 0x180051770
mov r8d, dword [rsp + 0x38]
mov r9d, r14d
mov edx, 0x6e
mov rcx, rbx
mov dword [rsp + 0x20], r15d
call fcn.180042780
jmp 0x1800517d7
mov r8d, dword [rsp + 0x38]
mov r9d, 1
mov edx, r12d
mov rcx, rdi
call fcn.1800461f0
xor r15d, r15d
mov r8d, dword [rsp + 0x30]
test r8d, r8d
je 0x180051857
test r12d, r12d
je 0x180051822
movzx edx, byte [rdi + 0x1f]
cmp dl, 8
jae 0x180051822
mov ecx, r15d
lea rax, [rdi + 0x88]
nop dword [rax]
cmp dword [rax + 0xc], r12d
je 0x18005181e
inc ecx
add rax, 0x14
cmp ecx, 0xa
jl 0x180051800
movzx eax, dl
mov dword [rdi + rax*4 + 0x24], r12d
inc byte [rdi + 0x1f]
jmp 0x180051822
mov byte [rax + 6], 1
movzx edx, byte [rdi + 0x1f]
cmp dl, 8
jae 0x180051857
mov ecx, r15d
lea rax, [rdi + 0x88]
cmp dword [rax + 0xc], r8d
je 0x180051853
inc ecx
add rax, 0x14
cmp ecx, 0xa
jl 0x180051835
movzx eax, dl
mov dword [rdi + rax*4 + 0x24], r8d
inc byte [rdi + 0x1f]
jmp 0x180051857
mov byte [rax + 6], 1
mov r8, qword [rbx + 0x30]
or ebp, 0xffffffff
mov eax, ebp
sub eax, dword [rsp + 0x40]
js 0x18005187b
mov rdx, qword [r8 + 0x80]
test rdx, rdx
je 0x18005187b
movsxd rcx, eax
mov eax, dword [rbx + 0x3c]
mov dword [rdx + rcx*4], eax
mov eax, dword [rbx + 0x3c]
mov rsi, qword [rsp + 0xb0]
dec eax
test byte [rsi + 0x1c], 1
mov dword [r8 + 0x64], eax
movsxd rdi, dword [rbx + 0x3c]
mov rax, qword [rbx + 0x30]
je 0x1800518c1
cmp dword [rax + 0x60], edi
jg 0x1800518b0
mov edx, 1
mov rcx, rbx
call fcn.18003af10
test eax, eax
jne 0x18005190a
mov rax, qword [rbx + 8]
inc dword [rbx + 0x3c]
lea rcx, [rdi + rdi*2]
mov byte [rax + rcx*8], 5
jmp 0x1800518e6
cmp dword [rax + 0x60], edi
jg 0x1800518d7
mov edx, 1
mov rcx, rbx
call fcn.18003af10
test eax, eax
jne 0x18005190a
mov rax, qword [rbx + 8]
inc dword [rbx + 0x3c]
lea rcx, [rdi + rdi*2]
mov byte [rax + rcx*8], 9
mov edx, dword [rsp + 0x34]
mov dword [rax + rcx*8 + 4], edx
mov edx, dword [rsp + 0x44]
mov byte [rax + rcx*8 + 1], 0
mov qword [rax + rcx*8 + 0x10], r15
mov dword [rax + rcx*8 + 0xc], r15d
mov dword [rax + rcx*8 + 8], edx
mov byte [rax + rcx*8 + 3], 0
mov edi, dword [rsi + 0x10]
test edi, edi
je 0x18005195b
mov rax, qword [rbx + 0x30]
movsxd rsi, dword [rbx + 0x3c]
cmp dword [rax + 0x60], esi
jg 0x18005192f
mov edx, 1
mov rcx, rbx
call fcn.18003af10
test eax, eax
jne 0x18005195b
mov rax, qword [rbx + 8]
inc dword [rbx + 0x3c]
lea rcx, [rsi + rsi*2]
mov byte [rax + rcx*8], 0x12
mov byte [rax + rcx*8 + 3], 0
mov dword [rax + rcx*8 + 4], edi
mov dword [rax + rcx*8 + 8], r15d
mov dword [rax + rcx*8 + 0xc], r15d
mov qword [rax + rcx*8 + 0x10], r15
mov byte [rax + rcx*8 + 1], 0
sub ebp, dword [rsp + 0x3c]
mov r8, qword [rbx + 0x30]
js 0x18005197a
mov rdx, qword [r8 + 0x80]
test rdx, rdx
je 0x18005197a
mov eax, dword [rbx + 0x3c]
movsxd rcx, ebp
mov dword [rdx + rcx*4], eax
mov eax, dword [rbx + 0x3c]
dec eax
mov dword [r8 + 0x64], eax
add rsp, 0x58
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret