Function at 0x1400021d0
Capabilities:
Enumerate pe sections
Resolve function by parsing pe exports

Disassembly:
mov r11, rsp
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x58
mov r12, rcx
test rcx, rcx
je 0x140002750
mov rax, qword [rcx + 0x10]
xor edi, edi
mov qword [r11 + 0x10], rdi
lea rcx, [0x140005178]
mov edx, dword [rax + 0x50]
mov qword [r11 + 0x18], rdx
call qword [0x140005138]
mov rdx, qword [0x1400050c8]
mov ecx, dword [0x1400050c0]
call fcn.140003200
mov eax, 4
lea r9, [rsp + 0xb0]
mov dword [rsp + 0x28], eax
lea rdx, [rsp + 0xa8]
xor r8d, r8d
mov dword [rsp + 0x20], 0x3000
lea rcx, [rdi - 1]
call fcn.14000322c
test eax, eax
js 0x140002750
mov rax, qword [r12 + 0x10]
mov esi, edi
mov rbx, qword [rsp + 0xa8]
mov r15d, dword [rax + 0x28]
add r15, rbx
mov qword [rsp + 0xa0], r15
cmp di, word [rax + 6]
jae 0x1400022bb
nop dword [rax + rax]
mov rax, qword [r12 + 0x18]
mov edx, dword [rax + rdi + 0x14]
mov ecx, dword [rax + rdi + 0xc]
add rdx, qword [r12]
add rcx, rbx
mov r8d, dword [rax + rdi + 0x10]
call fcn.140001640
mov rax, qword [r12 + 0x10]
lea rdi, [rdi + 0x28]
mov rbx, qword [rsp + 0xa8]
inc esi
movzx ecx, word [rax + 6]
cmp esi, ecx
jl 0x140002280
xor edi, edi
mov r13, qword [r12 + 0x20]
mov rbp, rdi
cmp dword [r13 + 4], 0
jbe 0x14000239b
nop
mov eax, dword [r13]
add rax, rbp
mov r8d, dword [rax + rbx]
lea rdx, [rax + 0x10]
add rdx, rbx
test r8d, r8d
jne 0x1400022f0
cmp dword [rdx], r8d
je 0x140002389
mov ecx, dword [rax + rbx + 0xc]
mov r14, r8
mov r15d, dword [rdx]
add rcx, rbx
call qword [0x140005130]
mov rdi, rax
test rax, rax
je 0x140002750
lea rsi, [r15 + rbx]
sub r14, r15
mov rdx, qword [r14 + rsi]
test rdx, rdx
jne 0x140002327
cmp qword [rsi], rdx
je 0x140002378
test rdx, rdx
jns 0x140002350
movsxd rax, dword [rdi + 0x3c]
cmp dword [rax + rdi], 0x4550
jne 0x140002750
mov eax, dword [rax + rdi + 0x88]
mov eax, dword [rax + rdi + 0x1c]
add rax, rdi
mov eax, dword [rax + rdx*4]
add rax, rdi
jmp 0x140002369
lea rcx, [rdx + 2]
add rcx, rbx
call fcn.1400012b0
mov edx, eax
mov rcx, rdi
call fcn.140001130
test rax, rax
je 0x140002750
mov qword [rsi], rax
add rsi, 8
jmp 0x140002316
mov eax, dword [r13 + 4]
add rbp, 0x14
cmp rbp, rax
jb 0x1400022d0
mov rbx, qword [rsp + 0xa8]
xor edi, edi
mov r15, qword [rsp + 0xa0]
mov rax, qword [r12 + 0x28]
mov r11, rbx
mov r8d, dword [rax]
mov rax, qword [r12 + 0x10]
add r8, rbx
sub r11, qword [rax + 0x30]
cmp dword [r8], 0
je 0x140002487
nop dword [rax]
mov eax, dword [r8 + 4]
lea r10, [r8 + 8]
add rax, r8
cmp r10, rax
je 0x140002472
nop dword [rax]
nop dword [rax + rax]
movzx r9d, word [r10]
mov eax, r9d
movzx edx, r9w
shr eax, 0xc
test eax, eax
je 0x14000245e
sub eax, 1
je 0x140002445
sub eax, 1
je 0x140002431
sub eax, 1
je 0x14000241e
cmp eax, 7
jne 0x140002750
mov ecx, dword [r8]
and r9d, 0xfff
lea rax, [rbx + r9]
add qword [rcx + rax], r11
jmp 0x14000245e
mov ecx, dword [r8]
and edx, 0xfff
lea rax, [rbx + rdx]
add dword [rcx + rax], r11d
jmp 0x14000245e
mov ecx, dword [r8]
and edx, 0xfff
lea rax, [rbx + rdx]
add word [rcx + rax], r11w
jmp 0x14000245e
mov ecx, dword [r8]
and edx, 0xfff
add rdx, rbx
mov rax, r11
add rdx, rcx
shr rax, 0x10
add word [rdx], ax
mov eax, dword [r8 + 4]
add r10, 2
add rax, r8
cmp r10, rax
jne 0x1400023e0
cmp dword [r10], 0
mov r8, r10
jne 0x1400023c0
mov rbx, qword [rsp + 0xa8]
mov rbp, qword [r12 + 0x10]
mov esi, edi
mov r14, qword [r12 + 0x18]
cmp di, word [rbp + 6]
jae 0x1400025d7
mov r9d, 2
lea r10d, [r9 + 0xe]
lea r11d, [r9 + 0x7e]
lea r13d, [r9 + 0x3e]
nop
mov eax, esi
mov dword [rsp + 0xa0], edi
lea rcx, [rax + rax*4]
mov eax, dword [r14 + rcx*8 + 0x10]
mov qword [rsp + 0xb8], rax
lea rdx, [r14 + rcx*8]
mov ecx, dword [r14 + rcx*8 + 0xc]
lea r8, [rcx + rbx]
mov qword [rsp + 0x40], r8
test eax, eax
je 0x1400025c9
test ecx, ecx
je 0x1400025c9
mov ecx, dword [rdx + 0x24]
mov edi, ecx
sar edi, 0x1f
mov eax, ecx
and edi, 8
bt ecx, 0x1e
cmovb edi, r9d
and eax, 0xc0000000
cmp eax, 0xc0000000
mov eax, 4
cmove edi, eax
bt ecx, 0x1d
mov eax, ecx
cmovb edi, r10d
and eax, 0xa0000000
cmp eax, 0xa0000000
cmove edi, r11d
and ecx, 0x60000000
cmp ecx, 0x60000000
jne 0x140002567
mov rax, qword [0x140005150]
test rax, rax
cmove rax, r8
cmp qword [0x140005158], 0
mov qword [0x140005150], rax
jne 0x140002562
mov eax, dword [rdx + 0x10]
mov qword [0x140005158], rax
mov edi, 0x20
mov eax, dword [rdx + 0x24]
mov rdx, qword [0x1400050d8]
and eax, 0xe0000000
mov ecx, dword [0x1400050d0]
cmp eax, 0xe0000000
cmove edi, r13d
call fcn.140003200
lea rax, [rsp + 0xa0]
mov r9d, edi
lea r8, [rsp + 0xb8]
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x40]
mov rcx, 0xffffffffffffffff
call fcn.14000322c
test eax, eax
js 0x140002750
xor edi, edi
lea r9d, [rdi + 2]
lea r11d, [r9 + 0x7e]
lea r10d, [rdi + 0x10]
movzx eax, word [rbp + 6]
inc esi
cmp esi, eax
jb 0x1400024b0
cmp qword [0x140005150], 0
je 0x140002750
cmp qword [0x140005158], 0
je 0x140002750
lea rdx, [0x140003150]
mov ecx, 1
call qword [0x140005110]
mov rbx, rax
test rax, rax
je 0x140002750
call fcn.140002d20
mov rcx, rbx
call qword [0x140005118]
test eax, eax
je 0x140002750
mov r8, qword [r12 + 0x38]
mov eax, dword [r8 + 4]
test eax, eax
je 0x14000265d
mov ecx, eax
movabs rax, 0xaaaaaaaaaaaaaaab
mul rcx
mov ecx, dword [r8]
mov r8, qword [rsp + 0xa8]
shr rdx, 3
add rcx, r8
dec edx
call qword [0x140005120]
lea rdx, [0x140002790]
mov ecx, 1
call qword [0x140005110]
mov rdx, qword [0x1400050e8]
mov ecx, dword [0x1400050e0]
call fcn.140003200
xor edx, edx
xor r8d, r8d
lea rcx, [rdx - 1]
call fcn.14000322c
test eax, eax
js 0x140002750
mov rax, qword [r12 + 0x30]
cmp dword [rax + 4], 0
je 0x1400026e0
mov eax, dword [rax]
mov rcx, qword [rsp + 0xa8]
mov rbx, qword [rax + rcx + 0x18]
mov rax, qword [rbx]
test rax, rax
je 0x1400026e0
nop dword [rax]
xor r8d, r8d
lea edx, [r8 + 1]
call rax
mov rax, qword [rbx + 8]
lea rbx, [rbx + 8]
test rax, rax
je 0x1400026e0
mov rcx, qword [rsp + 0xa8]
jmp 0x1400026c0
mov rcx, qword [r12]
call qword [sym.imp.KERNEL32.dll_LocalFree]
call qword [0x140005108]
mov qword [0x140005168], rax
test rax, rax
je 0x140002750
mov dword [rsp + 0x30], edi
lea r8, [0x140002770]
mov dword [rsp + 0x28], edi
lea rcx, [0x140005160]
xor r9d, r9d
mov dword [rsp + 0x20], 0x1f4
mov rdx, rax
call qword [0x140005100]
test eax, eax
je 0x140002750
test r15, r15
je 0x140002752
cmp dword [r12 + 0x48], 0
je 0x14000274b
mov rcx, qword [rsp + 0xa8]
xor r8d, r8d
lea edx, [r8 + 1]
call r15
jmp 0x140002752
call r15
jmp 0x140002752
xor eax, eax
add rsp, 0x58
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret