Function at 0x14007e1bc
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 r15, qword [rcx]
mov rsi, rcx
mov rbp, qword [rcx + 8]
mov qword [rsp + 0x90], r15
mov qword [rsp + 0x88], rbp
mov rax, qword [r15]
mov rdi, qword [r15 + 0x10]
mov qword [rsp + 0x98], rax
movzx eax, byte [rcx + 0x42]
mov r12d, eax
sub r12, 1
lea ecx, [rax - 1]
mov dword [rsp + 0x80], ecx
js 0x14007e5a5
imul rax, r12, 0x58
lea rbx, [rsi + 0x3cc]
add rbx, rax
cmp byte [rbx - 7], 0xaa
mov r13, qword [rbx + 0x14]
je 0x14007e3a4
xor r14d, r14d
cmp byte [rsi + 0x47], 2
jne 0x14007e317
movzx eax, byte [rsi + 0x42]
dec eax
cmp ecx, eax
jne 0x14007e317
test dword [r13 + 0x28], 0x200
je 0x14007e317
mov rax, qword [r13 + 0x20]
test byte [rax + 0x64], 0x80
je 0x14007e317
movzx ebp, word [r13 + 0x1e]
test ebp, ebp
je 0x14007e317
mov rax, qword [rax + 0x10]
cmp word [rax + rbp*2], 0x24
jl 0x14007e317
mov eax, dword [r15 + 0x38]
lea r15d, [rax + 1]
test ebp, ebp
je 0x14007e2bd
mov r8d, dword [rbx - 0x2c]
lea eax, [r14 + r15]
mov r9d, r14d
mov dword [rsp + 0x20], eax
mov edx, 0x5a
mov rcx, rdi
call fcn.1400373e4
inc r14d
cmp r14d, ebp
jl 0x14007e28c
mov rcx, qword [rsp + 0x90]
mov eax, dword [rcx + 0x38]
jmp 0x14007e2c5
mov rcx, qword [rsp + 0x90]
inc eax
mov dword [rsp + 0x28], ebp
add eax, ebp
mov dword [rsp + 0x20], r15d
mov dword [rcx + 0x38], eax
mov edx, Ordinal_27
cmp byte [rbx - 7], 4
mov rcx, rdi
mov r8d, dword [rbx - 0x2c]
lea eax, [rdx - 3]
cmove edx, eax
xor r9d, r9d
call fcn.1400377e0
and dword [rsp + 0x20], 0
mov edx, reloc.Cabinet.dll_FCIAddFile
mov r9d, dword [rbx]
mov rcx, rdi
mov r14d, eax
lea r8d, [rdx - 0xa]
call fcn.1400373e4
mov r15, qword [rsp + 0x90]
mov edx, dword [rbx - 0x1c]
mov rcx, rdi
call fcn.1400378d0
movzx ecx, byte [rbx - 6]
movzx edx, byte [rbx - 7]
mov r9d, dword [rbx]
mov r8d, dword [rbx - 4]
mov dword [rsp + 0x20], ecx
mov rcx, rdi
call fcn.1400373e4
movsxd rax, dword [rdi + 0x90]
test eax, eax
jle 0x14007e35c
movzx edx, byte [rbx - 5]
lea rcx, [rax + rax*2]
mov rax, qword [rdi + 0x88]
mov word [rax + rcx*8 - 0x16], dx
cmp dword [rbx - 0x10], 0
je 0x14007e389
mov edx, dword [rbx - 0xc]
mov rcx, rdi
call fcn.1400378d0
mov r9d, dword [rbx]
mov edx, 0x31
and dword [rsp + 0x20], 0
dec r9d
mov r8d, dword [rbx - 0x10]
mov rcx, rdi
call fcn.1400373e4
test r14d, r14d
je 0x14007e3af
mov edx, r14d
mov rcx, rdi
call fcn.140037fd4
mov ecx, dword [rdi + 0x90]
mov dword [rax + 8], ecx
jmp 0x14007e3af
mov edx, dword [rbx - 0x1c]
mov rcx, rdi
call fcn.1400378d0
test dword [r13 + 0x28], 0x800
je 0x14007e47b
cmp dword [rbx + 4], 0
jle 0x14007e47b
mov edx, dword [rbx - 0x24]
mov rcx, rdi
call fcn.1400378d0
mov ebp, dword [rbx + 4]
lea eax, [rbp - 1]
movsxd rcx, eax
mov rax, qword [rbx + 0xc]
lea rdx, [rcx + rcx*4]
lea r14, [rax + rdx*4]
jmp 0x14007e473
mov edx, dword [r14 + 4]
mov rcx, rdi
inc edx
call fcn.140037fd4
mov ecx, dword [rdi + 0x90]
mov dword [rax + 8], ecx
mov al, byte [r14 + 0x10]
cmp al, 0xaa
je 0x14007e456
mov ecx, dword [r14 + 0xc]
test ecx, ecx
je 0x14007e43f
mov r9d, dword [rdi + 0x90]
mov edx, reloc.WLDAP32.dll_Ordinal_26
mov eax, dword [r14 + 8]
add r9d, 2
mov r8d, dword [rbx - 0x2c]
mov dword [rsp + 0x28], ecx
mov rcx, rdi
mov dword [rsp + 0x20], eax
call fcn.1400377e0
mov al, byte [r14 + 0x10]
and dword [rsp + 0x20], 0
mov rcx, rdi
mov r9d, dword [r14 + 4]
mov r8d, dword [r14]
movzx edx, al
call fcn.1400373e4
mov edx, dword [r14 + 4]
mov rcx, rdi
dec edx
call fcn.140037fd4
mov ecx, dword [rdi + 0x90]
dec ebp
sub r14, 0x14
mov dword [rax + 8], ecx
test ebp, ebp
jg 0x14007e3ec
mov edx, dword [rbx - 0x28]
mov rcx, rdi
call fcn.1400378d0
mov r9d, dword [rbx - 0x20]
test r9d, r9d
je 0x14007e4ce
and dword [rsp + 0x20], 0
xor r8d, r8d
mov rcx, rdi
lea edx, [r8 + 0xb]
call fcn.1400373e4
mov edx, dword [rbx - 0x20]
mov rcx, rdi
call fcn.140037fd4
mov ecx, dword [rdi + 0x90]
mov dword [rax + 8], ecx
mov rcx, rdi
mov edx, dword [rbx - 0x20]
sub edx, 2
call fcn.140037fd4
mov ecx, dword [rdi + 0x90]
mov dword [rax + 8], ecx
mov r8d, dword [rbx - 0x34]
test r8d, r8d
je 0x14007e57f
mov ebp, dword [r13 + 0x28]
xor r9d, r9d
and dword [rsp + 0x20], 0
mov rcx, rdi
lea edx, [r9 + 0x2f]
call fcn.1400373e4
mov r14d, eax
test bpl, 0x40
jne 0x14007e515
and dword [rsp + 0x20], 0
xor r9d, r9d
mov r8d, dword [rbx - 0x30]
mov edx, Ordinal_133
mov rcx, rdi
call fcn.1400373e4
bt ebp, 9
jb 0x14007e528
bt ebp, 0xd
jae 0x14007e541
cmp qword [rbx + 4], 0
je 0x14007e541
and dword [rsp + 0x20], 0
xor r9d, r9d
mov r8d, dword [rbx - 0x2c]
mov edx, Ordinal_133
mov rcx, rdi
call fcn.1400373e4
mov al, byte [rbx - 7]
cmp al, 0x42
jne 0x14007e54e
mov r8d, dword [rbx - 4]
jmp 0x14007e551
xor r8d, r8d
mov r9d, dword [rbx - 0x18]
sub al, 0x42
neg al
mov rcx, rdi
sbb edx, edx
and dword [rsp + 0x20], 0
add edx, 0xc
call fcn.1400373e4
mov edx, r14d
mov rcx, rdi
call fcn.140037fd4
mov ecx, dword [rdi + 0x90]
mov dword [rax + 8], ecx
mov ecx, dword [rsp + 0x80]
sub rbx, 0x58
dec ecx
sub r12, 1
mov dword [rsp + 0x80], ecx
jns 0x14007e21f
mov rbp, qword [rsp + 0x88]
mov edx, dword [rsi + 0x38]
mov rcx, rdi
call fcn.1400378d0
mov r12, qword [rsp + 0x98]
xor r14d, r14d
cmp byte [rsi + 0x42], r14b
jbe 0x14007e70a
lea rbx, [rsi + 0x3e0]
movzx eax, byte [rbx - 0x1c]
imul rcx, rax, 0x70
mov rax, qword [rbx]
test byte [rcx + rbp + 0x48], 0x10
mov r13, qword [rcx + rbp + 0x28]
je 0x14007e601
mov r9d, dword [rcx + rbp + 0x40]
mov rcx, r15
and dword [rsp + 0x20], 0
mov r8d, dword [rbx - 0x44]
mov edx, dword [rbx - 0x28]
call fcn.14007957c
jmp 0x14007e6ee
test dword [rax + 0x28], 0x240
je 0x14007e610
mov rbp, qword [rax + 0x20]
jmp 0x14007e621
test dword [rax + 0x28], 0x2000
je 0x14007e6ee
mov rbp, qword [rbx - 0x10]
test rbp, rbp
je 0x14007e6e6
cmp byte [rsi + 0x45], 0
je 0x14007e63e
mov rax, qword [rbp + 0x18]
test byte [rax + 0x40], 0x20
je 0x14007e6e6
cmp byte [r12 + 0x61], 0
jne 0x14007e6e6
mov edx, dword [rbx - 0x28]
mov rcx, rdi
mov r9d, dword [rdi + 0x90]
call fcn.140037fd4
cmp dword [rbx - 0x28], r9d
jge 0x14007e6e6
sub r9d, dword [rbx - 0x28]
lea r11, [rax + 4]
mov r15d, r9d
mov eax, dword [rbx - 0x44]
cmp dword [r11], eax
jne 0x14007e6dc
mov al, byte [r11 - 4]
cmp al, 0x5a
jne 0x14007e6c4
test byte [r13 + 0x40], 0x20
movsxd rcx, dword [r11 + 4]
je 0x14007e6ac
mov rdx, qword [r13 + 0x10]
jmp 0x14007e69f
mov eax, dword [rdx + 0x64]
and al, 3
cmp al, 2
je 0x14007e6a4
mov rdx, qword [rdx + 0x28]
test rdx, rdx
jne 0x14007e692
mov rax, qword [rdx + 8]
movsx ecx, word [rax + rcx*2]
movzx edx, cx
mov rcx, rbp
call fcn.140053b70
movsx ecx, ax
test ecx, ecx
js 0x14007e6dc
mov dword [r11 + 4], ecx
jmp 0x14007e6d6
cmp al, 0x80
jne 0x14007e6d2
mov eax, dword [rbx - 0x40]
mov byte [r11 - 4], 0x87
jmp 0x14007e6d9
cmp al, 0x15
jne 0x14007e6dc
mov eax, dword [rbx - 0x40]
mov dword [r11], eax
add r11, 0x18
sub r15, 1
jne 0x14007e671
mov rbp, qword [rsp + 0x88]
movzx eax, byte [rsi + 0x42]
inc r14d
mov r15, qword [rsp + 0x90]
add rbx, 0x58
cmp r14d, eax
jl 0x14007e5cc
mov rcx, qword [rsp + 0x90]
mov rdx, rsi
mov eax, dword [rsi + 0x3c]
mov dword [rcx + 0xac], eax
mov rcx, r12
add rsp, 0x38
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
jmp fcn.14007a448