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

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rbx
push rbp
push rsi
push rdi
push r13
push r15
sub rsp, 0x38
mov r15, qword [rcx]
xor ebp, ebp
mov r13d, dword [rcx + 0x40]
mov eax, ebp
dec r13d
mov dword [rsp + 0x80], eax
mov edi, edx
mov esi, ebp
mov rdx, rcx
cmp dword [r15 + 0x28], eax
jle 0x140041c82
mov ecx, ebp
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x88], rcx
mov qword [rsp + 0x28], r14
nop
mov rbx, qword [r15 + 0x20]
mov rbx, qword [rcx + rbx + 8]
test rbx, rbx
je 0x140041c54
cmp edi, 2
jne 0x140041bc4
cmp byte [rbx + 0x10], 2
mov edi, ebp
jne 0x140041bc0
mov r14, qword [rbx + 8]
cmp byte [rbx + 0x11], dil
je 0x140041b52
inc dword [rbx + 0x14]
cmp byte [rbx + 0x12], dil
jne 0x140041b52
mov rcx, rbx
call fcn.14002d2c0
mov rcx, qword [r14 + 0x10]
test rcx, rcx
je 0x140041b6b
xor r8d, r8d
xor edx, edx
call fcn.14002d6b0
mov edi, eax
test eax, eax
jne 0x140041bac
mov rcx, qword [r14]
mov r8d, r13d
mov edx, 2
call fcn.140029360
mov edi, eax
test eax, eax
jne 0x140041bac
test r13d, r13d
jns 0x140041b91
test byte [r14 + 0x26], 0x10
je 0x140041b91
mov dword [r14 + 0x3c], ebp
mov rcx, r14
call fcn.140030880
mov edi, eax
mov rax, qword [r14 + 0x18]
mov rcx, qword [rax + 0x50]
mov eax, dword [rcx + 0x1c]
bswap eax
mov dword [r14 + 0x3c], eax
cmp byte [rbx + 0x11], bpl
je 0x140041bc0
sub dword [rbx + 0x14], 1
jne 0x140041bc0
mov rcx, rbx
call fcn.14002d270
test edi, edi
jne 0x140041c3c
cmp byte [rbx + 0x10], 2
mov edi, ebp
jne 0x140041c3c
mov r14, qword [rbx + 8]
cmp byte [rbx + 0x11], dil
je 0x140041be7
inc dword [rbx + 0x14]
cmp byte [rbx + 0x12], dil
jne 0x140041be7
mov rcx, rbx
call fcn.14002d2c0
mov rcx, qword [r14]
mov r8d, r13d
mov edx, 1
call fcn.140029360
mov edi, eax
test eax, eax
jne 0x140041c28
test r13d, r13d
jns 0x140041c0d
test byte [r14 + 0x26], 0x10
je 0x140041c0d
mov dword [r14 + 0x3c], ebp
mov rcx, r14
call fcn.140030880
mov edi, eax
mov rax, qword [r14 + 0x18]
mov rcx, qword [rax + 0x50]
mov eax, dword [rcx + 0x1c]
bswap eax
mov dword [r14 + 0x3c], eax
cmp byte [rbx + 0x11], bpl
je 0x140041c3c
sub dword [rbx + 0x14], 1
jne 0x140041c3c
mov rcx, rbx
call fcn.14002d270
mov eax, dword [rsp + 0x80]
test esi, esi
mov rcx, qword [rsp + 0x88]
cmove esi, edi
mov edi, dword [rsp + 0x78]
inc eax
add rcx, 0x20
mov dword [rsp + 0x80], eax
mov qword [rsp + 0x88], rcx
cmp eax, dword [r15 + 0x28]
jl 0x140041b10
mov r14, qword [rsp + 0x28]
mov r12, qword [rsp + 0x30]
mov rdx, qword [rsp + 0x70]
dec dword [r15 + 0x290]
mov dword [rdx + 0x40], ebp
test esi, esi
jne 0x140041d72
cmp edi, 2
jne 0x140041d0a
mov esi, ebp
cmp qword [r15 + 0x1e8], rsi
je 0x140041d06
mov ebx, ebp
mov rdi, rbp
nop dword [rax]
cmp ebx, dword [r15 + 0x1c4]
jge 0x140041cfd
mov rax, qword [r15 + 0x1e8]
mov rdx, qword [rdi + rax]
mov rax, qword [rdx + 8]
mov rcx, qword [rdx + 0x10]
mov r8, qword [rax]
test rcx, rcx
je 0x140041cf3
cmp dword [r8], 2
jl 0x140041cf3
mov rax, qword [r8 + 0xb0]
test rax, rax
je 0x140041cf3
cmp dword [rdx + 0x20], r13d
jle 0x140041cf3
mov edx, r13d
call rax
mov esi, eax
inc ebx
add rdi, 8
test esi, esi
je 0x140041cb0
mov edi, dword [rsp + 0x78]
mov rdx, qword [rsp + 0x70]
test esi, esi
jne 0x140041d77
mov esi, ebp
cmp qword [r15 + 0x1e8], rsi
je 0x140041d6d
mov rbx, rbp
nop dword [rax + rax]
cmp ebp, dword [r15 + 0x1c4]
jge 0x140041d6d
mov rax, qword [r15 + 0x1e8]
mov rdx, qword [rbx + rax]
mov rax, qword [rdx + 8]
mov rcx, qword [rdx + 0x10]
mov r8, qword [rax]
test rcx, rcx
je 0x140041d63
cmp dword [r8], 2
jl 0x140041d63
mov rax, qword [r8 + 0xa8]
test rax, rax
je 0x140041d63
cmp dword [rdx + 0x20], r13d
jle 0x140041d63
mov edx, r13d
call rax
mov esi, eax
inc ebp
add rbx, 8
test esi, esi
je 0x140041d20
mov rdx, qword [rsp + 0x70]
cmp edi, 2
jne 0x140041d8d
mov rcx, qword [rdx + 0x58]
mov qword [r15 + 0x298], rcx
mov rcx, qword [rdx + 0x60]
mov qword [r15 + 0x2a0], rcx
mov eax, esi
add rsp, 0x38
pop r15
pop r13
pop rdi
pop rsi
pop rbp
pop rbx
ret