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

Disassembly:
push rbx
push rsi
push rdi
push r12
push r14
sub rsp, 0x40
mov r12, rdx
xor r14d, r14d
mov rbx, rcx
mov dword [rcx + 0x4c], r14d
mov rax, qword [rdx + 0x10]
lea r8d, [r14 + 4]
sub rax, qword [rdx]
lea rdx, [rsp + 0x80]
mov rcx, r12
and eax, 0xfffffffc
mov qword [rsp + 0x88], rax
call fcn.1400037c0
test eax, eax
jne 0x140007d4e
mov edi, dword [rsp + 0x80]
mov esi, 0xffff
mov eax, edi
shr eax, 0x10
cmp ax, si
jne 0x140007948
lea r8d, [r14 + 4]
lea rdx, [rsp + 0x70]
mov rcx, r12
call fcn.1400037c0
test eax, eax
jne 0x140007d4e
jmp 0x14000794c
mov dword [rsp + 0x70], eax
cmp di, si
jne 0x140007972
lea rdx, [rsp + 0x78]
mov r8d, 4
mov rcx, r12
call fcn.1400037c0
test eax, eax
jne 0x140007d4e
mov eax, dword [rsp + 0x78]
jmp 0x140007979
movzx eax, di
mov dword [rsp + 0x78], eax
test byte [rsp + 0x70], 3
je 0x140007991
mov eax, 0xb
add rsp, 0x40
pop r14
pop r12
pop rdi
pop rsi
pop rbx
ret
cmp eax, 0x25
je 0x1400079a7
mov eax, 2
add rsp, 0x40
pop r14
pop r12
pop rdi
pop rsi
pop rbx
ret
lea rdx, [rbx + 8]
mov r8d, 4
mov rcx, r12
call fcn.1400037c0
test eax, eax
jne 0x140007d4e
cmp dword [rbx + 8], 0x34cadd
mov qword [rsp + 0x30], r13
je 0x1400079d8
and dword [rbx + 0x460], 0xfffffffb
jmp 0x1400079df
or dword [rbx + 0x460], 4
lea rdx, [rbx + 0x3c]
mov r8d, 4
mov rcx, r12
call fcn.1400037c0
test eax, eax
jne 0x140007d49
cmp dword [rbx + 0x3c], 0xfffff
jbe 0x140007a18
mov eax, 0xb
mov r13, qword [rsp + 0x30]
add rsp, 0x40
pop r14
pop r12
pop rdi
pop rsi
pop rbx
ret
lea rdx, [rbx + 0xc]
mov r8d, 4
mov rcx, r12
call fcn.1400037c0
test eax, eax
jne 0x140007d49
lea r8d, [rax + 4]
lea rdx, [rbx + 0x24]
mov rcx, r12
mov qword [rsp + 0x28], r15
call fcn.1400037c0
test eax, eax
jne 0x140007d44
cmp dword [rbx + 0x24], 0xfffff
jbe 0x140007a62
mov eax, 0xb
jmp 0x140007d44
lea rdx, [rbx + 0x14]
mov r8d, 4
mov rcx, r12
call fcn.1400037c0
test eax, eax
jne 0x140007d44
lea rdx, [rbx + 0x18]
lea r8d, [rax + 4]
mov rcx, r12
call fcn.1400037c0
test eax, eax
jne 0x140007d44
mov ecx, dword [rbx + 0x24]
shl ecx, 4
call fcn.140003680
mov qword [rbx + 0x30], rax
test rax, rax
jne 0x140007ab2
mov eax, 3
jmp 0x140007d44
mov ecx, dword [rbx + 0x24]
mov rdx, qword [r12 + 0x10]
mov qword [rsp + 0x38], rbp
sub rdx, qword [r12]
lea eax, [rcx + rcx*2]
mov ebp, r14d
sar rdx, 2
add edx, eax
shl edx, 2
mov qword [rsp + 0x80], rdx
test ecx, ecx
je 0x140007b99
mov rdi, r14
nop word [rax + rax]
mov rax, qword [rbx + 0x30]
mov esi, ebp
mov r8d, 4
add rsi, rsi
mov rcx, r12
lea rdx, [rax + rsi*8]
call fcn.1400037c0
test eax, eax
jne 0x140007d3f
mov rax, qword [rbx + 0x30]
mov r8d, 4
mov rcx, r12
lea rdx, [rax + rsi*8 + 4]
call fcn.1400037c0
test eax, eax
jne 0x140007d3f
mov rcx, qword [rbx + 0x30]
mov eax, dword [rdi + rcx + 4]
test eax, eax
je 0x140007d1d
cmp eax, 0xfff
ja 0x140007d1d
lea rdx, [rcx + rsi*8 + 0xc]
mov r8d, 4
mov rcx, r12
call fcn.1400037c0
test eax, eax
jne 0x140007d3f
mov rcx, qword [rbx + 0x30]
mov eax, dword [rdi + rcx + 4]
cmp eax, 1
jbe 0x140007b8a
add dword [rbx + 0x4c], eax
mov eax, dword [rdi + rcx + 0xc]
sub eax, dword [rsp + 0x80]
shr eax, 2
mov dword [rdi + rcx + 8], eax
inc ebp
add rdi, 0x10
cmp ebp, dword [rbx + 0x24]
jb 0x140007af0
mov ecx, dword [rbx + 0x4c]
shl ecx, 2
call fcn.140003680
mov qword [rbx + 0x50], rax
test rax, rax
je 0x140007bfb
mov edi, r14d
cmp dword [rbx + 0x4c], r14d
jbe 0x140007be7
nop word [rax + rax]
mov rax, qword [rbx + 0x50]
mov ecx, edi
mov r8d, 4
lea rdx, [rax + rcx*4]
mov rcx, r12
call fcn.1400037c0
test eax, eax
jne 0x140007d3f
inc edi
cmp edi, dword [rbx + 0x4c]
jb 0x140007bc0
mov ecx, dword [rbx + 0x3c]
imul ecx, ecx, 0x78
call fcn.140003680
mov qword [rbx + 0x40], rax
test rax, rax
jne 0x140007c05
mov eax, 3
jmp 0x140007d3f
mov eax, dword [rbx + 0x3c]
mov esi, r14d
mov ebp, r14d
mov dword [rbx + 0x38], eax
test eax, eax
je 0x140007c7c
mov rdi, r14
nop dword [rax + rax]
mov rdx, qword [r12 + 0x10]
mov r8d, ebp
mov r9d, 1
sub rdx, qword [r12]
mov rcx, r12
imul r8, r8, 0x78
add r8, qword [rbx + 0x40]
and edx, 0xfffffffc
call fcn.140005810
cmp eax, 2
jne 0x140007c67
mov rax, qword [rbx + 0x40]
mov rcx, r12
mov edx, dword [rdi + rax + 0x10]
add edx, dword [rdi + rax]
call fcn.140003840
test eax, eax
jne 0x140007d3f
jmp 0x140007c75
test eax, eax
jne 0x140007d3f
inc ebp
add rdi, 0x78
inc esi
cmp esi, dword [rbx + 0x3c]
jb 0x140007c20
mov edx, r14d
mov dword [rbx + 0x3c], ebp
mov r8, r14
cmp dword [rbx + 0x24], edx
jbe 0x140007cfd
mov r9, r14
nop dword [rax]
mov r10, qword [rbx + 0x30]
cmp dword [r9 + r10 + 4], 1
mov ecx, dword [r9 + r10 + 0xc]
jbe 0x140007cc0
sub ecx, dword [rsp + 0x80]
shr ecx, 2
mov dword [r9 + r10 + 8], ecx
mov rcx, qword [rbx + 0x30]
mov eax, dword [rbx + 0x4c]
cmp dword [r9 + rcx + 8], eax
jae 0x140007d1d
jmp 0x140007cf0
mov r11d, dword [rbx + 0x3c]
cmp edx, r11d
jae 0x140007ce9
mov rax, r8
imul rax, rax, 0x78
add rax, qword [rbx + 0x40]
cmp dword [rax], ecx
je 0x140007ce6
inc edx
inc r8
add rax, 0x78
cmp edx, r11d
jb 0x140007cd4
cmp edx, r11d
je 0x140007d1d
mov dword [r9 + r10 + 8], edx
inc r14d
add r9, 0x10
cmp r14d, dword [rbx + 0x24]
jb 0x140007c90
mov rcx, qword [r12 + 0x10]
mov edx, dword [rsp + 0x70]
mov r8, qword [rsp + 0x88]
sub rcx, qword [r12]
lea eax, [rdx + r8]
and ecx, 0xfffffffc
cmp ecx, eax
je 0x140007d24
mov eax, 0xb
jmp 0x140007d3f
mov eax, dword [rbx + 0x24]
or dword [rbx + 0x460], 1
mov dword [rbx], edx
mov dword [rbx + 0x28], eax
mov eax, dword [rbx + 0x4c]
mov dword [rbx + 4], r8d
mov dword [rbx + 0x48], eax
xor eax, eax
mov rbp, qword [rsp + 0x38]
mov r15, qword [rsp + 0x28]
mov r13, qword [rsp + 0x30]
add rsp, 0x40
pop r14
pop r12
pop rdi
pop rsi
pop rbx
ret