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

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x38
mov rax, qword [rdx]
movzx ebx, byte [rdx + 0x1c]
mov rdi, qword [rcx + 0x10]
mov r12d, dword [rax]
inc dword [rcx + 0x54]
mov r13d, dword [rcx + 0x54]
mov eax, dword [rdx + 8]
not ebx
mov rsi, rdx
and ebx, 1
mov r15, rcx
mov dword [rsp + 0x88], r13d
lea ebp, [r12 + rbx]
mov dword [rsp + 0x80], eax
add ebp, dword [rsp + 0xa0]
cmp dword [rsp + 0xa8], 0
je 0x1400337ec
mov r14d, r9d
sub r14d, r12d
sub r14d, ebx
jmp 0x1400337f8
mov eax, r13d
lea r14d, [r13 + 1]
add eax, ebp
mov dword [rcx + 0x54], eax
mov rdx, qword [rdx]
mov r9b, 1
mov r8d, r14d
call fcn.140047ef0
test ebx, ebx
je 0x140033827
mov r8d, dword [rsi + 0xc]
lea r9d, [r14 + r12]
mov edx, 0x49
mov rcx, rdi
mov dword [rsp + 0x20], 0
call fcn.140068970
cmp dword [rsp + 0xa8], 0
jne 0x14003384f
mov r9d, dword [rsp + 0xa0]
mov edx, dword [rsp + 0x98]
lea r8d, [r14 + r12]
add r8d, ebx
mov rcx, r15
call fcn.140048ad0
mov eax, dword [rsp + 0x80]
mov edx, 0x31
mov rcx, rdi
sub ebp, eax
lea r8d, [r14 + rax]
mov dword [rsp + 0x20], r13d
mov r9d, ebp
call fcn.140068970
cmp dword [rsp + 0x80], 0
jle 0x140033a6b
mov ecx, dword [r15 + 0x54]
mov ebp, r12d
xor r9d, r9d
lea r13d, [rcx + 1]
add ecx, dword [rsi + 8]
mov dword [rsp + 0x20], 0
mov dword [r15 + 0x54], ecx
sub ebp, dword [rsi + 8]
mov dword [rsp + 0xa8], r13d
add ebp, ebx
mov rcx, rdi
test ebx, ebx
je 0x1400338ba
lea r8d, [r14 + r12]
lea edx, [r9 + 0x2e]
jmp 0x1400338c3
mov r8d, dword [rsi + 0xc]
mov edx, 0x3b
call fcn.140068970
mov r9d, r14d
mov r8d, r13d
mov r12d, eax
mov eax, dword [rsi + 8]
mov edx, 0x2a
mov rcx, rdi
mov dword [rsp + 0x20], eax
call fcn.140068970
mov ecx, dword [rsi + 0x18]
test ecx, ecx
jns 0x1400338f1
mov ecx, dword [rdi + 0x3c]
dec ecx
mov rax, qword [rdi]
cmp byte [rax + 0x50], 0
je 0x140033903
lea r13, [0x140466ed8]
jmp 0x140033912
movsxd rax, ecx
lea rcx, [rax + rax*2]
mov rax, qword [rdi + 8]
lea r13, [rax + rcx*8]
mov rax, qword [r15]
cmp byte [rax + 0x50], 0
jne 0x140033b6c
mov eax, dword [rsp + 0xa0]
xor edx, edx
add eax, ebp
mov rbp, qword [r13 + 0x10]
mov dword [r13 + 8], eax
movzx r8d, word [rbp + 6]
mov rcx, qword [rbp + 0x18]
call sub.MSVCR120.dll_memset
mov r8, qword [rdi + 8]
mov rcx, qword [rdi]
test r8, r8
je 0x140033980
cmp byte [rcx + 0x50], 0
jne 0x140033980
mov eax, dword [rdi + 0x3c]
dec eax
cdqe
lea rdx, [rax + rax*2]
lea rbx, [r8 + rdx*8]
movsx edx, byte [r8 + rdx*8 + 1]
mov r8, qword [rbx + 0x10]
call fcn.140027190
mov qword [rbx + 0x10], rbp
mov byte [rbx + 1], 0xfa
jmp 0x14003398d
mov r8, rbp
mov edx, 0xfffffffa
call fcn.140027190
mov r8d, dword [rsp + 0x80]
mov rdx, qword [rsi]
mov r9d, 1
mov rcx, r15
call fcn.14002b2e0
xor r9d, r9d
mov rcx, rdi
mov qword [r13 + 0x10], rax
mov ebx, dword [rdi + 0x3c]
lea edx, [r9 + 0x2b]
lea r8d, [rbx + 1]
mov dword [rsp + 0x20], r8d
call fcn.140068970
mov rcx, rdi
call fcn.1400704f0
xor ebp, ebp
mov rcx, rdi
mov dword [rsi + 0x14], eax
mov r8d, dword [r15 + 0x54]
lea edx, [rbp + 0x11]
inc r8d
mov dword [rsp + 0x20], ebp
mov dword [r15 + 0x54], r8d
mov r9d, dword [rsi + 0x14]
mov dword [rsi + 0x10], r8d
call fcn.140068970
mov r8d, dword [rsi + 0xc]
lea edx, [rbp + 0x77]
xor r9d, r9d
mov rcx, rdi
mov dword [rsp + 0x20], ebp
call fcn.140068970
mov edx, dword [rdi + 0x3c]
cmp edx, r12d
jbe 0x140033a21
mov eax, r12d
lea rcx, [rax + rax*2]
mov rax, qword [rdi + 8]
mov dword [rax + rcx*8 + 8], edx
mov ecx, dword [rdi + 0x3c]
mov rax, qword [rdi + 0x30]
mov r8d, dword [rsp + 0xa8]
dec ecx
mov edx, r14d
mov dword [rax + 0x64], ecx
mov r9d, dword [rsi + 8]
mov rcx, r15
call fcn.140048ad0
mov edx, dword [rdi + 0x3c]
cmp edx, ebx
jbe 0x140033a57
mov rax, qword [rdi + 8]
lea rcx, [rbx + rbx*2]
mov dword [rax + rcx*8 + 8], edx
mov ecx, dword [rdi + 0x3c]
mov rax, qword [rdi + 0x30]
mov r13d, dword [rsp + 0x88]
dec ecx
mov dword [rax + 0x64], ecx
movzx eax, byte [rsi + 0x1c]
mov r8d, dword [rsi + 0xc]
mov r9d, r13d
and al, 1
mov rcx, rdi
neg al
sbb edx, edx
xor r14d, r14d
add edx, 0x6e
mov dword [rsp + 0x20], r14d
call fcn.140068970
mov rax, qword [rsp + 0x90]
mov ebx, dword [rax + 0xc]
test ebx, ebx
je 0x140033b6c
mov eax, dword [rax + 0x10]
test eax, eax
je 0x140033aac
lea ebx, [rax + 1]
xor r9d, r9d
mov r8d, ebx
mov edx, 0x8b
mov rcx, rdi
mov dword [rsp + 0x20], r14d
call fcn.140068970
or r9d, 0xffffffff
mov r8d, ebx
lea edx, [r9 + 0x26]
mov rcx, rdi
mov dword [rsp + 0x20], r14d
mov ebp, eax
call fcn.140068970
xor r9d, r9d
lea edx, [r9 + 0x10]
xor r8d, r8d
mov rcx, rdi
mov dword [rsp + 0x20], r14d
call fcn.140068970
mov ebx, eax
mov eax, dword [rdi + 0x3c]
cmp eax, ebp
jbe 0x140033b11
mov rcx, qword [rdi + 8]
lea rdx, [rbp*2]
add rdx, rbp
mov dword [rcx + rdx*8 + 8], eax
mov ecx, dword [rdi + 0x3c]
mov rax, qword [rdi + 0x30]
xor r9d, r9d
dec ecx
lea edx, [r9 + 0x69]
mov dword [rsp + 0x20], r14d
mov dword [rax + 0x64], ecx
mov r8d, dword [rsi + 0xc]
mov rcx, rdi
call fcn.140068970
mov r8d, dword [rsi + 0xc]
xor r9d, r9d
lea edx, [r9 + 0x5f]
mov rcx, rdi
mov dword [rsp + 0x20], r14d
call fcn.140068970
mov edx, dword [rdi + 0x3c]
cmp edx, ebx
jbe 0x140033b60
mov rax, qword [rdi + 8]
lea rcx, [rbx + rbx*2]
mov dword [rax + rcx*8 + 8], edx
mov ecx, dword [rdi + 0x3c]
mov rax, qword [rdi + 0x30]
dec ecx
mov dword [rax + 0x64], ecx
add rsp, 0x38
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret