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

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x38
mov rax, qword [rcx]
mov rbx, rcx
mov ecx, dword [rdx + 0x34]
mov qword [rsp + 0x98], rax
movsx eax, word [rdx + 0x100]
mov r12, rdx
mov dword [rsp + 0x80], eax
mov eax, dword [rdx + 0x80]
mov dword [rsp + 0x88], ecx
mov dword [rsp + 0x90], eax
mov eax, dword [rdx + 0x38]
mov edi, 1
lea esi, [rcx + rax]
test ecx, ecx
jne 0x1400332f0
test esi, esi
jle 0x1400332f0
add esi, edi
mov eax, dword [rbx + 0x90]
lea ecx, [rax + rax*2]
mov eax, dword [rdx + 0x3c]
lea rdx, [rsp + 0x90]
lea ecx, [rcx*8 + 7]
and ecx, 0xfffffff8
sub eax, ecx
movsxd r15, ecx
mov rcx, rbx
add r15, qword [rbx + 0x88]
movsxd rbp, eax
and rbp, 0xfffffffffffffff8
call fcn.1400324b8
xor r10d, r10d
cmp byte [r12 + 0x20], r10b
je 0x14003333d
mov al, dil
cmp byte [r12 + 0x21], r10b
jne 0x140033340
mov al, r10b
btr dword [rbx + 0xc8], 7
movzx eax, al
and eax, edi
shl eax, 7
or dword [rbx + 0xc8], eax
mov eax, dword [rbx + 0xc8]
cmp byte [r12 + 0x103], r10b
je 0x140033370
mov ecx, 0xa
cmp esi, ecx
cmovl esi, ecx
and eax, 0xfffffffc
movsxd r13, esi
mov rdi, r10
mov dword [rbx + 0xc8], eax
mov rax, r10
imul r13, r13, 0x38
add r13, 7
and r13, 0xfffffffffffffff8
cmp r13, rbp
jg 0x14003339c
sub rbp, r13
lea rax, [r15 + rbp]
jmp 0x14003339f
mov rdi, r13
movsxd rdx, dword [rsp + 0x80]
mov qword [rbx + 0x68], rax
mov rax, r10
mov r14, rdx
imul r14, r14, 0x38
add r14, 7
and r14, 0xfffffffffffffff8
cmp r14, rbp
jg 0x1400333cb
sub rbp, r14
lea rax, [r15 + rbp]
jmp 0x1400333ce
add rdi, r14
mov qword [rbx + 0x80], rax
movsxd rax, dword [rsp + 0x90]
mov rcx, r10
lea rax, [rax*8 + 7]
and rax, 0xfffffffffffffff8
cmp rax, rbp
mov qword [rsp + 0x20], rax
jg 0x1400333ff
sub rbp, rax
lea rcx, [r15 + rbp]
jmp 0x140033402
add rdi, rax
movsxd r8, dword [rsp + 0x88]
mov qword [rbx + 0x70], rcx
mov rcx, r10
mov r9, r8
shl r9, 3
mov qword [rsp + 0x90], r9
lea rax, [r9 + 7]
and rax, 0xfffffffffffffff8
cmp rax, rbp
mov qword [rsp + 0x28], rax
jg 0x14003343b
sub rbp, rax
lea rcx, [r15 + rbp]
jmp 0x14003343e
add rdi, rax
mov rbp, qword [rsp + 0x98]
mov qword [rbx + 0x78], rcx
cmp rdi, r10
je 0x1400334fc
mov rdx, rdi
mov rcx, rbp
call fcn.140016908
xor r10d, r10d
mov qword [rbx + 0xf8], rax
mov r11, rax
cmp byte [rbp + 0x61], r10b
jne 0x1400334e5
mov rcx, qword [rbx + 0x68]
cmp rcx, r10
jne 0x140033486
cmp r13, rdi
jg 0x140033486
sub rdi, r13
lea rcx, [rdi + rax]
mov rax, qword [rbx + 0x80]
mov qword [rbx + 0x68], rcx
cmp rax, r10
jne 0x1400334a2
cmp r14, rdi
jg 0x1400334a2
sub rdi, r14
lea rax, [rdi + r11]
mov qword [rbx + 0x80], rax
mov rax, qword [rbx + 0x70]
cmp rax, r10
jne 0x1400334c3
mov rcx, qword [rsp + 0x20]
cmp rcx, rdi
jg 0x1400334c3
sub rdi, rcx
lea rax, [rdi + r11]
mov qword [rbx + 0x70], rax
mov rax, qword [rbx + 0x78]
cmp rax, r10
jne 0x1400334e1
mov rcx, qword [rsp + 0x28]
cmp rcx, rdi
jg 0x1400334e1
sub rdi, rcx
lea rax, [rdi + r11]
mov qword [rbx + 0x78], rax
mov r9, qword [rsp + 0x90]
mov r8d, dword [rsp + 0x88]
mov edx, dword [rsp + 0x80]
mov rax, qword [r12 + 0x118]
mov edi, 1
mov qword [rbx + 0xb0], rax
movzx eax, byte [r12 + 0x103]
mov qword [r12 + 0x118], r10
shl eax, 2
xor eax, dword [rbx + 0xc8]
and eax, 0xc
xor dword [rbx + 0xc8], eax
cmp byte [rbp + 0x61], r10b
je 0x140033548
mov word [rbx + 0x20], r10w
mov dword [rbx + 0x2c], r10d
mov dword [rbx + 0x28], r10d
jmp 0x1400335b2
cmp edx, r10d
mov rax, qword [rbx + 0x80]
mov dword [rbx + 0x2c], r8d
mov word [rbx + 0x20], dx
jle 0x140033576
add rax, 8
sub edx, edi
mov qword [rax + 0x20], rbp
mov word [rax], di
mov dword [rax + 0x18], r10d
add rax, 0x38
cmp edx, r10d
jg 0x140033560
cmp esi, r10d
mov rax, qword [rbx + 0x68]
mov dword [rbx + 0x28], esi
jle 0x1400335a1
add rax, 8
mov ecx, 0x80
sub esi, edi
mov qword [rax + 0x20], rbp
mov word [rax], cx
mov dword [rax + 0x18], r10d
add rax, 0x38
cmp esi, r10d
jg 0x140033586
mov rcx, qword [rbx + 0x78]
mov r8, r9
xor edx, edx
call sub.msvcrt.dll_memset
xor r10d, r10d
or dword [rbx + 0x34], 0xffffffff
mov dword [rbx + 0x24], 0x2df20da3
mov dword [rbx + 0x38], r10d
mov byte [rbx + 0xc2], 2
mov dword [rbx + 0x3c], r10d
mov dword [rbx + 0x30], edi
mov byte [rbx + 0xc3], 0xff
mov dword [rbx + 0x40], r10d
mov qword [rbx + 0x50], r10
add rsp, 0x38
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret