Function at 0x14007b380
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.140139ff0
lea rcx, str.netapi32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
test rax, rax
jne 0x14007b418
lea rcx, str.radmin32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
test rax, rax
je 0x14007c2d1
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 0x14007c2d1
cmp dword [rbp - 0x70], 2
jne 0x14007b488
mov ecx, dword [rbp - 0x7c]
cmp ecx, 4
jne 0x14007b479
mov dword [rsp + 0x38], 1
jmp 0x14007b488
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 0x14007b4cd
mov edx, 0x5c
lea rcx, [rbp + 0x20]
call fcn.140133248
test rax, rax
je 0x14007c2d1
lea r8, str._authadmin.dll
mov byte [rax], dil
mov edx, 0x104
lea rcx, [rbp + 0x20]
call fcn.14013a050
lea rcx, [rbp + 0x20]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov qword [rsp + 0x70], rax
test rax, rax
je 0x14007b4f6
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 0x14007b53b
mov edx, 0x5c
lea rcx, [rbp + 0x20]
call fcn.140133248
test rax, rax
je 0x14007c2d1
lea r8, str.workgrpdomnt4.dll
mov byte [rax], dil
mov edx, 0x104
lea rcx, [rbp + 0x20]
call fcn.14013a050
lea rcx, [rbp + 0x20]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov r13, rax
test rax, rax
je 0x14007b562
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 0x14007b5a7
mov edx, 0x5c
lea rcx, [rbp + 0x20]
call fcn.140133248
test rax, rax
je 0x14007c2d1
lea r8, str.ldapauth.dll
mov byte [rax], dil
mov edx, 0x104
lea rcx, [rbp + 0x20]
call fcn.14013a050
lea rcx, [rbp + 0x20]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov r12, rax
test rax, rax
je 0x14007b5ce
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 0x14007b613
mov edx, 0x5c
lea rcx, [rbp + 0x20]
call fcn.140133248
test rax, rax
je 0x14007c2d1
lea r8, str.ldapauthnt4.dll
mov byte [rax], dil
mov edx, 0x104
lea rcx, [rbp + 0x20]
call fcn.14013a050
lea rcx, [rbp + 0x20]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov r15, rax
test rax, rax
je 0x14007b63a
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 0x14007b67f
mov edx, 0x5c
lea rcx, [rbp + 0x20]
call fcn.140133248
test rax, rax
je 0x14007c2d1
lea r8, str.ldapauth9x.dll
mov byte [rax], dil
mov edx, 0x104
lea rcx, [rbp + 0x20]
call fcn.14013a050
lea rcx, [rbp + 0x20]
mov qword [rsp + 0x4a8], r14
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov r14, rax
test rax, rax
je 0x14007b6ae
lea rdx, str.CUGP
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x68], rax
mov rcx, qword [0x1401fdf60]
cmp byte [rcx + 0xe69], dil
jne 0x14007b7bc
cmp byte [rcx + 0xeff], dil
jne 0x14007b7bc
cmp byte [rcx + 0xf95], dil
jne 0x14007b7bc
cmp dword [rsp + 0x38], edi
jne 0x14007b6ea
test ebx, ebx
je 0x14007b7bc
mov rdi, qword [rsp + 0x50]
test rdi, rdi
je 0x14007b7a4
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitialize]
mov rax, qword [0x1401fdf60]
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 0x14007b7bc
mov r8d, 0x104
lea rdx, [rbp + 0x230]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x14007b77f
mov edx, 0x5c
lea rcx, [rbp + 0x230]
call fcn.140133248
lea r8, str.logging.dll
mov edx, 0x104
lea rcx, [rbp + 0x230]
mov byte [rax], 0
call fcn.14013a050
lea rcx, [rbp + 0x230]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rbx, rax
test rax, rax
je 0x14007c252
lea rdx, str.LOGLOGONUSER
jmp 0x14007c234
xor r9d, r9d
lea r8, [0x1401fb700]
lea rdx, str.authadmin.dll_not_found
call fcn.1400208f0
xor edi, edi
mov rax, qword [0x1401fdf60]
cmp byte [rax + 0xe69], 0
je 0x14007ba90
mov rdi, qword [rsp + 0x48]
test rdi, rdi
je 0x14007b81e
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitialize]
mov rax, qword [0x1401fdf60]
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 0x14007b73a
jmp 0x14007b836
xor r9d, r9d
lea r8, [0x1401fb700]
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 0x14007b8ba
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
test ebx, ebx
je 0x14007b8b1
mov rax, qword [0x1401fdf60]
mov ecx, dword [rax + 0x102c]
sub ecx, 2
cmp ecx, 1
ja 0x14007b8b1
mov rbx, qword [rsp + 0x58]
test rbx, rbx
je 0x14007b985
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitialize]
mov rax, qword [0x1401fdf60]
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 0x14007b73a
lea rcx, str.Activeds.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
test rax, rax
je 0x14007b9cc
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp dword [rsp + 0x38], 0
je 0x14007b9c3
lea rcx, str.netapi32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rsi, rax
test rax, rax
je 0x14007b9bc
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 0x14007b9bc
mov rax, qword [0x1401fdf60]
mov ecx, dword [rax + 0x102c]
sub ecx, 2
cmp ecx, 1
ja 0x14007b9bc
mov rbx, qword [rsp + 0x60]
test rbx, rbx
je 0x14007b9a2
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitialize]
mov rax, qword [0x1401fdf60]
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 0x14007b9c3
xor r9d, r9d
lea r8, [0x1401fb700]
lea rdx, str.ldapauth.dll_not_found
call fcn.1400208f0
xor edi, edi
jmp 0x14007b8ba
xor r9d, r9d
lea r8, [0x1401fb700]
lea rdx, str.ldapauthnt4.dll_not_found
call fcn.1400208f0
xor edi, edi
jmp 0x14007b9cc
mov rsi, qword [rsp + 0x30]
jmp 0x14007b9c3
cmp edi, 1
je 0x14007b73a
lea rcx, str.Activeds.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
test rax, rax
je 0x14007ba87
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp dword [rsp + 0x38], 0
mov ebx, dword [rsp + 0x3c]
jne 0x14007ba73
test ebx, ebx
jne 0x14007ba73
mov rax, qword [0x1401fdf60]
mov ecx, dword [rax + 0x102c]
sub ecx, 2
cmp ecx, 1
ja 0x14007ba73
mov rdi, qword [rsp + 0x68]
test rdi, rdi
je 0x14007ba59
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitialize]
mov rax, qword [0x1401fdf60]
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 0x14007ba78
xor r9d, r9d
lea r8, [0x1401fb700]
lea rdx, str.ldapauth9x.dll_not_found
call fcn.1400208f0
xor edi, edi
jmp 0x14007ba8b
mov rsi, qword [rsp + 0x30]
cmp edi, 1
jne 0x14007ba90
mov rsi, qword [rsp + 0x30]
jmp 0x14007b73a
mov ebx, dword [rsp + 0x3c]
mov rsi, qword [rsp + 0x30]
mov rax, qword [0x1401fdf60]
cmp byte [rax + 0xeff], 0
je 0x14007bdbf
mov rdi, qword [rsp + 0x48]
test rdi, rdi
je 0x14007baee
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitialize]
mov rax, qword [0x1401fdf60]
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 0x14007ba7d
jmp 0x14007bb06
xor r9d, r9d
lea r8, [0x1401fb700]
lea rdx, str.workgrpdomnt4.dll_not_found
call fcn.1400208f0
xor edi, edi
cmp dword [rsp + 0x38], 0
jne 0x14007bb11
test ebx, ebx
je 0x14007bb54
mov rdi, qword [rsp + 0x50]
test rdi, rdi
je 0x14007bb5f
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitialize]
mov rax, qword [0x1401fdf60]
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 0x14007ba7d
jmp 0x14007bb77
xor r9d, r9d
lea r8, [0x1401fb700]
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 0x14007bbfb
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
test ebx, ebx
je 0x14007bbf2
mov rax, qword [0x1401fdf60]
mov ecx, dword [rax + 0x1030]
sub ecx, 2
cmp ecx, 1
ja 0x14007bbf2
mov rbx, qword [rsp + 0x58]
test rbx, rbx
je 0x14007bcc9
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitialize]
mov rax, qword [0x1401fdf60]
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 0x14007ba7d
lea rcx, str.Activeds.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
test rax, rax
je 0x14007bcfe
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp dword [rsp + 0x38], 0
je 0x14007bd92
lea rcx, str.netapi32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rsi, rax
test rax, rax
je 0x14007bd92
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 0x14007bd92
mov rax, qword [0x1401fdf60]
mov ecx, dword [rax + 0x1030]
sub ecx, 2
cmp ecx, 1
ja 0x14007bd92
mov rbx, qword [rsp + 0x60]
test rbx, rbx
je 0x14007bce6
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitialize]
mov rax, qword [0x1401fdf60]
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 0x14007bd97
xor r9d, r9d
lea r8, [0x1401fb700]
lea rdx, str.ldapauth.dll_not_found
call fcn.1400208f0
xor edi, edi
jmp 0x14007bbfb
xor r9d, r9d
lea r8, [0x1401fb700]
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 0x14007bdc4
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ebx, dword [rsp + 0x38]
test ebx, ebx
jne 0x14007bd88
cmp dword [rsp + 0x3c], ebx
jne 0x14007bd88
mov rax, qword [0x1401fdf60]
mov ecx, dword [rax + 0x1030]
sub ecx, 2
cmp ecx, 1
ja 0x14007bd88
mov rdi, qword [rsp + 0x68]
test rdi, rdi
je 0x14007bda5
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitialize]
mov rax, qword [0x1401fdf60]
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 0x14007bdc8
jmp 0x14007b73a
mov rsi, qword [rsp + 0x30]
cmp edi, 1
je 0x14007b73a
jmp 0x14007bd03
xor r9d, r9d
lea r8, [0x1401fb700]
lea rdx, str.ldapauth9x.dll_not_found
call fcn.1400208f0
xor edi, edi
jmp 0x14007bdc8
mov rsi, qword [rsp + 0x30]
mov ebx, dword [rsp + 0x38]
mov rax, qword [0x1401fdf60]
cmp byte [rax + 0xf95], 0
je 0x14007c1d3
mov rdi, qword [rsp + 0x48]
test rdi, rdi
je 0x14007bf26
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitialize]
mov rax, qword [0x1401fdf60]
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 0x14007bf43
mov r8d, 0x104
lea rdx, [rbp + 0x230]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x14007be76
mov edx, 0x5c
lea rcx, [rbp + 0x230]
call fcn.140133248
lea r8, str.logging.dll
mov edx, 0x104
lea rcx, [rbp + 0x230]
mov byte [rax], 0
call fcn.14013a050
lea rcx, [rbp + 0x230]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rbx, rax
test rax, rax
je 0x14007beb0
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 0x14007bec0
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
test r13, r13
je 0x14007bece
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
test r12, r12
je 0x14007bedc
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
test r15, r15
je 0x14007beea
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
test r14, r14
je 0x14007bef8
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.1401312e0
add rsp, 0x450
pop r15
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
xor r9d, r9d
lea r8, [0x1401fb700]
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 0x14007bf4f
test ebx, ebx
je 0x14007bf92
mov rdi, qword [rsp + 0x50]
test rdi, rdi
je 0x14007bfa1
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitialize]
mov rax, qword [0x1401fdf60]
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 0x14007bfb9
mov rsi, qword [rsp + 0x30]
jmp 0x14007be31
xor r9d, r9d
lea r8, [0x1401fb700]
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 0x14007c03d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
test ebx, ebx
je 0x14007c034
mov rax, qword [0x1401fdf60]
mov ecx, dword [rax + 0x1034]
sub ecx, 2
cmp ecx, 1
ja 0x14007c034
mov rbx, qword [rsp + 0x58]
test rbx, rbx
je 0x14007c10b
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitialize]
mov rax, qword [0x1401fdf60]
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 0x14007bf97
lea rcx, str.Activeds.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
test rax, rax
je 0x14007c140
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp dword [rsp + 0x38], 0
je 0x14007c2a1
lea rcx, str.netapi32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rsi, rax
test rax, rax
je 0x14007c2a1
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 0x14007c2a1
mov rax, qword [0x1401fdf60]
mov ecx, dword [rax + 0x1034]
sub ecx, 2
cmp ecx, 1
ja 0x14007c2a1
mov rbx, qword [rsp + 0x60]
test rbx, rbx
je 0x14007c128
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitialize]
mov rax, qword [0x1401fdf60]
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 0x14007c2a6
xor r9d, r9d
lea r8, [0x1401fb700]
lea rdx, str.ldapauth.dll_not_found
call fcn.1400208f0
xor edi, edi
jmp 0x14007c03d
xor r9d, r9d
lea r8, [0x1401fb700]
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 0x14007c1d3
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp dword [rsp + 0x38], 0
jne 0x14007c1ca
cmp dword [rsp + 0x3c], 0
jne 0x14007c1ca
mov rax, qword [0x1401fdf60]
mov ecx, dword [rax + 0x1034]
sub ecx, 2
cmp ecx, 1
ja 0x14007c1ca
mov rbx, qword [rsp + 0x68]
test rbx, rbx
je 0x14007c2b4
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitialize]
mov rax, qword [0x1401fdf60]
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 0x14007be31
mov r8d, 0x104
lea rdx, [rbp + 0x230]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x14007c218
mov edx, 0x5c
lea rcx, [rbp + 0x230]
call fcn.140133248
lea r8, str.logging.dll
mov edx, 0x104
lea rcx, [rbp + 0x230]
mov byte [rax], 0
call fcn.14013a050
lea rcx, [rbp + 0x230]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rbx, rax
test rax, rax
je 0x14007c252
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 0x14007c262
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
test r13, r13
je 0x14007c270
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
test r12, r12
je 0x14007c27e
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
test r15, r15
je 0x14007c28c
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
test r14, r14
je 0x14007c29a
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, edi
jmp 0x14007befd
mov rsi, qword [rsp + 0x30]
cmp edi, 1
je 0x14007be31
jmp 0x14007c145
xor r9d, r9d
lea r8, [0x1401fb700]
lea rdx, str.ldapauth9x.dll_not_found
call fcn.1400208f0
xor edi, edi
jmp 0x14007c1d3
xor eax, eax
jmp 0x14007bf05