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

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x10], rdx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
mov rdi, qword [rcx + 0x10]
mov r13, r9
mov r12, r8
mov eax, dword [rdi + 0x3c]
mov rbp, qword [rdi + 0x30]
mov r14, rdx
movsxd rsi, dword [rbp + 0x78]
mov dword [rsp + 0x34], eax
mov rbx, rcx
lea eax, [rsi + 1]
mov dword [rbp + 0x78], eax
lea eax, [rsi - 1]
test esi, eax
jne 0x1800509c7
mov rdx, qword [rbp + 0x80]
mov rcx, qword [rbp]
lea eax, [rsi + rsi + 1]
movsxd r8, eax
shl r8, 2
call fcn.18003bc90
mov qword [rbp + 0x80], rax
mov rcx, qword [rbp + 0x80]
or edx, 0xffffffff
test rcx, rcx
je 0x1800509d9
mov dword [rcx + rsi*4], edx
mov r15d, dword [rsp + 0xa8]
mov ebp, edx
sub ebp, esi
xor esi, esi
mov dword [rsp + 0x80], ebp
test r15d, r15d
je 0x180050b52
lea edx, [rsi + 0x2e]
xor r9d, r9d
mov r8d, r15d
mov rcx, rdi
mov dword [rsp + 0x20], esi
call fcn.180042780
mov rsi, qword [rsp + 0xb0]
mov dword [rsp + 0x30], eax
test rsi, rsi
je 0x180050a1f
inc dword [rsi]
mov ecx, dword [r12 + 0xc]
mov r8d, dword [r12 + 8]
lea ebp, [r15 + 1]
mov dword [rsp + 0x20], ecx
mov r9d, ebp
mov edx, 0x2a
mov rcx, rdi
call fcn.180042780
mov r14, qword [rdi + 8]
mov rcx, qword [rdi]
mov dword [rsp + 0xa8], eax
mov edx, eax
test r14, r14
je 0x180050ab0
cmp byte [rcx + 0x51], 0
jne 0x180050ab0
test eax, eax
jns 0x180050a65
mov edx, dword [rdi + 0x3c]
dec edx
movsxd rax, edx
lea rbp, [rax + rax*2]
movsx edx, byte [r14 + rbp*8 + 1]
mov r8, qword [r14 + rbp*8 + 0x10]
call fcn.180046990
xor r11d, r11d
mov qword [r14 + rbp*8 + 0x10], r11
test rsi, rsi
jne 0x180050a99
mov qword [r14 + rbp*8 + 0x10], rsi
mov byte [r14 + rbp*8 + 1], sil
lea ebp, [r15 + 1]
jmp 0x180050abf
mov qword [r14 + rbp*8 + 0x10], rsi
mov byte [r14 + rbp*8 + 1], 0xfa
lea ebp, [r15 + 1]
jmp 0x180050abd
mov r8, rsi
mov edx, 0xfffffffa
call fcn.180046990
xor esi, esi
mov r8d, dword [rsp + 0xa8]
mov r9d, dword [rsp + 0x80]
mov edx, 0x2b
add r8d, 2
mov rcx, rdi
mov dword [rsp + 0x20], r8d
call fcn.180042780
mov r11d, dword [rdi + 0x3c]
mov eax, dword [rsp + 0x30]
cmp r11d, eax
jbe 0x180050aff
lea rcx, [rax + rax*2]
mov rax, qword [rdi + 8]
mov dword [rax + rcx*8 + 8], r11d
mov ecx, dword [rdi + 0x3c]
mov rax, qword [rdi + 0x30]
mov r9d, ebp
dec ecx
mov edx, 0x21
mov dword [rax + 0x64], ecx
mov eax, dword [r12 + 0xc]
mov r8d, dword [r12 + 8]
dec eax
mov rcx, rdi
mov dword [rsp + 0x20], eax
call fcn.180042780
mov edx, 0x19
lea r8d, [rdx - 0x18]
mov r9d, r15d
mov rcx, rdi
mov dword [rsp + 0x20], esi
call fcn.180042780
mov ebp, dword [rsp + 0x80]
mov r14, qword [rsp + 0x88]
mov rax, qword [rbx]
cmp byte [rax + 0x51], 0
je 0x180050b62
xor eax, eax
jmp 0x180050dca
mov edx, dword [r14 + 0x10]
mov r8d, ebp
mov rcx, rdi
call fcn.180049980
movzx r11d, byte [r13]
sub r11d, 0xa
je 0x180050f02
sub r11d, 1
je 0x180050deb
sub r11d, 1
je 0x180050c45
sub r11d, 1
je 0x180050bd6
cmp r11d, 1
je 0x180050c45
mov r9d, dword [r12 + 0xc]
mov r8d, dword [r12 + 8]
mov edx, 0x23
mov rcx, rdi
mov dword [rsp + 0x20], esi
call fcn.180042780
mov r8d, dword [r12 + 0xc]
mov edx, dword [r12 + 8]
mov rcx, rbx
call fcn.180022bf0
jmp 0x180050d5b
cmp dword [r13 + 8], 0
jne 0x180050c14
mov ecx, dword [r12 + 0xc]
mov edx, dword [rbx + 0x44]
mov r8d, dword [rbx + 0x48]
cmp ecx, edx
jg 0x180050bfb
lea eax, [r8 + rcx]
sub edx, ecx
mov dword [rbx + 0x48], eax
mov dword [rbx + 0x44], edx
jmp 0x180050c07
mov eax, dword [rbx + 0x54]
lea r8d, [rax + 1]
add eax, ecx
mov dword [rbx + 0x54], eax
mov dword [r13 + 8], r8d
mov eax, dword [r12 + 0xc]
mov dword [r13 + 0xc], eax
mov r9d, dword [r13 + 0xc]
mov r8d, dword [r13 + 8]
mov edx, dword [r12 + 8]
mov rcx, rbx
call fcn.1800461f0
mov r8d, dword [r13 + 4]
xor r9d, r9d
lea edx, [r9 + 0x16]
mov rcx, rdi
mov dword [rsp + 0x20], esi
call fcn.180042780
jmp 0x180050d5b
movzx eax, byte [rbx + 0x1f]
test al, al
jne 0x180050c55
inc dword [rbx + 0x54]
mov ebp, dword [rbx + 0x54]
jmp 0x180050c61
dec al
movzx eax, al
mov byte [rbx + 0x1f], al
mov ebp, dword [rbx + rax*4 + 0x24]
movzx eax, byte [rbx + 0x1f]
test al, al
jne 0x180050c71
inc dword [rbx + 0x54]
mov esi, dword [rbx + 0x54]
jmp 0x180050c7d
dec al
movzx eax, al
mov byte [rbx + 0x1f], al
mov esi, dword [rbx + rax*4 + 0x24]
mov r9d, dword [r12 + 0xc]
mov r8d, dword [r12 + 8]
mov edx, 0x31
mov rcx, rdi
mov dword [rsp + 0x20], ebp
call fcn.180042780
mov r8d, dword [r13 + 4]
mov r9d, esi
mov edx, 0x4a
mov rcx, rdi
mov dword [rsp + 0x20], 0
call fcn.180042780
mov r8d, dword [r13 + 4]
mov r9d, ebp
mov edx, 0x4b
mov rcx, rdi
mov dword [rsp + 0x20], esi
call fcn.180042780
mov r11, qword [rdi + 8]
test r11, r11
je 0x180050ce3
movsxd rax, dword [rdi + 0x3c]
lea rcx, [rax + rax*2]
mov byte [r11 + rcx*8 - 0x15], 8
test esi, esi
je 0x180050d20
movzx edx, byte [rbx + 0x1f]
cmp dl, 8
jae 0x180050d20
xor ecx, ecx
lea rax, [rbx + 0x88]
nop dword [rax]
cmp dword [rax + 0xc], esi
je 0x180050d1c
inc ecx
add rax, 0x14
cmp ecx, 0xa
jl 0x180050d00
movzx eax, dl
mov dword [rbx + rax*4 + 0x24], esi
inc byte [rbx + 0x1f]
jmp 0x180050d20
mov byte [rax + 6], 1
test ebp, ebp
je 0x180050d54
movzx edx, byte [rbx + 0x1f]
cmp dl, 8
jae 0x180050d54
xor ecx, ecx
lea rax, [rbx + 0x88]
cmp dword [rax + 0xc], ebp
je 0x180050de2
inc ecx
add rax, 0x14
cmp ecx, 0xa
jl 0x180050d36
movzx eax, dl
mov dword [rbx + rax*4 + 0x24], ebp
inc byte [rbx + 0x1f]
mov ebp, dword [rsp + 0x80]
mov r8d, dword [r14 + 0xc]
or ebx, 0xffffffff
test r8d, r8d
je 0x180050d80
mov r9d, dword [rsp + 0xb8]
mov edx, 0x8b
mov rcx, rdi
mov dword [rsp + 0x20], ebx
call fcn.180042780
sub ebx, ebp
mov r9, qword [rdi + 0x30]
js 0x180050d9e
mov rcx, qword [r9 + 0x80]
test rcx, rcx
je 0x180050d9e
mov edx, dword [rdi + 0x3c]
movsxd r8, ebx
mov dword [rcx + r8*4], edx
mov edx, dword [rdi + 0x3c]
mov r8d, dword [rsp + 0xa0]
mov rcx, rdi
dec edx
mov dword [rsp + 0x20], 0
mov dword [r9 + 0x64], edx
xor r9d, r9d
lea edx, [r9 + 0x12]
call fcn.180042780
mov eax, dword [rsp + 0x34]
mov rbx, qword [rsp + 0x90]
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov byte [rax + 6], 1
jmp 0x180050d54
mov rax, qword [rsp + 0x88]
movzx edx, byte [r13 + 1]
lea r14, [r13 + 1]
mov rax, qword [rax]
mov rcx, qword [rax + 8]
mov rcx, qword [rcx]
call fcn.180022e50
mov byte [r14], al
movzx eax, byte [rbx + 0x1f]
test al, al
jne 0x180050e1f
inc dword [rbx + 0x54]
mov r15d, dword [rbx + 0x54]
jmp 0x180050e2c
dec al
movzx eax, al
mov byte [rbx + 0x1f], al
mov r15d, dword [rbx + rax*4 + 0x24]
mov r8d, dword [r12 + 8]
mov r9d, 1
mov rcx, rdi
lea edx, [r9 + 0x30]
mov dword [rsp + 0x20], r15d
call fcn.180042780
mov rbp, qword [rdi + 8]
mov rcx, qword [rdi]
test rbp, rbp
je 0x180050eae
cmp byte [rcx + 0x51], 0
jne 0x180050eae
test eax, eax
jns 0x180050e63
mov eax, dword [rdi + 0x3c]
dec eax
cdqe
lea rsi, [rax + rax*2]
movsx edx, byte [rbp + rsi*8 + 1]
mov r8, qword [rbp + rsi*8 + 0x10]
call fcn.180046990
xor r11d, r11d
mov qword [rbp + rsi*8 + 0x10], r11
test r14, r14
jne 0x180050e91
mov qword [rbp + rsi*8 + 0x10], r11
mov byte [rbp + rsi*8 + 1], r11b
jmp 0x180050ebb
mov rcx, qword [rdi]
mov r8d, 1
mov rdx, r14
call fcn.180034f20
mov byte [rbp + rsi*8 + 1], 0xff
mov qword [rbp + rsi*8 + 0x10], rax
jmp 0x180050ebb
mov r8, r14
mov edx, 1
call fcn.180046990
mov edx, dword [r12 + 8]
mov r8d, 1
mov rcx, rbx
call fcn.180022bf0
mov r8d, dword [r13 + 4]
mov r9d, r15d
mov edx, 0x6e
mov rcx, rdi
mov dword [rsp + 0x20], 0
call fcn.180042780
mov edx, r15d
mov rcx, rbx
call fcn.18000fab0
mov r14, qword [rsp + 0x88]
jmp 0x180050d54
mov r8d, dword [r13 + 4]
mov edx, dword [r12 + 8]
mov r9d, 1
mov rcx, rbx
call fcn.1800461f0
jmp 0x180050d5b