Function at 0x140371d30
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, 0x58
mov r12d, dword [rcx + 0x30]
mov rdi, qword [rcx + 0x10]
test r12d, r12d
mov rbx, rcx
mov dword [rsp + 0xa8], edx
mov r13, r8
mov dword [rsp + 0xb8], r9d
jne 0x140372259
mov ebp, dword [r8 + 0x30]
xor ecx, ecx
mov byte [r8], 1
mov r14, qword [r8 + 0x28]
mov dword [rsp + 0x3c], 0
test ebp, ebp
jle 0x1403722d0
mov dword [rsp + 0x40], ecx
mov dword [rsp + 0x4c], r12d
mov qword [rsp + 0xb0], r8
jmp 0x140371f2a
mov r12d, dword [r13]
cmp r12d, 1
je 0x140372280
mov eax, dword [rbx + 0x28]
mov r10d, dword [rbx + 0x2c]
cmp r12d, eax
jg 0x140372120
lea edx, [r12 + r10]
sub eax, r12d
mov dword [rbx + 0x2c], edx
mov dword [rbx + 0x28], eax
mov r8d, r10d
xor r9d, r9d
mov rdx, r13
mov dword [rsp + 0x44], r10d
mov dword [rsp + 0x20], 1
mov rcx, rbx
call fcn.1402e92f0
mov r8d, dword [r14 + 0x10]
mov r10d, dword [rsp + 0x44]
test r8d, r8d
js 0x140371e2e
test ebp, ebp
jne 0x140371e04
mov eax, dword [rbx + 0x44]
lea ebp, [rax - 1]
mov dword [rbx + 0x44], ebp
mov edx, dword [rsp + 0xb8]
mov dword [rsp + 0x28], r10d
mov r9d, ebp
mov rcx, rbx
mov qword [rsp + 0x20], r13
mov dword [rsp + 0x44], r10d
call fcn.14023ce30
mov r10d, dword [rsp + 0x44]
mov dword [r14 + 0x10], eax
mov rax, qword [r14 + 8]
movzx r11d, r12b
test byte [rax + 4], 0x20
jne 0x1403720b8
mov rsi, qword [rsp + 0xb0]
mov rax, qword [rsp + 0xb0]
mov eax, dword [rax + 0x20]
add eax, dword [rsi + 0xc]
mov esi, dword [rsp + 0x3c]
lea edx, [rax + rsi]
movsxd rax, dword [rdi + 0x90]
cmp eax, dword [rdi + 0x94]
jge 0x140372160
lea ecx, [rax + 1]
mov dword [rdi + 0x90], ecx
lea rcx, [rax + rax*2]
mov rax, qword [rdi + 0x88]
lea rax, [rax + rcx*8]
mov dword [rax + 8], r10d
mov dword [rax + 0xc], edx
mov qword [rax + 0x10], 0
mov qword [rax], 0xa2
mov rcx, qword [rdi]
mov r8, qword [r14 + 8]
cmp byte [rcx + 0x67], 0
jne 0x140372070
movsxd rax, dword [rdi + 0x90]
lea rcx, [rax + rax*2]
mov rdx, rax
mov rax, qword [rdi + 0x88]
lea rax, [rax + rcx*8 - 0x18]
mov byte [rax + 1], 0xf9
mov qword [rax + 0x10], r8
test edx, edx
jle 0x140371eec
mov rcx, qword [rdi + 0x88]
movsxd rax, edx
lea rax, [rax + rax*2]
lea rax, [rcx + rax*8]
mov word [rax - 0x16], r11w
cmp r12d, 1
je 0x140372138
cmp dword [rbx + 0x28], r12d
jge 0x140371f04
mov dword [rbx + 0x28], r12d
mov dword [rbx + 0x2c], r10d
test ebp, ebp
jne 0x140372090
mov rsi, qword [rsp + 0xb0]
add r14, 0x18
add dword [rsp + 0x3c], 1
mov eax, dword [rsp + 0x3c]
cmp dword [rsi + 0x30], eax
jle 0x140372190
mov rax, qword [r14]
xor ebp, ebp
test byte [rax + 7], 1
mov r13, qword [rax + 0x20]
je 0x140371f8d
mov rax, qword [rax + 0x40]
mov r12, qword [rax + 0x48]
mov rax, qword [rsp + 0xb0]
mov r11d, dword [rax + 0x24]
test r11d, r11d
je 0x140371f70
mov rax, qword [r14 + 8]
test byte [rax + 4], 0x20
je 0x140371f70
mov r10d, dword [rsp + 0xa8]
test r10d, r10d
jne 0x140372390
nop dword [rax]
mov eax, dword [rbx + 0x44]
mov r9d, 0x10
mov rdx, r12
mov rcx, rbx
lea ebp, [rax - 1]
mov dword [rbx + 0x44], ebp
mov r8d, ebp
call fcn.1402eea60
test r13, r13
jne 0x140371da0
mov rax, qword [r14 + 8]
xor r10d, r10d
xor r12d, r12d
xor r11d, r11d
test byte [rax + 4], 0x20
je 0x140371e40
mov rax, qword [rbx]
mov rsi, qword [rax + 0x10]
nop dword [rax]
mov r8d, dword [rsp + 0x40]
test r8d, r8d
jne 0x140371fd9
mov rax, qword [rsp + 0xb0]
mov eax, dword [rax + 0x24]
test eax, eax
mov dword [rsp + 0x40], eax
jne 0x140372310
mov eax, dword [rdi + 0x90]
cmp eax, dword [rdi + 0x94]
jge 0x14037232f
lea edx, [rax + 1]
mov dword [rdi + 0x90], edx
movsxd rdx, eax
lea rcx, [rdx + rdx*2]
mov rdx, qword [rdi + 0x88]
lea rdx, [rdx + rcx*8]
mov ecx, dword [rsp + 0x40]
mov qword [rdx + 8], 0
mov qword [rdx + 0x10], 0
mov dword [rdx], 0x55
mov dword [rdx + 4], ecx
mov rdx, qword [rdi]
cmp byte [rdx + 0x67], 0
jne 0x140371e40
test eax, eax
jns 0x14037203d
mov eax, dword [rdi + 0x90]
sub eax, 1
cdqe
lea rdx, [rax + rax*2]
mov rax, qword [rdi + 0x88]
lea rdx, [rax + rdx*8]
cmp byte [rdx + 1], 0
jne 0x140372400
test rsi, rsi
je 0x140371e40
mov qword [rdx + 0x10], rsi
mov byte [rdx + 1], 0xfe
jmp 0x140371e40
test byte [r8 + 4], 0x10
jne 0x1403722a8
mov edx, dword [rdi + 0x90]
jmp 0x140371ed1
mov rcx, qword [rdi + 0x18]
not ebp
mov eax, dword [rcx + 0x44]
add eax, dword [rcx + 0x48]
js 0x140372380
mov rax, qword [rcx + 0x50]
movsxd rbp, ebp
mov dword [rax + rbp*4], edx
jmp 0x140371f0c
add r13, 8
test r12d, r12d
jle 0x140371fad
mov r15, r13
xor esi, esi
mov dword [rsp + 0x44], r10d
mov r13d, r11d
nop word [rax + rax]
mov rdx, qword [r15]
mov rcx, rbx
add esi, 1
add r15, 0x20
call fcn.1402ed910
test rax, rax
jne 0x140372270
cmp r12d, esi
jg 0x1403720d8
test rax, rax
mov r10d, dword [rsp + 0x44]
mov rsi, rax
mov r11d, r13d
jne 0x140371fb8
mov rax, qword [rbx]
mov rsi, qword [rax + 0x10]
jmp 0x140371fb8
mov eax, dword [rbx + 0x38]
lea r10d, [rax + 1]
add eax, r12d
mov dword [rbx + 0x38], eax
jmp 0x140371dcb
test r10d, r10d
je 0x140371f04
movzx eax, byte [rbx + 0x1f]
cmp al, 7
ja 0x140371f04
lea ecx, [rax + 1]
mov byte [rbx + 0x1f], cl
mov dword [rbx + rax*4 + 0xe4], r10d
jmp 0x140371f04
mov dword [rsp + 0x20], edx
mov r9d, r10d
xor r8d, r8d
mov edx, 0xa2
mov rcx, rdi
mov dword [rsp + 0x48], r11d
mov dword [rsp + 0x44], r10d
call fcn.140297360
mov r10d, dword [rsp + 0x44]
mov r11d, dword [rsp + 0x48]
jmp 0x140371e9e
mov ecx, dword [rsp + 0x40]
mov r13, rsi
mov r12d, dword [rsp + 0x4c]
test ecx, ecx
je 0x1403722d0
movsxd rbp, dword [rdi + 0x90]
cmp ebp, dword [rdi + 0x94]
jge 0x140372465
lea eax, [rbp + 1]
mov dword [rdi + 0x90], eax
movsxd rax, ebp
lea rdx, [rax + rax*2]
mov rax, qword [rdi + 0x88]
lea rax, [rax + rdx*8]
mov dword [rax + 4], ecx
mov qword [rax + 8], 0
mov qword [rax + 0x10], 0
mov dword [rax], 0x10
mov eax, dword [r13 + 0x24]
mov rsi, qword [r13 + 0x18]
test eax, eax
jg 0x140372221
jmp 0x140372228
mov r8d, dword [r13 + 0xc]
mov rcx, rbx
add rsi, 0x18
mov rdx, qword [rsi - 0x10]
add r8d, r12d
add r12d, 1
call fcn.1402e9210
cmp dword [r13 + 0x24], r12d
jle 0x140372228
cmp qword [rbx + 0x10], 0
jne 0x140372200
test ebp, ebp
mov byte [r13], 0
je 0x140372259
mov eax, dword [rdi + 0x90]
lea edx, [rax - 1]
cmp ebp, edx
je 0x14037245a
mov rcx, qword [rdi]
lea rdx, [0x140397be0]
cmp byte [rcx + 0x67], 0
je 0x140372442
mov dword [rdx + 8], eax
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov r10d, dword [rsp + 0x44]
mov rsi, rax
mov r11d, r13d
jmp 0x140371fb8
movzx eax, byte [rbx + 0x1f]
test al, al
je 0x140372368
sub eax, 1
mov byte [rbx + 0x1f], al
movzx eax, al
mov r10d, dword [rbx + rax*4 + 0xe4]
jmp 0x140371dcb
mov rdx, r8
mov dword [rsp + 0x48], r11d
mov dword [rsp + 0x44], r10d
call fcn.1402e3840
mov edx, dword [rdi + 0x90]
mov r10d, dword [rsp + 0x44]
mov r11d, dword [rsp + 0x48]
jmp 0x140371ed1
mov esi, dword [rsp + 0xa8]
mov eax, dword [r13 + 0x24]
test esi, esi
je 0x1403722ee
test eax, eax
mov ecx, dword [rsp + 0xa8]
jne 0x1403721a4
xor ebp, ebp
test eax, eax
mov rsi, qword [r13 + 0x18]
jg 0x140372221
mov byte [r13], 0
jmp 0x140372259
mov eax, dword [rbx + 0x38]
add eax, 1
mov dword [rsp + 0x40], eax
mov dword [rbx + 0x38], eax
mov eax, dword [rdi + 0x90]
cmp eax, dword [rdi + 0x94]
jl 0x140371feb
mov r8d, dword [rsp + 0x40]
xor r9d, r9d
mov edx, 0x55
mov rcx, rdi
mov dword [rsp + 0x20], 0
mov dword [rsp + 0x48], r11d
mov dword [rsp + 0x44], r10d
call fcn.140297360
mov r10d, dword [rsp + 0x44]
mov r11d, dword [rsp + 0x48]
jmp 0x140372023
mov eax, dword [rbx + 0x38]
lea r10d, [rax + 1]
mov dword [rbx + 0x38], r10d
jmp 0x140371dcb
mov r8d, ebp
mov rdx, rdi
call fcn.1402bda20
jmp 0x140371f0c
mov r9d, dword [rsp + 0x40]
test r9d, r9d
je 0x140372430
movsxd rax, dword [rdi + 0x90]
cmp eax, dword [rdi + 0x94]
movd xmm0, dword [rsp + 0xa8]
movd xmm1, dword [rsp + 0x40]
punpckldq xmm0, xmm1
jge 0x140372488
lea edx, [rax + 1]
mov dword [rdi + 0x90], edx
lea rdx, [rax + rax*2]
mov rax, qword [rdi + 0x88]
lea rax, [rax + rdx*8]
movq qword [rax + 4], xmm0
mov dword [rax + 0xc], 0
mov qword [rax + 0x10], 0
mov dword [rax], 0x50
jmp 0x140371f70
mov r9d, 0xfffffffe
mov r8, rsi
mov rcx, rdi
mov dword [rsp + 0x48], r11d
mov dword [rsp + 0x44], r10d
call fcn.140373be0
mov r10d, dword [rsp + 0x44]
mov r11d, dword [rsp + 0x48]
jmp 0x140371e40
mov eax, dword [rbx + 0x38]
add eax, 1
mov dword [rsp + 0x40], eax
mov dword [rbx + 0x38], eax
jmp 0x14037239e
mov rdx, qword [rdi + 0x88]
lea rcx, [rbp + rbp*2]
lea rdx, [rdx + rcx*8]
mov dword [rdx + 8], eax
jmp 0x140372259
mov dword [rdi + 0x90], ebp
jmp 0x140372259
mov r8d, ecx
mov dword [rsp + 0x20], 0
xor r9d, r9d
mov edx, 0x10
mov rcx, rdi
call fcn.140297360
movsxd rbp, eax
jmp 0x1403721eb
mov r8d, dword [rsp + 0xa8]
movd r9d, xmm1
mov edx, 0x50
mov rcx, rdi
mov dword [rsp + 0x20], 0
call fcn.140297360
jmp 0x140371f70