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

Disassembly:
mov rax, rsp
push rbx
push rsi
push r14
push r15
sub rsp, 0xc8
mov r15d, dword [rcx + 0x4c]
mov rbx, rcx
mov r14, qword [rcx + 0xe0]
xor ecx, ecx
mov dword [rsp + 0x3c], r15d
mov rsi, r14
mov dword [rsp + 0x108], ecx
mov dword [rsp + 0x20], ecx
cmp dword [rbx + 0x70], ecx
je 0x2d9e3d4b10
mov r9d, dword [rbx + 0x3c]
mov qword [rax - 0x28], rbp
mov qword [rax - 0x30], rdi
mov qword [rax - 0x38], r12
mov qword [rax - 0x40], r13
mov r13d, dword [rbx]
mov eax, dword [rbx + 0x64]
mov dword [rsp + 0x40], r13d
mov dword [rsp + 0x60], r13d
cmp eax, r9d
jae 0x2d9e3d4352
sub r9d, eax
mov dword [rsp + 0xf8], r9d
jmp 0x2d9e3d435c
mov r9d, ecx
mov dword [rsp + 0xf8], ecx
movsxd rax, dword [rbx + 0xd0]
mov edi, ecx
mov r8d, dword [rbx + 0x18]
mov ebp, ecx
mov dword [rsp + 0x100], r8d
mov r12, rcx
mov dword [rsp + 0x78], r8d
mov qword [rsp + 0x70], rcx
mov qword [rsp + 0x48], rax
test rax, rax
jle 0x2d9e3d44e0
mov eax, r13d
shr eax, 8
mov dword [rsp + 0x24], eax
mov eax, r13d
mov r15d, dword [rsp + 0x24]
shr eax, 0x10
mov dword [rsp + 0x28], eax
mov eax, r13d
mov r13d, dword [rsp + 0x28]
shr eax, 0x18
mov dword [rsp + 0x2c], eax
movzx eax, r9w
shr ax, 8
mov word [rsp + 0xf0], ax
mov eax, r8d
shr eax, 8
mov dword [rsp + 0x30], eax
mov eax, r8d
shr eax, 0x10
mov dword [rsp + 0x34], eax
mov eax, r8d
shr eax, 0x18
mov dword [rsp + 0x38], eax
nop dword [rax]
nop dword [rax + rax]
mov r8d, esi
sub r8d, r14d
lea eax, [r8 + 0x18]
cmp eax, dword [rbx + 4]
jle 0x2d9e3d4415
mov rdx, r14
mov rcx, rbx
call fcn.2d9e3d31d0
mov r9d, dword [rsp + 0xf8]
mov rsi, r14
mov rax, qword [rbx + 0xc8]
mov edi, dword [rax + r12*8]
mov ebp, dword [rax + r12*8 + 4]
inc r12
movzx eax, byte [rsp + 0x60]
mov byte [rsi], al
mov eax, dword [rsp + 0x2c]
mov byte [rsi + 3], al
movzx eax, word [rsp + 0xf0]
mov byte [rsi + 1], r15b
mov byte [rsi + 2], r13b
mov word [rsi + 4], 0x52
mov byte [rsi + 7], al
movzx eax, bpl
mov byte [rsi + 6], r9b
mov byte [rsi + 8], al
mov eax, ebp
shr eax, 8
mov byte [rsi + 9], al
mov eax, ebp
shr eax, 0x10
mov byte [rsi + 0xa], al
mov eax, ebp
shr eax, 0x18
mov byte [rsi + 0xb], al
movzx eax, dil
mov byte [rsi + 0xc], al
mov eax, edi
shr eax, 8
mov byte [rsi + 0xd], al
mov eax, edi
shr eax, 0x10
mov byte [rsi + 0xe], al
mov eax, edi
shr eax, 0x18
mov byte [rsi + 0xf], al
movzx eax, byte [rsp + 0x78]
mov byte [rsi + 0x10], al
mov eax, dword [rsp + 0x30]
mov byte [rsi + 0x11], al
mov eax, dword [rsp + 0x34]
mov byte [rsi + 0x12], al
mov eax, dword [rsp + 0x38]
mov byte [rsi + 0x13], al
mov dword [rsi + 0x14], 0
add rsi, 0x18
mov dword [rsp + 0x74], edi
mov dword [rsp + 0x70], ebp
cmp r12, qword [rsp + 0x48]
jl 0x2d9e3d43f0
mov r15d, dword [rsp + 0x3c]
xor ecx, ecx
mov r13d, dword [rsp + 0x40]
mov r8d, dword [rsp + 0x100]
cmp dword [rbx + 0x40], 0
mov dword [rbx + 0xd0], ecx
jne 0x2d9e3d4542
mov ecx, dword [rbx + 0x78]
test ecx, ecx
jne 0x2d9e3d4507
mov eax, dword [rbx + 0x4c]
add eax, 0x1b58
mov dword [rbx + 0x78], 0x1b58
mov dword [rbx + 0x74], eax
jmp 0x2d9e3d454a
mov r10d, dword [rbx + 0x4c]
cmp r10d, dword [rbx + 0x74]
js 0x2d9e3d454a
cmp ecx, 0x1b58
jae 0x2d9e3d4520
mov dword [rbx + 0x78], 0x1b58
mov edx, dword [rbx + 0x78]
mov eax, 0x1d4c0
shr edx, 1
add edx, dword [rbx + 0x78]
cmp edx, eax
cmova edx, eax
or dword [rbx + 0x48], 1
mov dword [rbx + 0x78], edx
lea eax, [r10 + rdx]
mov dword [rbx + 0x74], eax
jmp 0x2d9e3d454a
mov qword [rbx + 0x74], 0
test byte [rbx + 0x48], 1
je 0x2d9e3d462b
mov ecx, esi
sub ecx, r14d
lea eax, [rcx + 0x18]
cmp eax, dword [rbx + 4]
jle 0x2d9e3d4582
mov r8d, ecx
mov rdx, r14
mov rcx, rbx
call fcn.2d9e3d31d0
mov r8d, dword [rsp + 0x100]
mov rsi, r14
mov r9d, dword [rsp + 0xf8]
movzx eax, byte [rsp + 0x60]
mov byte [rsi], al
mov eax, r13d
movzx r12d, byte [rsp + 0x70]
shr eax, 8
mov byte [rsi + 1], al
mov eax, r13d
shr eax, 0x10
mov byte [rsi + 2], al
mov eax, r13d
shr eax, 0x18
mov byte [rsi + 3], al
movzx eax, r9w
shr ax, 8
mov word [rsi + 4], 0x53
mov byte [rsi + 7], al
mov eax, ebp
shr eax, 8
mov byte [rsi + 6], r9b
mov byte [rsi + 9], al
mov eax, ebp
shr eax, 0x10
mov byte [rsi + 0xa], al
mov eax, ebp
shr eax, 0x18
mov byte [rsi + 0xb], al
movzx eax, byte [rsp + 0x74]
mov byte [rsi + 8], r12b
mov byte [rsi + 0xc], al
mov eax, edi
shr eax, 8
mov byte [rsi + 0xd], al
mov eax, edi
shr eax, 0x10
mov byte [rsi + 0xe], al
mov eax, edi
shr eax, 0x18
mov byte [rsi + 0xf], al
movzx eax, byte [rsp + 0x78]
mov byte [rsi + 0x10], al
mov eax, r8d
shr eax, 8
mov byte [rsi + 0x11], al
mov eax, r8d
shr eax, 0x10
mov byte [rsi + 0x12], al
mov eax, r8d
shr eax, 0x18
mov byte [rsi + 0x13], al
mov dword [rsi + 0x14], 0
add rsi, 0x18
jmp 0x2d9e3d4631
movzx r12d, byte [rsp + 0x70]
test byte [rbx + 0x48], 2
je 0x2d9e3d4706
mov ecx, esi
sub ecx, r14d
lea eax, [rcx + 0x18]
cmp eax, dword [rbx + 4]
jle 0x2d9e3d4669
mov r8d, ecx
mov rdx, r14
mov rcx, rbx
call fcn.2d9e3d31d0
mov r8d, dword [rsp + 0x100]
mov rsi, r14
mov r9d, dword [rsp + 0xf8]
movzx eax, byte [rsp + 0x60]
mov byte [rsi], al
mov eax, r13d
shr eax, 8
mov byte [rsi + 1], al
mov eax, r13d
shr eax, 0x10
mov byte [rsi + 2], al
movzx eax, r9w
shr ax, 8
shr r13d, 0x18
mov byte [rsi + 3], r13b
mov word [rsi + 4], 0x54
mov byte [rsi + 7], al
mov eax, ebp
shr eax, 8
mov byte [rsi + 6], r9b
mov byte [rsi + 9], al
mov eax, ebp
shr eax, 0x10
mov byte [rsi + 0xa], al
movzx eax, byte [rsp + 0x74]
mov byte [rsi + 8], r12b
shr ebp, 0x18
mov byte [rsi + 0xb], bpl
mov byte [rsi + 0xc], al
mov eax, edi
shr eax, 8
mov byte [rsi + 0xd], al
mov eax, edi
shr eax, 0x10
mov byte [rsi + 0xe], al
movzx eax, byte [rsp + 0x78]
shr edi, 0x18
mov byte [rsi + 0xf], dil
mov byte [rsi + 0x10], al
mov eax, r8d
shr eax, 8
mov byte [rsi + 0x11], al
mov eax, r8d
shr eax, 0x10
shr r8d, 0x18
mov byte [rsi + 0x12], al
mov byte [rsi + 0x13], r8b
mov dword [rsi + 0x14], 0
add rsi, 0x18
mov r12d, dword [rbx + 0x40]
xor r10d, r10d
cmp dword [rbx + 0x38], r12d
mov dword [rbx + 0x48], r10d
cmovbe r12d, dword [rbx + 0x38]
mov dword [rsp + 0x100], r12d
cmp dword [rbx + 0xf0], r10d
jne 0x2d9e3d473c
cmp dword [rbx + 0x44], r12d
cmovbe r12d, dword [rbx + 0x44]
mov dword [rsp + 0x100], r12d
mov eax, dword [rbx + 0x14]
sub eax, dword [rbx + 0x10]
cmp eax, r12d
jns 0x2d9e3d47e6
lea r8, [rbx + 0x88]
mov rdx, qword [r8]
cmp r8, rdx
je 0x2d9e3d47e6
mov rcx, qword [rdx]
mov rax, qword [rdx + 8]
mov qword [rcx + 8], rax
mov rax, qword [rdx]
mov rcx, qword [rdx + 8]
mov qword [rcx], rax
mov qword [rdx], r10
mov qword [rdx + 8], r10
mov rax, qword [rbx + 0xb0]
mov qword [rdx + 8], rax
lea rax, [rbx + 0xa8]
mov qword [rdx], rax
mov rax, qword [rbx + 0xb0]
mov qword [rax], rdx
dec dword [rbx + 0x68]
inc dword [rbx + 0x60]
mov eax, dword [rbx]
mov qword [rbx + 0xb0], rdx
mov dword [rdx + 0x10], eax
mov dword [rdx + 0x14], 0x51
mov dword [rdx + 0x1c], r9d
mov dword [rdx + 0x20], r15d
mov eax, dword [rbx + 0x14]
mov dword [rdx + 0x24], eax
inc dword [rbx + 0x14]
mov eax, dword [rbx + 0x18]
mov dword [rdx + 0x28], eax
mov dword [rdx + 0x30], r15d
mov eax, dword [rbx + 0x30]
mov dword [rdx + 0x34], eax
mov qword [rdx + 0x38], r10
mov eax, dword [rbx + 0x14]
sub eax, dword [rbx + 0x10]
cmp eax, r12d
js 0x2d9e3d4752
mov eax, dword [rbx + 0xe8]
or ebp, 0xffffffff
test eax, eax
cmovg ebp, eax
mov dword [rsp + 0xf0], ebp
cmp dword [rbx + 0x6c], r10d
jne 0x2d9e3d480b
mov r13d, dword [rbx + 0x30]
sar r13d, 3
jmp 0x2d9e3d480e
mov r13d, r10d
lea rax, [rbx + 0xa8]
mov rdi, qword [rax]
cmp rdi, rax
je 0x2d9e3d4a3e
mov r12d, r10d
mov ecx, dword [rdi + 0x3c]
test ecx, ecx
jne 0x2d9e3d4844
mov dword [rdi + 0x3c], 1
mov eax, dword [rbx + 0x30]
mov dword [rdi + 0x34], eax
lea ecx, [rax + r13]
add ecx, r15d
jmp 0x2d9e3d48ca
cmp r15d, dword [rdi + 0x30]
js 0x2d9e3d489c
lea eax, [rcx + 1]
mov dword [rdi + 0x3c], eax
inc dword [rbx + 0x58]
mov eax, dword [rbx + 0x6c]
test eax, eax
jne 0x2d9e3d4877
mov eax, dword [rdi + 0x34]
mov ecx, dword [rbx + 0x30]
cmp eax, ecx
mov dword [rsp + 0x20], 1
cmovae ecx, eax
add ecx, eax
mov dword [rdi + 0x34], ecx
add ecx, r15d
jmp 0x2d9e3d48ca
cmp eax, 2
jae 0x2d9e3d4881
mov eax, dword [rdi + 0x34]
jmp 0x2d9e3d4884
mov eax, dword [rbx + 0x30]
cdq
mov dword [rsp + 0x20], 1
sub eax, edx
sar eax, 1
add dword [rdi + 0x34], eax
mov ecx, dword [rdi + 0x34]
add ecx, r15d
jmp 0x2d9e3d48ca
cmp dword [rdi + 0x38], ebp
jb 0x2d9e3d4a1b
mov eax, dword [rbx + 0xec]
cmp ecx, eax
jle 0x2d9e3d48b7
test eax, eax
jg 0x2d9e3d4a1b
lea eax, [rcx + 1]
mov dword [rdi + 0x38], r10d
mov ecx, dword [rdi + 0x34]
add ecx, r15d
mov dword [rdi + 0x3c], eax
inc r12d
mov dword [rdi + 0x30], ecx
mov ebp, esi
mov ecx, dword [rdi + 0x2c]
sub ebp, r14d
add ecx, 0x18
mov dword [rdi + 0x20], r15d
mov dword [rdi + 0x1c], r9d
add ecx, ebp
mov eax, dword [rbx + 0x18]
mov dword [rdi + 0x28], eax
cmp ecx, dword [rbx + 4]
jle 0x2d9e3d4933
test byte [rbx + 0xf8], 1
je 0x2d9e3d4917
cmp qword [rbx + 0x108], 0
je 0x2d9e3d4917
mov r9d, ebp
lea r8, [0x2d9e409f68]
mov edx, 1
mov rcx, rbx
call fcn.2d9e3d3100
test ebp, ebp
je 0x2d9e3d4930
mov r9, qword [rbx + 0xd8]
mov r8, rbx
mov edx, ebp
mov rcx, r14
call qword [rbx + 0x100]
mov rsi, r14
mov ecx, dword [rdi + 0x10]
mov eax, ecx
mov byte [rsi], cl
shr eax, 8
mov byte [rsi + 1], al
mov eax, ecx
shr eax, 0x10
mov byte [rsi + 2], al
shr ecx, 0x18
mov byte [rsi + 3], cl
movzx eax, byte [rdi + 0x14]
mov byte [rsi + 4], al
movzx eax, byte [rdi + 0x18]
mov byte [rsi + 5], al
movzx eax, word [rdi + 0x1c]
mov byte [rsi + 6], al
shr ax, 8
mov byte [rsi + 7], al
mov ecx, dword [rdi + 0x20]
mov eax, ecx
mov byte [rsi + 8], cl
shr eax, 8
mov byte [rsi + 9], al
mov eax, ecx
shr eax, 0x10
mov byte [rsi + 0xa], al
shr ecx, 0x18
mov byte [rsi + 0xb], cl
mov ecx, dword [rdi + 0x24]
mov eax, ecx
mov byte [rsi + 0xc], cl
shr eax, 8
mov byte [rsi + 0xd], al
mov eax, ecx
shr eax, 0x10
mov byte [rsi + 0xe], al
shr ecx, 0x18
mov byte [rsi + 0xf], cl
mov ecx, dword [rdi + 0x28]
mov eax, ecx
shr eax, 8
mov byte [rsi + 0x11], al
mov eax, ecx
mov byte [rsi + 0x10], cl
shr eax, 0x10
mov byte [rsi + 0x12], al
shr ecx, 0x18
mov byte [rsi + 0x13], cl
mov ecx, dword [rdi + 0x2c]
mov eax, ecx
shr eax, 8
mov byte [rsi + 0x15], al
mov eax, ecx
mov byte [rsi + 0x14], cl
shr eax, 0x10
shr ecx, 0x18
mov byte [rsi + 0x16], al
mov byte [rsi + 0x17], cl
add rsi, 0x18
mov eax, dword [rdi + 0x2c]
test eax, eax
je 0x2d9e3d49fa
mov r8d, eax
lea rdx, [rdi + 0x40]
mov rcx, rsi
call fcn.2d9e3e2bb0
mov eax, dword [rdi + 0x2c]
add rsi, rax
mov eax, dword [rbx + 0x7c]
xor r10d, r10d
mov r9d, dword [rsp + 0xf8]
mov ebp, dword [rsp + 0xf0]
cmp dword [rdi + 0x3c], eax
jb 0x2d9e3d4a1b
mov dword [rbx + 0xc], 0xffffffff
mov rdi, qword [rdi]
lea rax, [rbx + 0xa8]
cmp rdi, rax
jne 0x2d9e3d4824
mov dword [rsp + 0x108], r12d
mov r12d, dword [rsp + 0x100]
mov r13, qword [rsp + 0xa8]
sub esi, r14d
mov rdi, qword [rsp + 0xb8]
test esi, esi
jle 0x2d9e3d4a94
test byte [rbx + 0xf8], 1
je 0x2d9e3d4a7f
cmp qword [rbx + 0x108], 0
je 0x2d9e3d4a7f
mov r9d, esi
lea r8, [0x2d9e409f68]
mov edx, 1
mov rcx, rbx
call fcn.2d9e3d3100
mov r9, qword [rbx + 0xd8]
mov r8, rbx
mov edx, esi
mov rcx, r14
call qword [rbx + 0x100]
cmp dword [rsp + 0x108], 0
mov edx, 2
je 0x2d9e3d4ac5
mov eax, dword [rbx + 0x14]
sub eax, dword [rbx + 0x10]
shr eax, 1
cmp eax, edx
cmovb eax, edx
mov dword [rbx + 0x24], eax
lea ecx, [rax + rbp]
mov eax, dword [rbx + 8]
imul eax, ecx
mov dword [rbx + 0x44], ecx
mov dword [rbx + 0x80], eax
cmp dword [rsp + 0x20], 0
mov rbp, qword [rsp + 0xc0]
je 0x2d9e3d4af2
mov eax, dword [rbx + 8]
shr r12d, 1
cmp r12d, edx
mov dword [rbx + 0x44], 1
mov dword [rbx + 0x80], eax
cmovb r12d, edx
mov dword [rbx + 0x24], r12d
cmp dword [rbx + 0x44], 1
mov r12, qword [rsp + 0xb0]
jae 0x2d9e3d4b10
mov eax, dword [rbx + 8]
mov dword [rbx + 0x80], eax
mov dword [rbx + 0x44], 1
add rsp, 0xc8
pop r15
pop r14
pop rsi
pop rbx
ret