Function at 0x14007b220
Capabilities:
Check os version
Link many functions at runtime

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r15
lea rbp, [rsp - 0x350]
sub rsp, 0x450
mov rax, qword [0x1401f0010]
xor rax, rsp
mov qword [rbp + 0x340], rax
xor eax, eax
mov qword [rsp + 0x40], rdx
mov rsi, rcx
mov qword [rsp + 0x30], rcx
mov edx, 0x100
mov qword [rsp + 0x50], rax
lea rcx, [rbp + 0x130]
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x58], rax
mov edi, eax
mov qword [rsp + 0x60], rax
mov ebx, eax
mov qword [rsp + 0x68], rax
mov dword [rsp + 0x38], eax
mov dword [rsp + 0x3c], eax
call fcn.14013ac00
lea rcx, str.netapi32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
test rax, rax
jne 0x14007b2b8
lea rcx, str.radmin32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
test rax, rax
je 0x14007c171
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
xorps xmm0, xmm0
mov dword [rbp - 0x80], __WSAFDIsSet
lea rcx, [rbp - 0x80]
movups xmmword [rbp - 0x7c], xmm0
movups xmmword [rbp - 0x6c], xmm0
movups xmmword [rbp - 0x5c], xmm0
movups xmmword [rbp - 0x4c], xmm0
movups xmmword [rbp - 0x3c], xmm0
movups xmmword [rbp - 0x2c], xmm0
movups xmmword [rbp - 0x1c], xmm0
movups xmmword [rbp - 0xc], xmm0
movups xmmword [rbp + 4], xmm0
call qword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x14007c171
cmp dword [rbp - 0x70], 2
jne 0x14007b328
mov ecx, dword [rbp - 0x7c]
cmp ecx, 4
jne 0x14007b319
mov dword [rsp + 0x38], 1
jmp 0x14007b328
cmp ecx, 5
mov eax, 1
cmovae ebx, eax
mov dword [rsp + 0x3c], ebx
mov r8d, 0x104
lea rdx, [rbp + 0x20]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x14007b36d
mov edx, 0x5c
lea rcx, [rbp + 0x20]
call fcn.140133e58
test rax, rax
je 0x14007c171
lea r8, str._authadmin.dll
mov byte [rax], dil
mov edx, 0x104
lea rcx, [rbp + 0x20]
call fcn.14013ac60
lea rcx, [rbp + 0x20]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov qword [rsp + 0x70], rax
test rax, rax
je 0x14007b396
lea rdx, str.CUGP
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x50], rax
mov r8d, 0x104
lea rdx, [rbp + 0x20]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x14007b3db
mov edx, 0x5c
lea rcx, [rbp + 0x20]
call fcn.140133e58
test rax, rax
je 0x14007c171
lea r8, str.workgrpdomnt4.dll
mov byte [rax], dil
mov edx, 0x104
lea rcx, [rbp + 0x20]
call fcn.14013ac60
lea rcx, [rbp + 0x20]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov r13, rax
test rax, rax
je 0x14007b402
lea rdx, str.CUGP
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x48], rax
mov r8d, 0x104
lea rdx, [rbp + 0x20]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x14007b447
mov edx, 0x5c
lea rcx, [rbp + 0x20]
call fcn.140133e58
test rax, rax
je 0x14007c171
lea r8, str.ldapauth.dll
mov byte [rax], dil
mov edx, 0x104
lea rcx, [rbp + 0x20]
call fcn.14013ac60
lea rcx, [rbp + 0x20]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov r12, rax
test rax, rax
je 0x14007b46e
lea rdx, str.CUGP
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x58], rax
mov r8d, 0x104
lea rdx, [rbp + 0x20]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x14007b4b3
mov edx, 0x5c
lea rcx, [rbp + 0x20]
call fcn.140133e58
test rax, rax
je 0x14007c171
lea r8, str.ldapauthnt4.dll
mov byte [rax], dil
mov edx, 0x104
lea rcx, [rbp + 0x20]
call fcn.14013ac60
lea rcx, [rbp + 0x20]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov r15, rax
test rax, rax
je 0x14007b4da
lea rdx, str.CUGP
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x60], rax
mov r8d, 0x104
lea rdx, [rbp + 0x20]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x14007b51f
mov edx, 0x5c
lea rcx, [rbp + 0x20]
call fcn.140133e58
test rax, rax
je 0x14007c171
lea r8, str.ldapauth9x.dll
mov byte [rax], dil
mov edx, 0x104
lea rcx, [rbp + 0x20]
call fcn.14013ac60
lea rcx, [rbp + 0x20]
mov qword [rsp + 0x4a8], r14
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov r14, rax
test rax, rax
je 0x14007b54e
lea rdx, str.CUGP
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x68], rax
mov rcx, qword [0x1401fef68]
cmp byte [rcx + 0xe69], dil
jne 0x14007b65c
cmp byte [rcx + 0xeff], dil
jne 0x14007b65c
cmp byte [rcx + 0xf95], dil
jne 0x14007b65c
cmp dword [rsp + 0x38], edi
jne 0x14007b58a
test ebx, ebx
je 0x14007b65c
mov rdi, qword [rsp + 0x50]
test rdi, rdi
je 0x14007b644
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitialize]
mov rax, qword [0x1401fef68]
lea r8, [rbp + 0x130]
mov rdx, qword [rsp + 0x40]
mov rcx, rsi
lea r9, [rax + 0xe69]
mov eax, dword [rax + 0x102c]
mov dword [rsp + 0x20], eax
call rdi
mov edi, eax
call qword [sym.imp.ole32.dll_CoUninitialize]
cmp edi, 1
jne 0x14007b65c
mov r8d, 0x104
lea rdx, [rbp + 0x230]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x14007b61f
mov edx, 0x5c
lea rcx, [rbp + 0x230]
call fcn.140133e58
lea r8, str.logging.dll
mov edx, 0x104
lea rcx, [rbp + 0x230]
mov byte [rax], 0
call fcn.14013ac60
lea rcx, [rbp + 0x230]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rbx, rax
test rax, rax
je 0x14007c0f2
lea rdx, str.LOGLOGONUSER
jmp 0x14007c0d4
xor r9d, r9d
lea r8, [0x1401fc700]
lea rdx, str.authadmin.dll_not_found
call fcn.1400208f0
xor edi, edi
mov rax, qword [0x1401fef68]
cmp byte [rax + 0xe69], 0
je 0x14007b930
mov rdi, qword [rsp + 0x48]
test rdi, rdi
je 0x14007b6be
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitialize]
mov rax, qword [0x1401fef68]
lea r8, [rbp + 0x130]
mov rdx, qword [rsp + 0x40]
mov rcx, rsi
lea r9, [rax + 0xe69]
mov eax, dword [rax + 0x102c]
mov dword [rsp + 0x20], eax
call rdi
mov edi, eax
call qword [sym.imp.ole32.dll_CoUninitialize]
cmp edi, 1
je 0x14007b5da
jmp 0x14007b6d6
xor r9d, r9d
lea r8, [0x1401fc700]
lea rdx, str.workgrpdomnt4.dll_not_found
call fcn.1400208f0
xor edi, edi
lea rcx, str.Activeds.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
test rax, rax
je 0x14007b75a
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
test ebx, ebx
je 0x14007b751
mov rax, qword [0x1401fef68]
mov ecx, dword [rax + 0x102c]
sub ecx, 2
cmp ecx, 1
ja 0x14007b751
mov rbx, qword [rsp + 0x58]
test rbx, rbx
je 0x14007b825
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitialize]
mov rax, qword [0x1401fef68]
lea r8, [rbp + 0x130]
mov rdx, qword [rsp + 0x40]
mov rcx, rsi
lea r9, [rax + 0xe69]
mov eax, dword [rax + 0x102c]
mov dword [rsp + 0x20], eax
call rbx
mov edi, eax
call qword [sym.imp.ole32.dll_CoUninitialize]
cmp edi, 1
je 0x14007b5da
lea rcx, str.Activeds.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
test rax, rax
je 0x14007b86c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp dword [rsp + 0x38], 0
je 0x14007b863
lea rcx, str.netapi32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rsi, rax
test rax, rax
je 0x14007b85c
lea rdx, str.DsGetDcNameW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rsi
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
test rbx, rbx
je 0x14007b85c
mov rax, qword [0x1401fef68]
mov ecx, dword [rax + 0x102c]
sub ecx, 2
cmp ecx, 1
ja 0x14007b85c
mov rbx, qword [rsp + 0x60]
test rbx, rbx
je 0x14007b842
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitialize]
mov rax, qword [0x1401fef68]
lea r8, [rbp + 0x130]
mov rsi, qword [rsp + 0x30]
mov rdx, qword [rsp + 0x40]
mov rcx, rsi
lea r9, [rax + 0xe69]
mov eax, dword [rax + 0x102c]
mov dword [rsp + 0x20], eax
call rbx
mov edi, eax
call qword [sym.imp.ole32.dll_CoUninitialize]
jmp 0x14007b863
xor r9d, r9d
lea r8, [0x1401fc700]
lea rdx, str.ldapauth.dll_not_found
call fcn.1400208f0
xor edi, edi
jmp 0x14007b75a
xor r9d, r9d
lea r8, [0x1401fc700]
lea rdx, str.ldapauthnt4.dll_not_found
call fcn.1400208f0
xor edi, edi
jmp 0x14007b86c
mov rsi, qword [rsp + 0x30]
jmp 0x14007b863
cmp edi, 1
je 0x14007b5da
lea rcx, str.Activeds.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
test rax, rax
je 0x14007b927
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp dword [rsp + 0x38], 0
mov ebx, dword [rsp + 0x3c]
jne 0x14007b913
test ebx, ebx
jne 0x14007b913
mov rax, qword [0x1401fef68]
mov ecx, dword [rax + 0x102c]
sub ecx, 2
cmp ecx, 1
ja 0x14007b913
mov rdi, qword [rsp + 0x68]
test rdi, rdi
je 0x14007b8f9
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitialize]
mov rax, qword [0x1401fef68]
lea r8, [rbp + 0x130]
mov rsi, qword [rsp + 0x30]
mov rdx, qword [rsp + 0x40]
mov rcx, rsi
lea r9, [rax + 0xe69]
mov eax, dword [rax + 0x102c]
mov dword [rsp + 0x20], eax
call rdi
mov edi, eax
call qword [sym.imp.ole32.dll_CoUninitialize]
jmp 0x14007b918
xor r9d, r9d
lea r8, [0x1401fc700]
lea rdx, str.ldapauth9x.dll_not_found
call fcn.1400208f0
xor edi, edi
jmp 0x14007b92b
mov rsi, qword [rsp + 0x30]
cmp edi, 1
jne 0x14007b930
mov rsi, qword [rsp + 0x30]
jmp 0x14007b5da
mov ebx, dword [rsp + 0x3c]
mov rsi, qword [rsp + 0x30]
mov rax, qword [0x1401fef68]
cmp byte [rax + 0xeff], 0
je 0x14007bc5f
mov rdi, qword [rsp + 0x48]
test rdi, rdi
je 0x14007b98e
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitialize]
mov rax, qword [0x1401fef68]
lea r8, [rbp + 0x130]
mov rdx, qword [rsp + 0x40]
mov rcx, rsi
lea r9, [rax + 0xeff]
mov eax, dword [rax + 0x1030]
mov dword [rsp + 0x20], eax
call rdi
mov edi, eax
call qword [sym.imp.ole32.dll_CoUninitialize]
cmp edi, 1
je 0x14007b91d
jmp 0x14007b9a6
xor r9d, r9d
lea r8, [0x1401fc700]
lea rdx, str.workgrpdomnt4.dll_not_found
call fcn.1400208f0
xor edi, edi
cmp dword [rsp + 0x38], 0
jne 0x14007b9b1
test ebx, ebx
je 0x14007b9f4
mov rdi, qword [rsp + 0x50]
test rdi, rdi
je 0x14007b9ff
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitialize]
mov rax, qword [0x1401fef68]
lea r8, [rbp + 0x130]
mov rdx, qword [rsp + 0x40]
mov rcx, rsi
lea r9, [rax + 0xeff]
mov eax, dword [rax + 0x1030]
mov dword [rsp + 0x20], eax
call rdi
mov edi, eax
call qword [sym.imp.ole32.dll_CoUninitialize]
cmp edi, 1
je 0x14007b91d
jmp 0x14007ba17
xor r9d, r9d
lea r8, [0x1401fc700]
lea rdx, str.authadmin.dll_not_found
call fcn.1400208f0
xor edi, edi
lea rcx, str.Activeds.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
test rax, rax
je 0x14007ba9b
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
test ebx, ebx
je 0x14007ba92
mov rax, qword [0x1401fef68]
mov ecx, dword [rax + 0x1030]
sub ecx, 2
cmp ecx, 1
ja 0x14007ba92
mov rbx, qword [rsp + 0x58]
test rbx, rbx
je 0x14007bb69
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitialize]
mov rax, qword [0x1401fef68]
lea r8, [rbp + 0x130]
mov rdx, qword [rsp + 0x40]
mov rcx, rsi
lea r9, [rax + 0xeff]
mov eax, dword [rax + 0x1030]
mov dword [rsp + 0x20], eax
call rbx
mov edi, eax
call qword [sym.imp.ole32.dll_CoUninitialize]
cmp edi, 1
je 0x14007b91d
lea rcx, str.Activeds.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
test rax, rax
je 0x14007bb9e
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp dword [rsp + 0x38], 0
je 0x14007bc32
lea rcx, str.netapi32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rsi, rax
test rax, rax
je 0x14007bc32
lea rdx, str.DsGetDcNameW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rsi
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
test rbx, rbx
je 0x14007bc32
mov rax, qword [0x1401fef68]
mov ecx, dword [rax + 0x1030]
sub ecx, 2
cmp ecx, 1
ja 0x14007bc32
mov rbx, qword [rsp + 0x60]
test rbx, rbx
je 0x14007bb86
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitialize]
mov rax, qword [0x1401fef68]
lea r8, [rbp + 0x130]
mov rsi, qword [rsp + 0x30]
mov rdx, qword [rsp + 0x40]
mov rcx, rsi
lea r9, [rax + 0xeff]
mov eax, dword [rax + 0x1030]
mov dword [rsp + 0x20], eax
call rbx
mov edi, eax
call qword [sym.imp.ole32.dll_CoUninitialize]
jmp 0x14007bc37
xor r9d, r9d
lea r8, [0x1401fc700]
lea rdx, str.ldapauth.dll_not_found
call fcn.1400208f0
xor edi, edi
jmp 0x14007ba9b
xor r9d, r9d
lea r8, [0x1401fc700]
lea rdx, str.ldapauthnt4.dll_not_found
call fcn.1400208f0
xor edi, edi
mov rsi, qword [rsp + 0x30]
lea rcx, str.Activeds.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
test rax, rax
je 0x14007bc64
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ebx, dword [rsp + 0x38]
test ebx, ebx
jne 0x14007bc28
cmp dword [rsp + 0x3c], ebx
jne 0x14007bc28
mov rax, qword [0x1401fef68]
mov ecx, dword [rax + 0x1030]
sub ecx, 2
cmp ecx, 1
ja 0x14007bc28
mov rdi, qword [rsp + 0x68]
test rdi, rdi
je 0x14007bc45
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitialize]
mov rax, qword [0x1401fef68]
lea r8, [rbp + 0x130]
mov rdx, qword [rsp + 0x40]
mov rcx, rsi
lea r9, [rax + 0xeff]
mov eax, dword [rax + 0x1030]
mov dword [rsp + 0x20], eax
call rdi
mov edi, eax
call qword [sym.imp.ole32.dll_CoUninitialize]
cmp edi, 1
jne 0x14007bc68
jmp 0x14007b5da
mov rsi, qword [rsp + 0x30]
cmp edi, 1
je 0x14007b5da
jmp 0x14007bba3
xor r9d, r9d
lea r8, [0x1401fc700]
lea rdx, str.ldapauth9x.dll_not_found
call fcn.1400208f0
xor edi, edi
jmp 0x14007bc68
mov rsi, qword [rsp + 0x30]
mov ebx, dword [rsp + 0x38]
mov rax, qword [0x1401fef68]
cmp byte [rax + 0xf95], 0
je 0x14007c073
mov rdi, qword [rsp + 0x48]
test rdi, rdi
je 0x14007bdc6
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitialize]
mov rax, qword [0x1401fef68]
lea r8, [rbp + 0x130]
mov rsi, qword [rsp + 0x30]
mov rdx, qword [rsp + 0x40]
mov rcx, rsi
lea r9, [rax + 0xf95]
mov eax, dword [rax + 0x1034]
mov dword [rsp + 0x20], eax
call rdi
mov edi, eax
call qword [sym.imp.ole32.dll_CoUninitialize]
cmp edi, 1
jne 0x14007bde3
mov r8d, 0x104
lea rdx, [rbp + 0x230]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x14007bd16
mov edx, 0x5c
lea rcx, [rbp + 0x230]
call fcn.140133e58
lea r8, str.logging.dll
mov edx, 0x104
lea rcx, [rbp + 0x230]
mov byte [rax], 0
call fcn.14013ac60
lea rcx, [rbp + 0x230]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rbx, rax
test rax, rax
je 0x14007bd50
lea rdx, str.LOGLOGONUSER
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rdx, rsi
lea rcx, [rbp + 0x130]
call rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x14007bd60
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
test r13, r13
je 0x14007bd6e
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
test r12, r12
je 0x14007bd7c
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
test r15, r15
je 0x14007bd8a
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
test r14, r14
je 0x14007bd98
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, 2
mov r14, qword [rsp + 0x4a8]
mov rcx, qword [rbp + 0x340]
xor rcx, rsp
call fcn.140131ef0
add rsp, 0x450
pop r15
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
xor r9d, r9d
lea r8, [0x1401fc700]
lea rdx, str.workgrpdomnt4.dll_not_found
call fcn.1400208f0
mov rsi, qword [rsp + 0x30]
xor edi, edi
test ebx, ebx
mov ebx, dword [rsp + 0x3c]
jne 0x14007bdef
test ebx, ebx
je 0x14007be32
mov rdi, qword [rsp + 0x50]
test rdi, rdi
je 0x14007be41
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitialize]
mov rax, qword [0x1401fef68]
lea r8, [rbp + 0x130]
mov rdx, qword [rsp + 0x40]
mov rcx, rsi
lea r9, [rax + 0xf95]
mov eax, dword [rax + 0x1034]
mov dword [rsp + 0x20], eax
call rdi
mov edi, eax
call qword [sym.imp.ole32.dll_CoUninitialize]
cmp edi, 1
jne 0x14007be59
mov rsi, qword [rsp + 0x30]
jmp 0x14007bcd1
xor r9d, r9d
lea r8, [0x1401fc700]
lea rdx, str.authadmin.dll_not_found
call fcn.1400208f0
xor edi, edi
lea rcx, str.Activeds.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
test rax, rax
je 0x14007bedd
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
test ebx, ebx
je 0x14007bed4
mov rax, qword [0x1401fef68]
mov ecx, dword [rax + 0x1034]
sub ecx, 2
cmp ecx, 1
ja 0x14007bed4
mov rbx, qword [rsp + 0x58]
test rbx, rbx
je 0x14007bfab
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitialize]
mov rax, qword [0x1401fef68]
lea r8, [rbp + 0x130]
mov rdx, qword [rsp + 0x40]
mov rcx, rsi
lea r9, [rax + 0xf95]
mov eax, dword [rax + 0x1034]
mov dword [rsp + 0x20], eax
call rbx
mov edi, eax
call qword [sym.imp.ole32.dll_CoUninitialize]
cmp edi, 1
je 0x14007be37
lea rcx, str.Activeds.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
test rax, rax
je 0x14007bfe0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp dword [rsp + 0x38], 0
je 0x14007c141
lea rcx, str.netapi32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rsi, rax
test rax, rax
je 0x14007c141
lea rdx, str.DsGetDcNameW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rsi
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
test rbx, rbx
je 0x14007c141
mov rax, qword [0x1401fef68]
mov ecx, dword [rax + 0x1034]
sub ecx, 2
cmp ecx, 1
ja 0x14007c141
mov rbx, qword [rsp + 0x60]
test rbx, rbx
je 0x14007bfc8
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitialize]
mov rax, qword [0x1401fef68]
lea r8, [rbp + 0x130]
mov rsi, qword [rsp + 0x30]
mov rdx, qword [rsp + 0x40]
mov rcx, rsi
lea r9, [rax + 0xf95]
mov eax, dword [rax + 0x1034]
mov dword [rsp + 0x20], eax
call rbx
mov edi, eax
call qword [sym.imp.ole32.dll_CoUninitialize]
jmp 0x14007c146
xor r9d, r9d
lea r8, [0x1401fc700]
lea rdx, str.ldapauth.dll_not_found
call fcn.1400208f0
xor edi, edi
jmp 0x14007bedd
xor r9d, r9d
lea r8, [0x1401fc700]
lea rdx, str.ldapauthnt4.dll_not_found
call fcn.1400208f0
xor edi, edi
mov rsi, qword [rsp + 0x30]
lea rcx, str.Activeds.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
test rax, rax
je 0x14007c073
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp dword [rsp + 0x38], 0
jne 0x14007c06a
cmp dword [rsp + 0x3c], 0
jne 0x14007c06a
mov rax, qword [0x1401fef68]
mov ecx, dword [rax + 0x1034]
sub ecx, 2
cmp ecx, 1
ja 0x14007c06a
mov rbx, qword [rsp + 0x68]
test rbx, rbx
je 0x14007c154
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitialize]
mov rax, qword [0x1401fef68]
lea r8, [rbp + 0x130]
mov rdx, qword [rsp + 0x40]
mov rcx, rsi
lea r9, [rax + 0xf95]
mov eax, dword [rax + 0x1034]
mov dword [rsp + 0x20], eax
call rbx
mov edi, eax
call qword [sym.imp.ole32.dll_CoUninitialize]
cmp edi, 1
je 0x14007bcd1
mov r8d, 0x104
lea rdx, [rbp + 0x230]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x14007c0b8
mov edx, 0x5c
lea rcx, [rbp + 0x230]
call fcn.140133e58
lea r8, str.logging.dll
mov edx, 0x104
lea rcx, [rbp + 0x230]
mov byte [rax], 0
call fcn.14013ac60
lea rcx, [rbp + 0x230]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rbx, rax
test rax, rax
je 0x14007c0f2
lea rdx, str.LOGFAILEDUSER
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rdx, rsi
lea rcx, [rbp + 0x130]
call rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x14007c102
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
test r13, r13
je 0x14007c110
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
test r12, r12
je 0x14007c11e
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
test r15, r15
je 0x14007c12c
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
test r14, r14
je 0x14007c13a
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, edi
jmp 0x14007bd9d
mov rsi, qword [rsp + 0x30]
cmp edi, 1
je 0x14007bcd1
jmp 0x14007bfe5
xor r9d, r9d
lea r8, [0x1401fc700]
lea rdx, str.ldapauth9x.dll_not_found
call fcn.1400208f0
xor edi, edi
jmp 0x14007c073
xor eax, eax
jmp 0x14007bda5