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

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov eax, dword [rsp + 0xa8]
mov esi, dword [rsp + 0x98]
mov rbx, qword [rsp + 0xb0]
mov rbp, qword [rsp + 0xb8]
movzx r14d, ax
mov r10, rcx
movzx ecx, ax
mov r11, rdx
lea edx, [rcx + rsi]
test edx, edx
jle 0x1004042c0
cmp edx, 0xffff
jle 0x1004042c7
mov esi, 0xffff
sub esi, ecx
add eax, esi
lea edx, [rax + 0x1c]
xor ecx, ecx
movzx r12d, dx
cmp qword [rbp], r12
jb 0x1004042ac
lea edi, [rax + 8]
xor eax, eax
mov byte [rbx + 8], r8b
lea rcx, [rbx + 0x1c]
mov byte [rbx + 1], r9b
mov r8, r14
lea r13, [rbx + 0x14]
mov byte [rbx + 9], 0x11
mov byte [rbx], 0x45
mov word [rbx + 0xa], ax
mov eax, dword [r10 + 4]
mov dword [rbx + 4], 0
mov dword [rbx + 0xc], eax
mov eax, dword [r11 + 4]
xchg dh, dl
mov dword [rbx + 0x10], eax
movzx eax, word [r11 + 2]
mov word [rbx + 2], dx
movzx edx, word [r10 + 2]
shl eax, 0x10
or eax, edx
xor edx, edx
mov dword [rbx + 0x14], eax
mov eax, edi
mov word [rbx + 0x1a], dx
mov rdx, qword [rsp + 0xa0]
xchg ah, al
mov word [rbx + 0x18], ax
call fcn.1004203e0
movsxd rdx, esi
mov rcx, rax
add rcx, r14
cmp qword [rsp + 0x88], 0
je 0x1004042e0
mov r9, qword [rsp + 0x90]
mov r8, qword [rsp + 0x88]
call fcn.10040f640
movzx edx, di
lea r9, [rbx + 0x10]
lea r8, [rbx + 0xc]
mov rcx, r13
call fcn.1004017f0
test byte [rsp + 0x80], 2
je 0x1004042a3
xor word [rbx + 0x1a], 0xafbe
mov qword [rbp], r12
mov ecx, 1
mov eax, ecx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
mov esi, 1
sub esi, ecx
add eax, esi
test esi, esi
jns 0x1004041d9
movzx r14d, ax
xor esi, esi
jmp 0x1004041d9
mov r8, rdx
xor edx, edx
call fcn.100420410
jmp 0x100404280
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x48
mov eax, dword [rsp + 0xd8]
mov esi, dword [rsp + 0xc8]
mov ebp, dword [rsp + 0xb0]
mov rdi, qword [rsp + 0xe0]
mov r14d, eax
mov r11, rdx
movzx edx, ax
mov r10, rcx
lea ecx, [rdx + rsi]
test ecx, ecx
jle 0x1004044b0
cmp ecx, 0xffff
jle 0x1004044b7
mov esi, 0xffff
sub esi, edx
mov r12d, esi
mov edx, ebp
mov ecx, ebp
mov eax, ebp
xor ebx, ebx
shr edx, 1
shr ecx, 3
and eax, 0x30
lea r12d, [r12 + r14 + 8]
and ecx, 8
and edx, 0x10
or edx, ecx
cmp eax, 0x10
mov rcx, qword [rsp + 0xe8]
sete bl
lea ebx, [rdx + rbx*8]
mov edx, ebp
shr edx, 4
and edx, 8
add ebx, edx
xor edx, edx
add ebx, r12d
lea r15d, [rbx + 0x28]
movzx r15d, r15w
cmp qword [rcx], r15
jb 0x100404493
mov edx, ebp
lea r13, [rdi + 0x28]
and edx, 0x40
test eax, eax
jne 0x1004044d0
test edx, edx
jne 0x100404690
mov byte [rsp + 0x20], 0x11
test bpl, 0x80
jne 0x100404600
mov eax, r9d
movzx edx, word [r10 + 2]
mov byte [rdi + 7], r8b
xor r8d, r8d
bswap eax
and eax, 0xfffffff
movdqu xmm0, xmmword [r10 + 8]
movzx r14d, r14w
lea rcx, [r13 + 8]
or eax, 0x60000000
bswap eax
mov dword [rdi], eax
movzx eax, byte [rsp + 0x20]
movups xmmword [rdi + 8], xmm0
movdqu xmm1, xmmword [r11 + 8]
mov byte [rdi + 6], al
movzx eax, word [r11 + 2]
movups xmmword [rdi + 0x18], xmm1
shl eax, 0x10
or eax, edx
mov rdx, qword [rsp + 0xd0]
xchg bh, bl
mov word [rdi + 4], bx
mov dword [r13], eax
mov eax, r12d
mov word [r13 + 6], r8w
mov r8, r14
xchg ah, al
mov word [r13 + 4], ax
call fcn.1004203e0
movsxd rdx, esi
mov rcx, rax
add rcx, r14
cmp qword [rsp + 0xb8], 0
je 0x1004045f0
mov r9, qword [rsp + 0xc0]
mov r8, qword [rsp + 0xb8]
call fcn.10040f640
movzx edx, r12w
lea r9, [rdi + 0x18]
lea r8, [rdi + 8]
mov rcx, r13
call fcn.100401860
and ebp, 2
je 0x100404483
xor word [r13 + 6], 0xafbe
mov rax, qword [rsp + 0xe8]
mov edx, 1
mov qword [rax], r15
mov eax, edx
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov esi, 1
sub esi, edx
mov r12d, esi
test esi, esi
jns 0x10040434a
lea r14d, [rax + rsi]
xor r12d, r12d
xor esi, esi
jmp 0x10040434a
mov qword [rdi + 0x28], 0
lea rcx, [rdi + 0x30]
test bpl, 0x20
jne 0x1004045c0
mov byte [r13], 0x11
test edx, edx
je 0x1004045d8
mov byte [rsp + 0x20], 0
mov dword [rcx + 1], 0
mov byte [rcx], 0x11
mov dword [rcx + 4], 0
mov byte [r13], 0x3c
lea r13, [rcx + 8]
test bpl, 0x80
je 0x1004043c0
mov byte [r13], 0x11
lea rax, [r13 + 8]
mov dword [rsp + 0xa8], r9d
mov dword [rsp + 0x3c], r8d
mov qword [rsp + 0x98], r11
mov qword [rsp + 0x90], r10
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x30], rax
call fcn.100420470
mov byte [r13 + 1], 0
mov r8d, dword [rsp + 0x3c]
mov rcx, rax
mov r10, qword [rsp + 0x90]
movabs rax, 0x8000000080000001
mov r11, qword [rsp + 0x98]
imul rcx
mov rax, rcx
mov r9d, dword [rsp + 0xa8]
sar rax, 0x3f
add rdx, rcx
sar rdx, 0x1f
sub rdx, rax
lea eax, [rcx + rdx + 1]
xor edx, edx
mov word [r13 + 2], dx
bswap eax
mov dword [r13 + 4], eax
mov r13, qword [rsp + 0x30]
mov rax, qword [rsp + 0x28]
mov byte [rax], 0x2c
jmp 0x1004043c0
mov r13, rcx
mov qword [rdi + 0x30], 0
lea rcx, [rdi + 0x38]
jmp 0x1004044e6
test bpl, 0x80
jne 0x1004046b8
mov byte [rsp + 0x20], 0
mov r13, rcx
jmp 0x1004043c0
mov r8, rdx
xor edx, edx
call fcn.100420410
jmp 0x100404463
mov byte [rdi + 0x28], 0x11
lea r13, [rdi + 0x30]
mov dword [rsp + 0xa8], r9d
mov dword [rsp + 0x28], r8d
mov qword [rsp + 0x98], r11
mov qword [rsp + 0x90], r10
call fcn.100420470
xor r9d, r9d
mov byte [rdi + 0x29], 0
mov r10, qword [rsp + 0x90]
mov rcx, rax
mov word [rdi + 0x2a], r9w
movabs rax, 0x8000000080000001
mov r11, qword [rsp + 0x98]
imul rcx
mov rax, rcx
mov byte [rsp + 0x20], 0x2c
mov r8d, dword [rsp + 0x28]
sar rax, 0x3f
mov r9d, dword [rsp + 0xa8]
add rdx, rcx
sar rdx, 0x1f
sub rdx, rax
lea eax, [rcx + rdx + 1]
bswap eax
mov dword [rdi + 0x2c], eax
jmp 0x1004043c0
mov dword [rdi + 0x29], 0
mov rcx, r13
lea r13, [rdi + 0x30]
mov dword [rdi + 0x2c], 0
mov byte [rdi + 0x28], 0x11
mov byte [rsp + 0x20], 0x3c
jmp 0x100404512
mov byte [rcx], 0x11
mov dword [rsp + 0xa8], r9d
mov dword [rsp + 0x30], r8d
mov qword [rsp + 0x98], r11
mov qword [rsp + 0x90], r10
mov qword [rsp + 0x28], r13
lea r13, [rcx + 8]
mov qword [rsp + 0x20], rcx
call fcn.100420470
mov r10, qword [rsp + 0x90]
mov r11, qword [rsp + 0x98]
mov rcx, rax
mov r8d, dword [rsp + 0x30]
mov r9d, dword [rsp + 0xa8]
movabs rax, 0x8000000080000001
imul rcx
mov rax, rcx
sar rax, 0x3f
add rdx, rcx
sar rdx, 0x1f
sub rdx, rax
lea eax, [rcx + rdx + 1]
mov rcx, qword [rsp + 0x20]
mov byte [rsp + 0x20], 0
bswap eax
mov dword [rcx + 4], eax
xor eax, eax
mov byte [rcx + 1], 0
mov word [rcx + 2], ax
jmp 0x1004045aa
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
movzx eax, word [rcx]
mov r14d, dword [rsp + 0x60]
mov r11d, dword [rsp + 0x68]
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
mov edi, dword [rsp + 0x80]
mov rbp, qword [rsp + 0x88]
mov r10d, dword [rsp + 0x90]
mov r12, qword [rsp + 0x98]
mov r13, qword [rsp + 0xa0]
cmp ax, 2
je 0x1004047c0
cmp ax, 0x17
jne 0x1004047aa
cmp word [rdx], 0x17
je 0x100404818
xor eax, eax
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
cmp word [rdx], 2
jne 0x1004047aa
movzx r10d, r10w
movzx r9d, r9b
movzx r8d, r8b
mov dword [rsp + 0x78], edi
mov qword [rsp + 0x98], r13
mov qword [rsp + 0x90], r12
mov dword [rsp + 0x88], r10d
mov qword [rsp + 0x80], rbp
mov qword [rsp + 0x70], rsi
mov qword [rsp + 0x68], rbx
mov dword [rsp + 0x60], r11d
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
jmp 0x100404180
movzx r10d, r10w
mov r9d, r14d
movzx r8d, r8b
mov dword [rsp + 0x78], edi
mov qword [rsp + 0x98], r13
mov qword [rsp + 0x90], r12
mov dword [rsp + 0x88], r10d
mov qword [rsp + 0x80], rbp
mov qword [rsp + 0x70], rsi
mov qword [rsp + 0x68], rbx
mov dword [rsp + 0x60], r11d
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
jmp 0x1004042f0