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

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x58
mov rdi, qword [rcx + 0x30]
lea eax, [r9 - 1]
xor ebp, ebp
mov r15, r8
mov r13, rdx
mov r12, rcx
imul rax, rax, 0x34
movzx eax, word [rax + r8]
mov dword [rsp + 0x44], ebp
lea esi, [rax + rax + 0x200]
mov rax, qword [rcx]
call qword [rax + 0x68]
mov rdx, qword [rdi]
mov rcx, rdi
movzx ebx, ax
call qword [rdx + 0x10]
xor edx, edx
imul ebx, eax
mov eax, esi
div ebx
mov r14d, eax
cmp edx, ebp
je 0x10004d1b3
inc r14d
mov ebp, dword [r15 + 4]
mov edx, dword [r13]
mov rcx, qword [r12 + 0x48]
mov r8d, ebp
mov dword [rsp + 0x48], ebp
call fcn.100044c38
mov rbx, qword [rsp + 0xe8]
mov esi, 0xfffffff
mov edi, eax
cmp r14d, eax
jbe 0x10004d3c3
mov rdx, qword [rsp + 0xf0]
mov ebp, 1
mov rcx, rbx
mov dword [rsp + 0x44], ebp
call fcn.10004a32c
mov rax, qword [rbx]
lea r9d, [rbp + 2]
xor r8d, r8d
mov edx, 0x1393
mov rcx, rbx
call qword [rax + 0x18]
lea rdx, [0x1000013b4]
mov rcx, rbx
call fcn.1000157e0
mov edx, r14d
sub edx, edi
je 0x10004d26c
mov rcx, qword [r12 + 0x48]
lea r8, [rsp + 0x48]
call fcn.1000453ec
xor edi, edi
mov esi, eax
cmp eax, edi
je 0x10004d26c
mov rdx, qword [r12]
mov rcx, r12
call qword [rdx + 0xc0]
cmp al, dil
je 0x10004d297
mov edx, esi
mov rcx, r12
call fcn.100052f84
cmp al, dil
jne 0x10004d297
mov rcx, qword [r12 + 0x48]
mov edx, esi
call fcn.1000457ec
mov rax, qword [rbx]
mov r9d, 3
xor r8d, r8d
mov edx, 0x1394
mov rcx, rbx
call qword [rax + 0x18]
lea rdx, [0x1000013b4]
mov rcx, rbx
call fcn.1000157e0
jmp 0x10004da47
mov rdi, qword [r12 + 0x48]
mov r13, qword [rsp + 0xd0]
mov r9d, esi
mov al, byte [rdi + 0x50]
cmp al, 0xc
jne 0x10004d2e2
mov r8, qword [rdi + 0x30]
lea ecx, [r9 + r9*2]
mov eax, ecx
shr eax, 1
add eax, ebp
movzx edx, byte [rax + r8]
mov eax, ecx
shr rax, 1
test bpl, cl
movzx ecx, byte [rax + r8]
je 0x10004d2d8
shl edx, 4
shr ecx, 4
jmp 0x10004d2de
and edx, 0xf
shl edx, 8
or edx, ecx
jmp 0x10004d2fc
cmp al, 0x10
mov rax, qword [rdi + 0x30]
mov ecx, r9d
jne 0x10004d2f3
movzx edx, word [rax + rcx*2]
jmp 0x10004d2fc
mov edx, dword [rax + rcx*4]
and edx, 0xfffffff
mov cl, byte [r13 + 0x14]
mov r8d, r9d
shr r8, cl
cmp edx, dword [rdi + 0x3c]
mov rdi, qword [r13 + 0x20]
mov edx, ebp
jae 0x10004d396
mov eax, dword [r13 + 0x18]
mov r10d, r9d
and eax, r9d
mov cl, al
shl edx, cl
or dword [rdi + r8*4], edx
mov rdi, qword [r12 + 0x48]
mov al, byte [rdi + 0x50]
cmp al, 0xc
jne 0x10004d374
mov rdx, qword [rdi + 0x30]
lea ecx, [r9 + r9*2]
mov eax, ecx
shr eax, 1
add eax, ebp
movzx r9d, byte [rax + rdx]
mov eax, ecx
test bpl, cl
je 0x10004d35d
shr rax, 1
shl r9d, 4
movzx ecx, byte [rax + rdx]
shr ecx, 4
jmp 0x10004d36c
and r9d, 0xf
shl r9d, 8
shr rax, 1
movzx ecx, byte [rax + rdx]
or r9d, ecx
jmp 0x10004d2a7
cmp al, 0x10
mov rax, qword [rdi + 0x30]
jne 0x10004d386
movzx r9d, word [rax + r10*2]
jmp 0x10004d2a7
mov r9d, dword [rax + r10*4]
and r9d, 0xfffffff
jmp 0x10004d2a7
mov ecx, dword [r13 + 0x18]
mov ebp, dword [rsp + 0x48]
and ecx, r9d
shl edx, cl
or dword [rdi + r8*4], edx
mov r9d, dword [r15 + 4]
mov rcx, qword [r12 + 0x48]
mov r8d, ebp
mov edx, esi
call fcn.10001e404
mov dword [r15 + 4], ebp
jmp 0x10004d537
jae 0x10004d53f
mov rdx, qword [rsp + 0xf0]
mov rcx, rbx
mov dword [rsp + 0x44], 1
call fcn.10004a32c
mov rax, qword [rbx]
mov r9d, 3
xor r8d, r8d
mov edx, 0x138f
mov rcx, rbx
call qword [rax + 0x18]
lea rdx, [0x1000013b4]
mov rcx, rbx
call fcn.1000157e0
mov edx, dword [r13]
mov rcx, qword [r12 + 0x48]
lea r8d, [r14 - 1]
call fcn.100044acc
mov r8d, dword [r15 + 4]
mov rcx, qword [r12 + 0x48]
mov edx, eax
mov ebp, eax
call fcn.100053558
mov r13, qword [rsp + 0xd0]
mov dword [r15 + 4], ebp
mov rdi, qword [r12 + 0x48]
mov r11d, eax
cmp byte [rdi + 0x50], 0xc
jne 0x10004d479
mov r8, qword [rdi + 0x30]
lea ecx, [r11 + r11*2]
mov eax, ecx
shr eax, 1
inc eax
movzx edx, byte [rax + r8]
mov eax, ecx
shr rax, 1
test cl, 1
movzx ecx, byte [rax + r8]
je 0x10004d46f
shl edx, 4
shr ecx, 4
jmp 0x10004d475
and edx, 0xf
shl edx, 8
or edx, ecx
jmp 0x10004d491
cmp byte [rdi + 0x50], 0x10
mov rax, qword [rdi + 0x30]
mov ecx, r11d
jne 0x10004d48c
movzx edx, word [rax + rcx*2]
jmp 0x10004d491
mov edx, dword [rax + rcx*4]
and edx, esi
mov cl, byte [r13 + 0x14]
mov r8d, r11d
shr r8, cl
cmp edx, dword [rdi + 0x3c]
mov rdi, qword [r13 + 0x20]
mov edx, 1
jae 0x10004d528
mov eax, dword [r13 + 0x18]
mov r9d, r11d
and eax, r11d
mov cl, al
shl edx, cl
not edx
and dword [rdi + r8*4], edx
mov rdi, qword [r12 + 0x48]
mov al, byte [rdi + 0x50]
cmp al, 0xc
jne 0x10004d50a
mov rdx, qword [rdi + 0x30]
lea ecx, [r11 + r11*2]
mov eax, ecx
shr eax, 1
inc eax
movzx r11d, byte [rax + rdx]
mov eax, ecx
test cl, 1
je 0x10004d4f3
shr rax, 1
shl r11d, 4
movzx ecx, byte [rax + rdx]
shr ecx, 4
jmp 0x10004d502
and r11d, 0xf
shl r11d, 8
shr rax, 1
movzx ecx, byte [rax + rdx]
or r11d, ecx
jmp 0x10004d43f
cmp al, 0x10
mov rax, qword [rdi + 0x30]
jne 0x10004d51c
movzx r11d, word [rax + r9*2]
jmp 0x10004d43f
mov r11d, dword [rax + r9*4]
and r11d, esi
jmp 0x10004d43f
mov ecx, dword [r13 + 0x18]
and ecx, r11d
shl edx, cl
not edx
and dword [rdi + r8*4], edx
mov r13, qword [rsp + 0xa8]
mov esi, dword [rsp + 0xd8]
xor r15d, r15d
mov byte [rsp + 0xa0], r15b
cmp esi, r15d
je 0x10004d5e1
mov rax, qword [r12]
lea r8, [rsp + 0xa0]
mov r9d, ebp
mov rdx, r13
mov rcx, r12
mov qword [rsp + 0x28], r15
mov byte [rsp + 0x20], 1
call qword [rax + 0xa8]
cmp al, r15b
jne 0x10004d599
mov rdx, qword [rsp + 0xf0]
mov rcx, rbx
call fcn.10004a32c
jmp 0x10004d26c
cmp byte [rsp + 0xa0], r15b
je 0x10004d5e1
mov rdx, qword [rsp + 0xf0]
mov rcx, rbx
mov dword [rsp + 0x44], 1
call fcn.10004a32c
mov rax, qword [rbx]
mov r9d, 3
xor r8d, r8d
mov edx, 0x1395
mov rcx, rbx
call qword [rax + 0x18]
lea rdx, [0x1000013b4]
mov rcx, rbx
call fcn.1000157e0
mov r8, qword [r12 + 0x30]
mov rdx, qword [rsp + 0xc0]
movzx eax, r14w
mov dword [rsp + 0x30], eax
mov eax, dword [r13]
mov r13, qword [rsp + 0xc8]
mov dword [rsp + 0x28], eax
mov rax, qword [r12 + 0x48]
mov r9, r12
mov rcx, r13
mov qword [rsp + 0x20], rax
call fcn.10004704c
cmp al, r15b
je 0x10004da0b
mov rdi, qword [r13 + 0x80]
lea rbp, [rdi + 0x20]
cmp rdi, r15
jne 0x10004d637
mov rbp, r15
cmp rbp, r15
je 0x10004da0b
cmp rdi, r15
je 0x10004da0b
mov rax, qword [r13]
mov rcx, r13
call qword [rax + 0x10]
cmp al, r15b
jne 0x10004d697
cmp esi, r15d
jne 0x10004da47
mov rdx, qword [rsp + 0xf0]
mov rcx, rbx
call fcn.10004a32c
mov rax, qword [rbx]
mov r9d, 3
xor r8d, r8d
mov edx, 0x1395
mov rcx, rbx
call qword [rax + 0x18]
lea rdx, [0x1000013b4]
mov rcx, rbx
call fcn.1000157e0
mov word [rdi + 2], r15w
mov word [rdi + 4], r15w
mov word [rdi + 6], r15w
mov word [rdi + 8], r15w
mov word [rdi + 0xa], r15w
mov word [rdi + 0xc], r15w
mov word [rdi + 0xe], r15w
mov word [rdi + 0x10], r15w
mov word [rdi + 0x12], r15w
mov word [rdi + 0x14], r15w
mov eax, 0x4445
mov r14d, 0xf0
mov word [rdi], ax
movzx eax, r15w
mov rdi, rbp
mov rcx, r14
mov byte [rsp + 0xa0], r15b
mov esi, r15d
rep stosw word [rdi], ax
mov eax, dword [rsp + 0xb8]
mov byte [rsp + 0x40], 1
cmp eax, r15d
mov rdi, r15
jle 0x10004d8e8
mov bl, byte [rsp + 0x40]
mov rdx, qword [rsp + 0xb0]
mov r13, qword [rsp + 0xa8]
mov r15, rax
mov r8d, 0xffff
cmp byte [rdx + 0x1a], 1
jne 0x10004d7d8
movzx eax, word [rdx]
xor bl, bl
cmp esi, eax
jge 0x10004d761
lea rcx, [rbp + rdi*2 + 0x1e0]
cmp word [rcx], r8w
je 0x10004d751
mov word [rcx], r8w
mov byte [rsp + 0xa0], 1
movzx eax, word [rdx]
inc esi
inc rdi
add rcx, 2
cmp esi, eax
jl 0x10004d73f
mov r8d, dword [rdx + 4]
mov rcx, qword [r12 + 0x48]
mov edx, dword [r13]
call fcn.100044c38
mov ecx, esi
sar ecx, 7
mov r11d, eax
xor eax, eax
movsxd rdx, ecx
cmp rdx, rax
jl 0x10004d798
cmp word [rbp + rdx*2], ax
jne 0x10004d798
mov word [rbp + rdx*2], r11w
sub rdx, 1
jns 0x10004d785
movsxd rax, esi
sar rax, 7
movzx ecx, word [rbp + rax*2]
movzx eax, word [rbp + rdi*2 + 0x1e0]
sub r11d, ecx
cmp eax, r11d
je 0x10004d7c5
mov word [rbp + rdi*2 + 0x1e0], r11w
mov byte [rsp + 0xa0], 1
mov rdx, qword [rsp + 0xb0]
inc esi
mov r8d, 0xffff
inc rdi
add rdx, 0x34
sub r15, 1
mov qword [rsp + 0xb0], rdx
jne 0x10004d724
mov r13, qword [rsp + 0xc8]
cmp bl, r15b
mov rbx, qword [rsp + 0xe8]
jne 0x10004d8e8
mov rax, qword [rsp + 0xa8]
mov rcx, qword [r12 + 0x48]
xor r8d, r8d
mov edx, dword [rax]
call fcn.100044b48
lea edx, [rsi - 1]
sar edx, 7
inc edx
movsxd r8, edx
cmp r8, r14
jge 0x10004d83f
sub r14, r8
lea rdi, [rbp + r8*2]
movzx eax, ax
mov rcx, r14
rep stosw word [rdi], ax
cmp esi, dword [r13 + 0x88]
movsxd rax, esi
jge 0x10004d877
lea rax, [rbp + rax*2 + 0x1e0]
mov ecx, 0xffff
cmp word [rax], cx
je 0x10004d868
mov word [rax], cx
mov byte [rsp + 0xa0], 1
inc esi
add rax, 2
cmp esi, dword [r13 + 0x88]
jl 0x10004d858
cmp byte [rsp + 0xa0], r15b
je 0x10004d8bf
mov rdx, qword [rsp + 0xf0]
mov rcx, rbx
mov dword [rsp + 0x44], 1
call fcn.10004a32c
mov rax, qword [rbx]
mov r9d, 3
xor r8d, r8d
mov edx, 0x1396
mov rcx, rbx
call qword [rax + 0x18]
lea rdx, [0x1000013b4]
mov rcx, rbx
call fcn.1000157e0
cmp dword [rsp + 0x44], r15d
je 0x10004da07
mov rcx, qword [rsp + 0xe0]
cmp dword [rcx + 0x18], 3
je 0x10004da07
mov dword [rcx + 0x18], 1
jmp 0x10004da07
mov r10, qword [rsp + 0xa8]
mov rdi, qword [r12 + 0x48]
mov r11, qword [rsp + 0xd0]
mov r9d, dword [r10]
mov ebx, 0xfffffff
mov al, byte [rdi + 0x50]
cmp al, 0xc
jne 0x10004d940
mov r8, qword [rdi + 0x30]
lea ecx, [r9 + r9*2]
mov eax, ecx
shr eax, 1
inc eax
movzx edx, byte [rax + r8]
mov eax, ecx
shr rax, 1
test cl, 1
movzx ecx, byte [rax + r8]
je 0x10004d936
shl edx, 4
shr ecx, 4
jmp 0x10004d93c
and edx, 0xf
shl edx, 8
or edx, ecx
jmp 0x10004d956
cmp al, 0x10
mov rax, qword [rdi + 0x30]
mov ecx, r9d
jne 0x10004d951
movzx edx, word [rax + rcx*2]
jmp 0x10004d956
mov edx, dword [rax + rcx*4]
and edx, ebx
mov cl, byte [r11 + 0x14]
mov r8d, r9d
shr r8, cl
cmp edx, dword [rdi + 0x3c]
mov rdi, qword [r11 + 0x20]
mov edx, 1
jae 0x10004d9ed
mov eax, dword [r11 + 0x18]
mov r10d, r9d
and eax, r9d
mov cl, al
shl edx, cl
not edx
and dword [rdi + r8*4], edx
mov rdi, qword [r12 + 0x48]
mov al, byte [rdi + 0x50]
cmp al, 0xc
jne 0x10004d9cf
mov rdx, qword [rdi + 0x30]
lea ecx, [r9 + r9*2]
mov eax, ecx
shr eax, 1
inc eax
movzx r9d, byte [rax + rdx]
mov eax, ecx
test cl, 1
je 0x10004d9b8
shr rax, 1
shl r9d, 4
movzx ecx, byte [rax + rdx]
shr ecx, 4
jmp 0x10004d9c7
and r9d, 0xf
shl r9d, 8
shr rax, 1
movzx ecx, byte [rax + rdx]
or r9d, ecx
jmp 0x10004d905
cmp al, 0x10
mov rax, qword [rdi + 0x30]
jne 0x10004d9e1
movzx r9d, word [rax + r10*2]
jmp 0x10004d905
mov r9d, dword [rax + r10*4]
and r9d, ebx
jmp 0x10004d905
mov ecx, dword [r11 + 0x18]
mov rax, qword [rsp + 0xa8]
and ecx, r9d
shl edx, cl
not edx
and dword [rdi + r8*4], edx
mov dword [rax], r15d
mov al, 1
jmp 0x10004da49
lea rcx, [0x10000c698]
call fcn.100015f80
mov r9d, 3
mov dword [rsp + 0x30], 0x86c
mov qword [rsp + 0x28], rax
lea rax, [0x100001698]
lea r8d, [r9 - 2]
mov edx, 0x43c
mov rcx, rbx
mov qword [rsp + 0x20], rax
call fcn.100015894
xor al, al
add rsp, 0x58
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret