Function at 0x14007ba10
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 [0x1401ef010]
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.14013b330
lea rcx, str.netapi32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
test rax, rax
jne 0x14007baa8
lea rcx, str.radmin32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
test rax, rax
je 0x14007c961
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 0x14007c961
cmp dword [rbp - 0x70], 2
jne 0x14007bb18
mov ecx, dword [rbp - 0x7c]
cmp ecx, 4
jne 0x14007bb09
mov dword [rsp + 0x38], 1
jmp 0x14007bb18
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 0x14007bb5d
mov edx, 0x5c
lea rcx, [rbp + 0x20]
call fcn.140134588
test rax, rax
je 0x14007c961
lea r8, str._authadmin.dll
mov byte [rax], dil
mov edx, 0x104
lea rcx, [rbp + 0x20]
call fcn.14013b390
lea rcx, [rbp + 0x20]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov qword [rsp + 0x70], rax
test rax, rax
je 0x14007bb86
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 0x14007bbcb
mov edx, 0x5c
lea rcx, [rbp + 0x20]
call fcn.140134588
test rax, rax
je 0x14007c961
lea r8, str.workgrpdomnt4.dll
mov byte [rax], dil
mov edx, 0x104
lea rcx, [rbp + 0x20]
call fcn.14013b390
lea rcx, [rbp + 0x20]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov r13, rax
test rax, rax
je 0x14007bbf2
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 0x14007bc37
mov edx, 0x5c
lea rcx, [rbp + 0x20]
call fcn.140134588
test rax, rax
je 0x14007c961
lea r8, str.ldapauth.dll
mov byte [rax], dil
mov edx, 0x104
lea rcx, [rbp + 0x20]
call fcn.14013b390
lea rcx, [rbp + 0x20]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov r12, rax
test rax, rax
je 0x14007bc5e
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 0x14007bca3
mov edx, 0x5c
lea rcx, [rbp + 0x20]
call fcn.140134588
test rax, rax
je 0x14007c961
lea r8, str.ldapauthnt4.dll
mov byte [rax], dil
mov edx, 0x104
lea rcx, [rbp + 0x20]
call fcn.14013b390
lea rcx, [rbp + 0x20]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov r15, rax
test rax, rax
je 0x14007bcca
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 0x14007bd0f
mov edx, 0x5c
lea rcx, [rbp + 0x20]
call fcn.140134588
test rax, rax
je 0x14007c961
lea r8, str.ldapauth9x.dll
mov byte [rax], dil
mov edx, 0x104
lea rcx, [rbp + 0x20]
call fcn.14013b390
lea rcx, [rbp + 0x20]
mov qword [rsp + 0x4a8], r14
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov r14, rax
test rax, rax
je 0x14007bd3e
lea rdx, str.CUGP
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x68], rax
mov rcx, qword [0x1401fdf80]
cmp byte [rcx + 0xe69], dil
jne 0x14007be4c
cmp byte [rcx + 0xeff], dil
jne 0x14007be4c
cmp byte [rcx + 0xf95], dil
jne 0x14007be4c
cmp dword [rsp + 0x38], edi
jne 0x14007bd7a
test ebx, ebx
je 0x14007be4c
mov rdi, qword [rsp + 0x50]
test rdi, rdi
je 0x14007be34
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitialize]
mov rax, qword [0x1401fdf80]
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 0x14007be4c
mov r8d, 0x104
lea rdx, [rbp + 0x230]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x14007be0f
mov edx, 0x5c
lea rcx, [rbp + 0x230]
call fcn.140134588
lea r8, str.logging.dll
mov edx, 0x104
lea rcx, [rbp + 0x230]
mov byte [rax], 0
call fcn.14013b390
lea rcx, [rbp + 0x230]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rbx, rax
test rax, rax
je 0x14007c8e2
lea rdx, str.LOGLOGONUSER
jmp 0x14007c8c4
xor r9d, r9d
lea r8, [0x1401fb720]
lea rdx, str.authadmin.dll_not_found
call fcn.140020f00
xor edi, edi
mov rax, qword [0x1401fdf80]
cmp byte [rax + 0xe69], 0
je 0x14007c120
mov rdi, qword [rsp + 0x48]
test rdi, rdi
je 0x14007beae
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitialize]
mov rax, qword [0x1401fdf80]
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 0x14007bdca
jmp 0x14007bec6
xor r9d, r9d
lea r8, [0x1401fb720]
lea rdx, str.workgrpdomnt4.dll_not_found
call fcn.140020f00
xor edi, edi
lea rcx, str.Activeds.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
test rax, rax
je 0x14007bf4a
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
test ebx, ebx
je 0x14007bf41
mov rax, qword [0x1401fdf80]
mov ecx, dword [rax + 0x102c]
sub ecx, 2
cmp ecx, 1
ja 0x14007bf41
mov rbx, qword [rsp + 0x58]
test rbx, rbx
je 0x14007c015
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitialize]
mov rax, qword [0x1401fdf80]
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 0x14007bdca
lea rcx, str.Activeds.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
test rax, rax
je 0x14007c05c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp dword [rsp + 0x38], 0
je 0x14007c053
lea rcx, str.netapi32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rsi, rax
test rax, rax
je 0x14007c04c
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 0x14007c04c
mov rax, qword [0x1401fdf80]
mov ecx, dword [rax + 0x102c]
sub ecx, 2
cmp ecx, 1
ja 0x14007c04c
mov rbx, qword [rsp + 0x60]
test rbx, rbx
je 0x14007c032
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitialize]
mov rax, qword [0x1401fdf80]
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 0x14007c053
xor r9d, r9d
lea r8, [0x1401fb720]
lea rdx, str.ldapauth.dll_not_found
call fcn.140020f00
xor edi, edi
jmp 0x14007bf4a
xor r9d, r9d
lea r8, [0x1401fb720]
lea rdx, str.ldapauthnt4.dll_not_found
call fcn.140020f00
xor edi, edi
jmp 0x14007c05c
mov rsi, qword [rsp + 0x30]
jmp 0x14007c053
cmp edi, 1
je 0x14007bdca
lea rcx, str.Activeds.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
test rax, rax
je 0x14007c117
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp dword [rsp + 0x38], 0
mov ebx, dword [rsp + 0x3c]
jne 0x14007c103
test ebx, ebx
jne 0x14007c103
mov rax, qword [0x1401fdf80]
mov ecx, dword [rax + 0x102c]
sub ecx, 2
cmp ecx, 1
ja 0x14007c103
mov rdi, qword [rsp + 0x68]
test rdi, rdi
je 0x14007c0e9
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitialize]
mov rax, qword [0x1401fdf80]
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 0x14007c108
xor r9d, r9d
lea r8, [0x1401fb720]
lea rdx, str.ldapauth9x.dll_not_found
call fcn.140020f00
xor edi, edi
jmp 0x14007c11b
mov rsi, qword [rsp + 0x30]
cmp edi, 1
jne 0x14007c120
mov rsi, qword [rsp + 0x30]
jmp 0x14007bdca
mov ebx, dword [rsp + 0x3c]
mov rsi, qword [rsp + 0x30]
mov rax, qword [0x1401fdf80]
cmp byte [rax + 0xeff], 0
je 0x14007c44f
mov rdi, qword [rsp + 0x48]
test rdi, rdi
je 0x14007c17e
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitialize]
mov rax, qword [0x1401fdf80]
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 0x14007c10d
jmp 0x14007c196
xor r9d, r9d
lea r8, [0x1401fb720]
lea rdx, str.workgrpdomnt4.dll_not_found
call fcn.140020f00
xor edi, edi
cmp dword [rsp + 0x38], 0
jne 0x14007c1a1
test ebx, ebx
je 0x14007c1e4
mov rdi, qword [rsp + 0x50]
test rdi, rdi
je 0x14007c1ef
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitialize]
mov rax, qword [0x1401fdf80]
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 0x14007c10d
jmp 0x14007c207
xor r9d, r9d
lea r8, [0x1401fb720]
lea rdx, str.authadmin.dll_not_found
call fcn.140020f00
xor edi, edi
lea rcx, str.Activeds.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
test rax, rax
je 0x14007c28b
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
test ebx, ebx
je 0x14007c282
mov rax, qword [0x1401fdf80]
mov ecx, dword [rax + 0x1030]
sub ecx, 2
cmp ecx, 1
ja 0x14007c282
mov rbx, qword [rsp + 0x58]
test rbx, rbx
je 0x14007c359
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitialize]
mov rax, qword [0x1401fdf80]
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 0x14007c10d
lea rcx, str.Activeds.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
test rax, rax
je 0x14007c38e
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp dword [rsp + 0x38], 0
je 0x14007c422
lea rcx, str.netapi32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rsi, rax
test rax, rax
je 0x14007c422
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 0x14007c422
mov rax, qword [0x1401fdf80]
mov ecx, dword [rax + 0x1030]
sub ecx, 2
cmp ecx, 1
ja 0x14007c422
mov rbx, qword [rsp + 0x60]
test rbx, rbx
je 0x14007c376
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitialize]
mov rax, qword [0x1401fdf80]
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 0x14007c427
xor r9d, r9d
lea r8, [0x1401fb720]
lea rdx, str.ldapauth.dll_not_found
call fcn.140020f00
xor edi, edi
jmp 0x14007c28b
xor r9d, r9d
lea r8, [0x1401fb720]
lea rdx, str.ldapauthnt4.dll_not_found
call fcn.140020f00
xor edi, edi
mov rsi, qword [rsp + 0x30]
lea rcx, str.Activeds.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
test rax, rax
je 0x14007c454
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ebx, dword [rsp + 0x38]
test ebx, ebx
jne 0x14007c418
cmp dword [rsp + 0x3c], ebx
jne 0x14007c418
mov rax, qword [0x1401fdf80]
mov ecx, dword [rax + 0x1030]
sub ecx, 2
cmp ecx, 1
ja 0x14007c418
mov rdi, qword [rsp + 0x68]
test rdi, rdi
je 0x14007c435
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitialize]
mov rax, qword [0x1401fdf80]
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 0x14007c458
jmp 0x14007bdca
mov rsi, qword [rsp + 0x30]
cmp edi, 1
je 0x14007bdca
jmp 0x14007c393
xor r9d, r9d
lea r8, [0x1401fb720]
lea rdx, str.ldapauth9x.dll_not_found
call fcn.140020f00
xor edi, edi
jmp 0x14007c458
mov rsi, qword [rsp + 0x30]
mov ebx, dword [rsp + 0x38]
mov rax, qword [0x1401fdf80]
cmp byte [rax + 0xf95], 0
je 0x14007c863
mov rdi, qword [rsp + 0x48]
test rdi, rdi
je 0x14007c5b6
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitialize]
mov rax, qword [0x1401fdf80]
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 0x14007c5d3
mov r8d, 0x104
lea rdx, [rbp + 0x230]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x14007c506
mov edx, 0x5c
lea rcx, [rbp + 0x230]
call fcn.140134588
lea r8, str.logging.dll
mov edx, 0x104
lea rcx, [rbp + 0x230]
mov byte [rax], 0
call fcn.14013b390
lea rcx, [rbp + 0x230]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rbx, rax
test rax, rax
je 0x14007c540
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 0x14007c550
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
test r13, r13
je 0x14007c55e
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
test r12, r12
je 0x14007c56c
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
test r15, r15
je 0x14007c57a
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
test r14, r14
je 0x14007c588
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.140132620
add rsp, 0x450
pop r15
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
xor r9d, r9d
lea r8, [0x1401fb720]
lea rdx, str.workgrpdomnt4.dll_not_found
call fcn.140020f00
mov rsi, qword [rsp + 0x30]
xor edi, edi
test ebx, ebx
mov ebx, dword [rsp + 0x3c]
jne 0x14007c5df
test ebx, ebx
je 0x14007c622
mov rdi, qword [rsp + 0x50]
test rdi, rdi
je 0x14007c631
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitialize]
mov rax, qword [0x1401fdf80]
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 0x14007c649
mov rsi, qword [rsp + 0x30]
jmp 0x14007c4c1
xor r9d, r9d
lea r8, [0x1401fb720]
lea rdx, str.authadmin.dll_not_found
call fcn.140020f00
xor edi, edi
lea rcx, str.Activeds.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
test rax, rax
je 0x14007c6cd
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
test ebx, ebx
je 0x14007c6c4
mov rax, qword [0x1401fdf80]
mov ecx, dword [rax + 0x1034]
sub ecx, 2
cmp ecx, 1
ja 0x14007c6c4
mov rbx, qword [rsp + 0x58]
test rbx, rbx
je 0x14007c79b
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitialize]
mov rax, qword [0x1401fdf80]
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 0x14007c627
lea rcx, str.Activeds.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
test rax, rax
je 0x14007c7d0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp dword [rsp + 0x38], 0
je 0x14007c931
lea rcx, str.netapi32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rsi, rax
test rax, rax
je 0x14007c931
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 0x14007c931
mov rax, qword [0x1401fdf80]
mov ecx, dword [rax + 0x1034]
sub ecx, 2
cmp ecx, 1
ja 0x14007c931
mov rbx, qword [rsp + 0x60]
test rbx, rbx
je 0x14007c7b8
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitialize]
mov rax, qword [0x1401fdf80]
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 0x14007c936
xor r9d, r9d
lea r8, [0x1401fb720]
lea rdx, str.ldapauth.dll_not_found
call fcn.140020f00
xor edi, edi
jmp 0x14007c6cd
xor r9d, r9d
lea r8, [0x1401fb720]
lea rdx, str.ldapauthnt4.dll_not_found
call fcn.140020f00
xor edi, edi
mov rsi, qword [rsp + 0x30]
lea rcx, str.Activeds.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
test rax, rax
je 0x14007c863
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp dword [rsp + 0x38], 0
jne 0x14007c85a
cmp dword [rsp + 0x3c], 0
jne 0x14007c85a
mov rax, qword [0x1401fdf80]
mov ecx, dword [rax + 0x1034]
sub ecx, 2
cmp ecx, 1
ja 0x14007c85a
mov rbx, qword [rsp + 0x68]
test rbx, rbx
je 0x14007c944
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitialize]
mov rax, qword [0x1401fdf80]
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 0x14007c4c1
mov r8d, 0x104
lea rdx, [rbp + 0x230]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x14007c8a8
mov edx, 0x5c
lea rcx, [rbp + 0x230]
call fcn.140134588
lea r8, str.logging.dll
mov edx, 0x104
lea rcx, [rbp + 0x230]
mov byte [rax], 0
call fcn.14013b390
lea rcx, [rbp + 0x230]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rbx, rax
test rax, rax
je 0x14007c8e2
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 0x14007c8f2
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
test r13, r13
je 0x14007c900
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
test r12, r12
je 0x14007c90e
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
test r15, r15
je 0x14007c91c
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
test r14, r14
je 0x14007c92a
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, edi
jmp 0x14007c58d
mov rsi, qword [rsp + 0x30]
cmp edi, 1
je 0x14007c4c1
jmp 0x14007c7d5
xor r9d, r9d
lea r8, [0x1401fb720]
lea rdx, str.ldapauth9x.dll_not_found
call fcn.140020f00
xor edi, edi
jmp 0x14007c863
xor eax, eax
jmp 0x14007c595