Function at 0x1400788e8
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 r13, qword [rcx]
mov r14, rcx
mov rbp, qword [rcx + 8]
mov qword [rsp + 0x88], r13
mov qword [rsp + 0x90], rbp
mov rax, qword [r13]
mov rdi, qword [r13 + 0x10]
mov qword [rsp + 0x98], rax
movzx eax, byte [rcx + 0x42]
mov r12d, eax
sub r12, 1
lea r15d, [rax - 1]
mov dword [rsp + 0x80], r15d
js 0x140078cbb
imul rbx, r12, 0x58
add rbx, 0x3cc
add rbx, rcx
cmp byte [rbx - 7], 0xaa
mov r13, qword [rbx + 0x14]
je 0x140078ac5
xor esi, esi
cmp byte [r14 + 0x47], 2
jne 0x140078a3a
movzx eax, byte [r14 + 0x42]
dec eax
cmp r15d, eax
jne 0x140078a3a
test dword [r13 + 0x28], 0x200
je 0x140078a3a
mov rax, qword [r13 + 0x20]
test byte [rax + 0x64], 0x80
je 0x140078a3a
movzx ebp, word [r13 + 0x1e]
test ebp, ebp
je 0x140078a3a
mov rax, qword [rax + 0x10]
cmp word [rax + rbp*2], 0x24
jl 0x140078a3a
mov r15, qword [rsp + 0x88]
mov r15d, dword [r15 + 0x38]
inc r15d
mov r8d, dword [rbx - 0x2c]
lea eax, [rsi + r15]
mov r9d, esi
mov dword [rsp + 0x20], eax
mov edx, 0x5a
mov rcx, rdi
call fcn.140031b3c
inc esi
cmp esi, ebp
jl 0x1400789c0
mov rcx, qword [rsp + 0x88]
lea eax, [rbp + 1]
mov edx, Ordinal_26
mov dword [rsp + 0x28], ebp
mov dword [rsp + 0x20], r15d
add dword [rcx + 0x38], eax
mov rcx, rdi
cmp byte [rbx - 7], 4
lea eax, [rdx - 3]
mov r8d, dword [rbx - 0x2c]
cmove edx, eax
xor r9d, r9d
call fcn.140031e4c
and dword [rsp + 0x20], 0
mov edx, reloc.Cabinet.dll_FCIAddFile
mov r9d, dword [rbx]
mov rcx, rdi
mov esi, eax
lea r8d, [rdx - 0xa]
call fcn.140031b3c
mov r15d, dword [rsp + 0x80]
mov edx, dword [rbx - 0x1c]
mov rcx, rdi
call fcn.140031f30
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.140031b3c
movsxd rax, dword [rdi + 0x90]
test eax, eax
jle 0x140078a7f
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 0x140078aac
mov edx, dword [rbx - 0xc]
mov rcx, rdi
call fcn.140031f30
mov r9d, dword [rbx]
mov edx, 0x31
and dword [rsp + 0x20], 0
dec r9d
mov r8d, dword [rbx - 0x10]
mov rcx, rdi
call fcn.140031b3c
test esi, esi
je 0x140078ad0
mov edx, esi
mov rcx, rdi
call fcn.140032510
mov ecx, dword [rdi + 0x90]
mov dword [rax + 8], ecx
jmp 0x140078ad0
mov edx, dword [rbx - 0x1c]
mov rcx, rdi
call fcn.140031f30
test dword [r13 + 0x28], 0x800
je 0x140078b90
cmp dword [rbx + 4], 0
jle 0x140078b90
mov edx, dword [rbx - 0x24]
mov rcx, rdi
call fcn.140031f30
mov ebp, dword [rbx + 4]
lea eax, [rbp - 1]
movsxd rcx, eax
mov rax, qword [rbx + 0xc]
lea rdx, [rcx + rcx*4]
lea rsi, [rax + rdx*4]
jmp 0x140078b88
mov edx, dword [rsi + 4]
mov rcx, rdi
inc edx
call fcn.140032510
mov ecx, dword [rdi + 0x90]
mov dword [rax + 8], ecx
cmp byte [rsi + 0x10], 0xaa
je 0x140078b6c
mov eax, dword [rsi + 0xc]
test eax, eax
je 0x140078b54
mov r9d, dword [rdi + 0x90]
mov edx, reloc.WLDAP32.dll_Ordinal_26
mov r8d, dword [rbx - 0x2c]
add r9d, 2
mov dword [rsp + 0x28], eax
mov rcx, rdi
mov eax, dword [rsi + 8]
mov dword [rsp + 0x20], eax
call fcn.140031e4c
movzx edx, byte [rsi + 0x10]
mov rcx, rdi
and dword [rsp + 0x20], 0
mov r9d, dword [rsi + 4]
mov r8d, dword [rsi]
call fcn.140031b3c
mov edx, dword [rsi + 4]
mov rcx, rdi
dec edx
call fcn.140032510
mov ecx, dword [rdi + 0x90]
dec ebp
sub rsi, 0x14
mov dword [rax + 8], ecx
test ebp, ebp
jg 0x140078b0a
mov edx, dword [rbx - 0x28]
mov rcx, rdi
call fcn.140031f30
mov r9d, dword [rbx - 0x20]
test r9d, r9d
je 0x140078be3
and dword [rsp + 0x20], 0
xor r8d, r8d
mov rcx, rdi
lea edx, [r8 + 0xb]
call fcn.140031b3c
mov edx, dword [rbx - 0x20]
mov rcx, rdi
call fcn.140032510
mov ecx, dword [rdi + 0x90]
mov dword [rax + 8], ecx
mov rcx, rdi
mov edx, dword [rbx - 0x20]
sub edx, 2
call fcn.140032510
mov ecx, dword [rdi + 0x90]
mov dword [rax + 8], ecx
mov r8d, dword [rbx - 0x34]
test r8d, r8d
je 0x140078c92
mov esi, dword [r13 + 0x28]
xor r9d, r9d
and dword [rsp + 0x20], 0
mov rcx, rdi
lea edx, [r9 + 0x2f]
call fcn.140031b3c
mov ebp, eax
test sil, 0x40
jne 0x140078c29
and dword [rsp + 0x20], 0
xor r9d, r9d
mov r8d, dword [rbx - 0x30]
mov edx, Ordinal_133
mov rcx, rdi
call fcn.140031b3c
bt esi, 9
jb 0x140078c3c
bt esi, 0xd
jae 0x140078c55
cmp qword [rbx + 4], 0
je 0x140078c55
and dword [rsp + 0x20], 0
xor r9d, r9d
mov r8d, dword [rbx - 0x2c]
mov edx, Ordinal_133
mov rcx, rdi
call fcn.140031b3c
mov al, byte [rbx - 7]
cmp al, 0x42
jne 0x140078c62
mov r8d, dword [rbx - 4]
jmp 0x140078c65
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.140031b3c
mov edx, ebp
mov rcx, rdi
call fcn.140032510
mov ecx, dword [rdi + 0x90]
mov dword [rax + 8], ecx
dec r15d
sub rbx, 0x58
sub r12, 1
mov dword [rsp + 0x80], r15d
jns 0x14007894e
mov r13, qword [rsp + 0x88]
mov rbp, qword [rsp + 0x90]
mov edx, dword [r14 + 0x38]
mov rcx, rdi
call fcn.140031f30
mov r12, qword [rsp + 0x98]
xor esi, esi
cmp byte [r14 + 0x42], sil
jbe 0x140078e33
lea rbx, [r14 + 0x3e0]
movzx eax, byte [rbx - 0x1c]
imul r9, rax, 0x70
mov rax, qword [rbx]
test byte [r9 + rbp + 0x48], 0x10
mov r15, qword [r9 + rbp + 0x28]
je 0x140078d18
and dword [rsp + 0x20], 0
mov rcx, r13
mov r9d, dword [r9 + rbp + 0x40]
mov r8d, dword [rbx - 0x44]
mov edx, dword [rbx - 0x28]
call fcn.140073aac
jmp 0x140078e20
test dword [rax + 0x28], 0x240
je 0x140078d27
mov r10, qword [rax + 0x20]
jmp 0x140078d38
test dword [rax + 0x28], 0x2000
je 0x140078e20
mov r10, qword [rbx - 0x10]
test r10, r10
je 0x140078e20
cmp byte [r14 + 0x45], 0
je 0x140078d56
mov rax, qword [r10 + 0x18]
test byte [rax + 0x40], 0x20
je 0x140078e20
cmp byte [r12 + 0x61], 0
jne 0x140078e20
mov edx, dword [rbx - 0x28]
mov rcx, rdi
mov r9d, dword [rdi + 0x90]
call fcn.140032510
cmp dword [rbx - 0x28], r9d
jge 0x140078e20
sub r9d, dword [rbx - 0x28]
lea rdx, [rax + 4]
mov ebp, r9d
mov eax, dword [rbx - 0x44]
cmp dword [rdx], eax
jne 0x140078e0a
mov al, byte [rdx - 4]
cmp al, 0x5a
jne 0x140078df4
test byte [r15 + 0x40], 0x20
movsxd r9, dword [rdx + 4]
je 0x140078dc4
mov r8, qword [r15 + 0x10]
jmp 0x140078db6
mov eax, dword [r8 + 0x64]
and al, 3
cmp al, 2
je 0x140078dbb
mov r8, qword [r8 + 0x28]
test r8, r8
jne 0x140078da8
mov rax, qword [r8 + 8]
movsx r9d, word [rax + r9*2]
movzx r8d, word [r10 + 0x60]
xor ecx, ecx
test r8d, r8d
je 0x140078de5
mov r11, qword [r10 + 8]
movsxd rax, ecx
cmp r9w, word [r11 + rax*2]
je 0x140078de8
inc ecx
cmp ecx, r8d
jl 0x140078dd4
or ecx, 0xffffffff
movsx eax, cx
test eax, eax
js 0x140078e0a
mov dword [rdx + 4], eax
jmp 0x140078e05
cmp al, 0x80
jne 0x140078e01
mov eax, dword [rbx - 0x40]
mov byte [rdx - 4], 0x87
jmp 0x140078e08
cmp al, 0x15
jne 0x140078e0a
mov eax, dword [rbx - 0x40]
mov dword [rdx], eax
add rdx, 0x18
sub rbp, 1
jne 0x140078d89
mov rbp, qword [rsp + 0x90]
movzx eax, byte [r14 + 0x42]
inc esi
add rbx, 0x58
cmp esi, eax
jl 0x140078ce2
mov eax, dword [r14 + 0x3c]
mov rdx, r14
mov rcx, r12
mov dword [r13 + 0xac], eax
add rsp, 0x38
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
jmp fcn.140074810