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

Disassembly:
sub esp, 0x5b8
mov eax, dword [0x48a348]
xor eax, esp
mov dword [esp + 0x5b4], eax
mov eax, dword [esp + 0x5bc]
push ebx
push esi
mov dword [esp + 0xc], ecx
push edi
xor edi, edi
lea ecx, [esp + 0x1c0]
mov dword [esp + 0x14], edx
mov dword [esp + 0xc], edi
mov dword [esp + 0x1c], edi
mov dword [esp + 0x18], edi
sub ecx, eax
mov ebx, 1
mov dl, byte [eax]
mov byte [ecx + eax], dl
add eax, ebx
test dl, dl
jne 0x43b282
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push str.netapi32.dll
call esi
cmp eax, edi
jne 0x43b2c3
push str.radmin32.dll
call esi
cmp eax, edi
jne 0x43b2c3
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x5b4]
xor ecx, esp
call fcn.0045dc1f
add esp, 0x5b8
ret
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [esp + 0x28]
push eax
mov dword [esp + 0x2c], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x43b2a9
cmp dword [esp + 0x38], 2
jne 0x43b300
mov eax, dword [esp + 0x2c]
cmp eax, 4
jne 0x43b2f7
mov dword [esp + 0x1c], ebx
jmp 0x43b300
cmp eax, 5
jb 0x43b300
mov dword [esp + 0x18], ebx
push ebp
call fcn.0043a990
mov esi, eax
call fcn.0043aad0
mov edi, eax
call fcn.0043ac10
mov ebx, eax
call fcn.0043acb0
mov ebp, eax
call fcn.0043adf0
mov dword [esp + 0x28], eax
call fcn.0043af30
mov ecx, dword [str.VNCACCESS]
mov edx, dword [0x480c48]
mov dword [esp + 0x24], eax
mov ax, word [0x480c4c]
mov dword [esp + 0x4c4], ecx
mov ecx, dword [str.Administrators]
mov dword [esp + 0x4c8], edx
mov edx, dword [0x480c54]
mov word [esp + 0x4cc], ax
mov eax, dword [0x480c58]
mov dword [esp + 0x2c4], ecx
mov cx, word [0x480c5c]
mov dword [esp + 0x2c8], edx
mov dl, byte [0x480c5e]
mov dword [esp + 0x2cc], eax
mov eax, dword [str.VNCVIEWONLY]
mov word [esp + 0x2d0], cx
mov ecx, dword [0x480c64]
mov byte [esp + 0x2d2], dl
mov edx, dword [0x480c68]
mov dword [esp + 0x3c4], eax
mov dword [esp + 0x3c8], ecx
mov dword [esp + 0x3cc], edx
test esi, esi
je 0x43b3da
lea edx, [esp + 0x4c4]
mov eax, esi
sub edx, esi
mov edi, edi
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x43b3d0
test edi, edi
je 0x43b3fa
lea edx, [esp + 0x2c4]
mov eax, edi
sub edx, edi
lea esp, [esp]
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x43b3f0
test ebx, ebx
je 0x43b41a
lea edx, [esp + 0x3c4]
mov eax, ebx
sub edx, ebx
lea esp, [esp]
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x43b410
lea ecx, [esp + 0x4c4]
call fcn.0043a8f0
lea ecx, [esp + 0x2c4]
call fcn.0043aa30
lea ecx, [esp + 0x3c4]
call fcn.0043ab70
mov ecx, ebp
call fcn.0043ad50
mov ecx, dword [esp + 0x28]
call fcn.0043ae90
mov ecx, dword [esp + 0x24]
call fcn.0043afd0
test esi, esi
je 0x43b479
lea edx, [esp + 0x4c4]
mov eax, esi
sub edx, esi
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x43b466
push esi
call fcn.0045dc91
add esp, 4
test edi, edi
je 0x43b49b
lea edx, [esp + 0x2c4]
mov eax, edi
sub edx, edi
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x43b488
push edi
call fcn.0045dc91
add esp, 4
test ebx, ebx
je 0x43b4c3
lea edx, [esp + 0x3c4]
mov eax, ebx
sub edx, ebx
lea ebx, [ebx]
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x43b4b0
push ebx
call fcn.0045dc91
add esp, 4
mov ecx, 0x47b37f
lea eax, [esp + 0x4c4]
nop
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x43b4f0
test dl, dl
je 0x43b4ec
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x43b4f0
add eax, 2
add ecx, 2
test dl, dl
jne 0x43b4d0
xor eax, eax
jmp 0x43b4f5
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x43ba27
push 0x104
lea eax, [esp + 0xc4]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x43b57f
lea ecx, [esp + 0xc0]
push 0x5c
push ecx
call fcn.0045dc30
add esp, 8
test eax, eax
je 0x43c4f0
mov byte [eax], 0
lea eax, [esp + 0xc0]
dec eax
jmp 0x43b540
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x43b540
mov edx, dword [str.workgrpdomnt4.dll]
mov ecx, dword [0x480c70]
mov dword [eax], edx
mov edx, dword [0x480c74]
mov dword [eax + 4], ecx
mov ecx, dword [0x480c78]
mov dword [eax + 8], edx
mov dx, word [0x480c7c]
mov dword [eax + 0xc], ecx
mov cl, byte [0x480c7e]
mov word [eax + 0x10], dx
mov byte [eax + 0x12], cl
lea edx, [esp + 0xc0]
push edx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x43b6da
push str.CUGP
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0
mov dword [0x4a7808], eax
call dword [sym.imp.ole32.dll_CoInitialize]
mov edx, dword [esp + 0x18]
push ebp
lea eax, [esp + 0x4c8]
push eax
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x1cc]
push ecx
push edx
push eax
call dword [0x4a7808]
mov edi, eax
add esp, 0x14
mov dword [esp + 0x10], edi
call dword [sym.imp.ole32.dll_CoUninitialize]
mov ebx, dword [sym.imp.KERNEL32.dll_FreeLibrary]
push esi
call ebx
cmp edi, 1
je 0x43c2ef
cmp dword [esp + 0x20], 0
jne 0x43b604
cmp dword [esp + 0x1c], 0
je 0x43b711
push 0x104
lea ecx, [esp + 0xc4]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x43b678
lea edx, [esp + 0xc0]
push 0x5c
push edx
call fcn.0045dc30
add esp, 8
test eax, eax
je 0x43c4f0
mov byte [eax], 0
lea eax, [esp + 0xc0]
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x43b642
mov ecx, dword [str._authadmin.dll]
mov edx, dword [0x480c8c]
mov dword [eax], ecx
mov ecx, dword [0x480c90]
mov dword [eax + 4], edx
mov dx, word [0x480c94]
mov dword [eax + 8], ecx
mov cl, byte [0x480c96]
mov word [eax + 0xc], dx
mov byte [eax + 0xe], cl
lea edx, [esp + 0xc0]
push edx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x43b6fd
push str.CUGP
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0
mov dword [0x4a7808], eax
call dword [sym.imp.ole32.dll_CoInitialize]
mov edx, dword [esp + 0x18]
push ebp
lea eax, [esp + 0x4c8]
push eax
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x1cc]
push ecx
push edx
push eax
call dword [0x4a7808]
mov edi, eax
add esp, 0x14
mov dword [esp + 0x10], edi
call dword [sym.imp.ole32.dll_CoUninitialize]
push esi
call ebx
jmp 0x43b711
push 0
push 0x4a7628
push 0x4a6490
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov edi, dword [esp + 0x10]
mov ebx, dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x43b5f2
push 0
push 0x4a7628
push 0x4a6490
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp edi, 1
je 0x43c2ef
call fcn.0043b070
test al, al
je 0x43b80d
cmp dword [esp + 0x1c], 0
je 0x43b80d
cmp ebp, 2
je 0x43b740
cmp ebp, 3
jne 0x43b80d
push 0x104
lea ecx, [esp + 0xc4]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x43b7ad
lea edx, [esp + 0xc0]
push 0x5c
push edx
call fcn.0045dc30
add esp, 8
test eax, eax
je 0x43c4f0
mov byte [eax], 0
lea eax, [esp + 0xc0]
dec eax
mov edi, edi
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x43b780
mov ecx, dword [str.ldapauth.dll]
mov edx, dword [0x480c9c]
mov dword [eax], ecx
mov ecx, dword [0x480ca0]
mov dword [eax + 4], edx
mov dx, word [0x480ca4]
mov dword [eax + 8], ecx
mov word [eax + 0xc], dx
lea eax, [esp + 0xc0]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x43b80d
push str.CUGP
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0
mov dword [0x4a7808], eax
call dword [sym.imp.ole32.dll_CoInitialize]
mov eax, dword [esp + 0x18]
push ebp
lea ecx, [esp + 0x4c8]
push ecx
mov ecx, dword [esp + 0x1c]
lea edx, [esp + 0x1cc]
push edx
push eax
push ecx
call dword [0x4a7808]
mov edi, eax
add esp, 0x14
mov dword [esp + 0x10], edi
call dword [sym.imp.ole32.dll_CoUninitialize]
push esi
call ebx
cmp edi, 1
je 0x43c2ef
call fcn.0043b070
test al, al
je 0x43b91b
cmp dword [esp + 0x20], 0
je 0x43b91b
call fcn.0043b090
test al, al
je 0x43b91b
cmp ebp, 2
je 0x43b849
cmp ebp, 3
jne 0x43b91b
push 0x104
lea edx, [esp + 0xc4]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x43b8bb
lea eax, [esp + 0xc0]
push 0x5c
push eax
call fcn.0045dc30
add esp, 8
test eax, eax
je 0x43c4f0
mov byte [eax], 0
lea eax, [esp + 0xc0]
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x43b887
mov ecx, dword [str.ldapauthnt4.dll]
mov edx, dword [0x480cac]
mov dword [eax], ecx
mov ecx, dword [0x480cb0]
mov dword [eax + 4], edx
mov edx, dword [0x480cb4]
mov dword [eax + 8], ecx
mov cl, byte [0x480cb8]
mov dword [eax + 0xc], edx
mov byte [eax + 0x10], cl
lea edx, [esp + 0xc0]
push edx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x43b91b
push str.CUGP
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0
mov dword [0x4a7808], eax
call dword [sym.imp.ole32.dll_CoInitialize]
mov edx, dword [esp + 0x18]
push ebp
lea eax, [esp + 0x4c8]
push eax
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x1cc]
push ecx
push edx
push eax
call dword [0x4a7808]
mov edi, eax
add esp, 0x14
mov dword [esp + 0x10], edi
call dword [sym.imp.ole32.dll_CoUninitialize]
push esi
call ebx
cmp edi, 1
je 0x43c2ef
call fcn.0043b070
test al, al
je 0x43ba1e
cmp dword [esp + 0x20], 0
jne 0x43ba1e
cmp dword [esp + 0x1c], 0
jne 0x43ba1e
cmp ebp, 2
je 0x43b955
cmp ebp, 3
jne 0x43ba1e
push 0x104
lea ecx, [esp + 0xc4]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x43b9be
lea edx, [esp + 0xc0]
push 0x5c
push edx
call fcn.0045dc30
add esp, 8
test eax, eax
je 0x43c4f0
mov byte [eax], 0
lea eax, [esp + 0xc0]
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x43b993
mov ecx, dword [str.ldapauth9x.dll]
mov edx, dword [0x480cc0]
mov dword [eax], ecx
mov ecx, dword [0x480cc4]
mov dword [eax + 4], edx
mov edx, dword [0x480cc8]
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
lea eax, [esp + 0xc0]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x43ba1e
push str.CUGP
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0
mov dword [0x4a7808], eax
call dword [sym.imp.ole32.dll_CoInitialize]
mov eax, dword [esp + 0x18]
push ebp
lea ecx, [esp + 0x4c8]
push ecx
mov ecx, dword [esp + 0x1c]
lea edx, [esp + 0x1cc]
push edx
push eax
push ecx
call dword [0x4a7808]
mov edi, eax
add esp, 0x14
mov dword [esp + 0x10], edi
call dword [sym.imp.ole32.dll_CoUninitialize]
push esi
call ebx
cmp edi, 1
je 0x43c2ef
mov ecx, 0x47b37f
lea eax, [esp + 0x2c4]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x43ba53
test dl, dl
je 0x43ba4f
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x43ba53
add eax, 2
add ecx, 2
test dl, dl
jne 0x43ba33
xor eax, eax
jmp 0x43ba58
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x43bf9c
push 0x104
lea edx, [esp + 0xc4]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x43badf
lea eax, [esp + 0xc0]
push 0x5c
push eax
call fcn.0045dc30
add esp, 8
test eax, eax
je 0x43c4f0
mov byte [eax], 0
lea eax, [esp + 0xc0]
dec eax
mov edi, edi
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x43baa0
mov ecx, dword [str.workgrpdomnt4.dll]
mov edx, dword [0x480c70]
mov dword [eax], ecx
mov ecx, dword [0x480c74]
mov dword [eax + 4], edx
mov edx, dword [0x480c78]
mov dword [eax + 8], ecx
mov cx, word [0x480c7c]
mov dword [eax + 0xc], edx
mov dl, byte [0x480c7e]
mov word [eax + 0x10], cx
mov byte [eax + 0x12], dl
lea eax, [esp + 0xc0]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x43bb47
push str.CUGP
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0
mov dword [0x4a7808], eax
call dword [sym.imp.ole32.dll_CoInitialize]
mov ecx, dword [esp + 0x28]
push ecx
mov ecx, dword [esp + 0x1c]
lea edx, [esp + 0x2c8]
push edx
mov edx, dword [esp + 0x1c]
lea eax, [esp + 0x1cc]
push eax
push ecx
push edx
call dword [0x4a7808]
add esp, 0x14
mov dword [esp + 0x10], eax
call dword [sym.imp.ole32.dll_CoUninitialize]
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x43bb5b
push 0
push 0x4a7628
push 0x4a6490
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp dword [esp + 0x10], 1
je 0x43c2ef
cmp dword [esp + 0x20], 0
jne 0x43bb78
cmp dword [esp + 0x1c], 0
je 0x43bc68
push 0x104
lea eax, [esp + 0xc4]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x43bbec
lea ecx, [esp + 0xc0]
push 0x5c
push ecx
call fcn.0045dc30
add esp, 8
test eax, eax
je 0x43c4f0
mov byte [eax], 0
lea eax, [esp + 0xc0]
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x43bbb6
mov edx, dword [str._authadmin.dll]
mov ecx, dword [0x480c8c]
mov dword [eax], edx
mov edx, dword [0x480c90]
mov dword [eax + 4], ecx
mov cx, word [0x480c94]
mov dword [eax + 8], edx
mov dl, byte [0x480c96]
mov word [eax + 0xc], cx
mov byte [eax + 0xe], dl
lea eax, [esp + 0xc0]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x43bc54
push str.CUGP
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0
mov dword [0x4a7808], eax
call dword [sym.imp.ole32.dll_CoInitialize]
mov ecx, dword [esp + 0x28]
push ecx
mov ecx, dword [esp + 0x1c]
lea edx, [esp + 0x2c8]
push edx
mov edx, dword [esp + 0x1c]
lea eax, [esp + 0x1cc]
push eax
push ecx
push edx
call dword [0x4a7808]
add esp, 0x14
mov dword [esp + 0x10], eax
call dword [sym.imp.ole32.dll_CoUninitialize]
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x43bc68
push 0
push 0x4a7628
push 0x4a6490
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp dword [esp + 0x10], 1
je 0x43c2ef
call fcn.0043b070
test al, al
je 0x43bd6f
cmp dword [esp + 0x1c], 0
je 0x43bd6f
mov edi, dword [esp + 0x28]
cmp edi, 2
je 0x43bc9d
cmp edi, 3
jne 0x43bd6f
push 0x104
lea eax, [esp + 0xc4]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x43bd0d
lea ecx, [esp + 0xc0]
push 0x5c
push ecx
call fcn.0045dc30
add esp, 8
test eax, eax
je 0x43c4f0
mov byte [eax], 0
lea eax, [esp + 0xc0]
dec eax
jmp 0x43bce0
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x43bce0
mov edx, dword [str.ldapauth.dll]
mov ecx, dword [0x480c9c]
mov dword [eax], edx
mov edx, dword [0x480ca0]
mov dword [eax + 4], ecx
mov cx, word [0x480ca4]
mov dword [eax + 8], edx
mov word [eax + 0xc], cx
lea edx, [esp + 0xc0]
push edx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x43bd6f
push str.CUGP
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0
mov dword [0x4a7808], eax
call dword [sym.imp.ole32.dll_CoInitialize]
mov edx, dword [esp + 0x18]
push edi
lea eax, [esp + 0x2c8]
push eax
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x1cc]
push ecx
push edx
push eax
call dword [0x4a7808]
add esp, 0x14
mov dword [esp + 0x10], eax
call dword [sym.imp.ole32.dll_CoUninitialize]
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp dword [esp + 0x10], 1
je 0x43c2ef
call fcn.0043b070
test al, al
je 0x43be86
cmp dword [esp + 0x20], 0
je 0x43be86
call fcn.0043b090
test al, al
je 0x43be86
mov edi, dword [esp + 0x28]
cmp edi, 2
je 0x43bdb1
cmp edi, 3
jne 0x43be86
push 0x104
lea ecx, [esp + 0xc4]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x43be24
lea edx, [esp + 0xc0]
push 0x5c
push edx
call fcn.0045dc30
add esp, 8
test eax, eax
je 0x43c4f0
mov byte [eax], 0
lea eax, [esp + 0xc0]
dec eax
nop
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x43bdf0
mov ecx, dword [str.ldapauthnt4.dll]
mov edx, dword [0x480cac]
mov dword [eax], ecx
mov ecx, dword [0x480cb0]
mov dword [eax + 4], edx
mov edx, dword [0x480cb4]
mov dword [eax + 8], ecx
mov cl, byte [0x480cb8]
mov dword [eax + 0xc], edx
mov byte [eax + 0x10], cl
lea edx, [esp + 0xc0]
push edx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x43be86
push str.CUGP
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0
mov dword [0x4a7808], eax
call dword [sym.imp.ole32.dll_CoInitialize]
mov edx, dword [esp + 0x18]
push edi
lea eax, [esp + 0x2c8]
push eax
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x1cc]
push ecx
push edx
push eax
call dword [0x4a7808]
add esp, 0x14
mov dword [esp + 0x10], eax
call dword [sym.imp.ole32.dll_CoUninitialize]
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp dword [esp + 0x10], 1
je 0x43c2ef
call fcn.0043b070
test al, al
je 0x43bf91
cmp dword [esp + 0x20], 0
jne 0x43bf91
cmp dword [esp + 0x1c], 0
jne 0x43bf91
mov edi, dword [esp + 0x28]
cmp edi, 2
je 0x43bec6
cmp edi, 3
jne 0x43bf91
push 0x104
lea ecx, [esp + 0xc4]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x43bf2f
lea edx, [esp + 0xc0]
push 0x5c
push edx
call fcn.0045dc30
add esp, 8
test eax, eax
je 0x43c4f0
mov byte [eax], 0
lea eax, [esp + 0xc0]
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x43bf04
mov ecx, dword [str.ldapauth9x.dll]
mov edx, dword [0x480cc0]
mov dword [eax], ecx
mov ecx, dword [0x480cc4]
mov dword [eax + 4], edx
mov edx, dword [0x480cc8]
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
lea eax, [esp + 0xc0]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x43bf91
push str.CUGP
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0
mov dword [0x4a7808], eax
call dword [sym.imp.ole32.dll_CoInitialize]
mov eax, dword [esp + 0x18]
push edi
lea ecx, [esp + 0x2c8]
push ecx
mov ecx, dword [esp + 0x1c]
lea edx, [esp + 0x1cc]
push edx
push eax
push ecx
call dword [0x4a7808]
add esp, 0x14
mov dword [esp + 0x10], eax
call dword [sym.imp.ole32.dll_CoUninitialize]
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp dword [esp + 0x10], 1
je 0x43c2ef
mov ecx, 0x47b37f
lea eax, [esp + 0x3c4]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x43bfc8
test dl, dl
je 0x43bfc4
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x43bfc8
add eax, 2
add ecx, 2
test dl, dl
jne 0x43bfa8
xor eax, eax
jmp 0x43bfcd
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x43c63e
push 0x104
lea edx, [esp + 0xc4]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x43c052
lea eax, [esp + 0xc0]
push 0x5c
push eax
call fcn.0045dc30
add esp, 8
test eax, eax
je 0x43c4f0
mov byte [eax], 0
lea eax, [esp + 0xc0]
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x43c013
mov ecx, dword [str.workgrpdomnt4.dll]
mov edx, dword [0x480c70]
mov dword [eax], ecx
mov ecx, dword [0x480c74]
mov dword [eax + 4], edx
mov edx, dword [0x480c78]
mov dword [eax + 8], ecx
mov cx, word [0x480c7c]
mov dword [eax + 0xc], edx
mov dl, byte [0x480c7e]
mov word [eax + 0x10], cx
mov byte [eax + 0x12], dl
lea eax, [esp + 0xc0]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x43c0ba
push str.CUGP
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0
mov dword [0x4a7808], eax
call dword [sym.imp.ole32.dll_CoInitialize]
mov ecx, dword [esp + 0x24]
push ecx
mov ecx, dword [esp + 0x1c]
lea edx, [esp + 0x3c8]
push edx
mov edx, dword [esp + 0x1c]
lea eax, [esp + 0x1cc]
push eax
push ecx
push edx
call dword [0x4a7808]
add esp, 0x14
mov dword [esp + 0x10], eax
call dword [sym.imp.ole32.dll_CoUninitialize]
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x43c0ce
push 0
push 0x4a7628
push 0x4a6490
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp dword [esp + 0x10], 1
je 0x43c2ef
cmp dword [esp + 0x20], 0
jne 0x43c0eb
cmp dword [esp + 0x1c], 0
je 0x43c1e2
push 0x104
lea eax, [esp + 0xc4]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x43c166
lea ecx, [esp + 0xc0]
push 0x5c
push ecx
call fcn.0045dc30
add esp, 8
test eax, eax
je 0x43c4f0
mov byte [eax], 0
lea eax, [esp + 0xc0]
dec eax
lea esp, [esp]
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x43c130
mov edx, dword [str._authadmin.dll]
mov ecx, dword [0x480c8c]
mov dword [eax], edx
mov edx, dword [0x480c90]
mov dword [eax + 4], ecx
mov cx, word [0x480c94]
mov dword [eax + 8], edx
mov dl, byte [0x480c96]
mov word [eax + 0xc], cx
mov byte [eax + 0xe], dl
lea eax, [esp + 0xc0]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x43c1ce
push str.CUGP
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0
mov dword [0x4a7808], eax
call dword [sym.imp.ole32.dll_CoInitialize]
mov ecx, dword [esp + 0x24]
push ecx
mov ecx, dword [esp + 0x1c]
lea edx, [esp + 0x3c8]
push edx
mov edx, dword [esp + 0x1c]
lea eax, [esp + 0x1cc]
push eax
push ecx
push edx
call dword [0x4a7808]
add esp, 0x14
mov dword [esp + 0x10], eax
call dword [sym.imp.ole32.dll_CoUninitialize]
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x43c1e2
push 0
push 0x4a7628
push 0x4a6490
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp dword [esp + 0x10], 1
je 0x43c2ef
call fcn.0043b070
test al, al
je 0x43c2e4
cmp dword [esp + 0x1c], 0
je 0x43c2e4
mov edi, dword [esp + 0x24]
cmp edi, 2
je 0x43c217
cmp edi, 3
jne 0x43c2e4
push 0x104
lea eax, [esp + 0xc4]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x43c282
lea ecx, [esp + 0xc0]
push 0x5c
push ecx
call fcn.0045dc30
add esp, 8
test eax, eax
je 0x43c4f0
mov byte [eax], 0
lea eax, [esp + 0xc0]
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x43c255
mov edx, dword [str.ldapauth.dll]
mov ecx, dword [0x480c9c]
mov dword [eax], edx
mov edx, dword [0x480ca0]
mov dword [eax + 4], ecx
mov cx, word [0x480ca4]
mov dword [eax + 8], edx
mov word [eax + 0xc], cx
lea edx, [esp + 0xc0]
push edx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x43c2e4
push str.CUGP
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0
mov dword [0x4a7808], eax
call dword [sym.imp.ole32.dll_CoInitialize]
mov edx, dword [esp + 0x18]
push edi
lea eax, [esp + 0x3c8]
push eax
mov eax, dword [esp + 0x1c]
lea ecx, [esp + 0x1cc]
push ecx
push edx
push eax
call dword [0x4a7808]
add esp, 0x14
mov dword [esp + 0x10], eax
call dword [sym.imp.ole32.dll_CoUninitialize]
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp dword [esp + 0x10], 1
jne 0x43c372
push 0x104
lea ecx, [esp + 0xc4]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x43c350
lea edx, [esp + 0xc0]
push 0x5c
push edx
call fcn.0045dc30
mov byte [eax], 0
lea eax, [esp + 0xc8]
add esp, 8
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x43c325
mov ecx, dword [str.logging.dll]
mov edx, dword [0x47cd3c]
mov dword [eax], ecx
mov ecx, dword [0x47cd40]
mov dword [eax + 4], edx
mov dl, byte [0x47cd44]
mov dword [eax + 8], ecx
mov byte [eax + 0xc], dl
lea eax, [esp + 0xc0]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x43c6d8
push str.LOGLOGONUSER
jmp 0x43c6b8
call fcn.0043b070
test al, al
je 0x43c47f
cmp dword [esp + 0x20], 0
je 0x43c47f
call fcn.0043b090
test al, al
je 0x43c47f
mov edi, dword [esp + 0x24]
cmp edi, 2
je 0x43c3a9
cmp edi, 3
jne 0x43c483
push 0x104
lea eax, [esp + 0xc4]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x43c41b
lea ecx, [esp + 0xc0]
push 0x5c
push ecx
call fcn.0045dc30
add esp, 8
test eax, eax
je 0x43c4f0
mov byte [eax], 0
lea eax, [esp + 0xc0]
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x43c3e7
mov edx, dword [str.ldapauthnt4.dll]
mov ecx, dword [0x480cac]
mov dword [eax], edx
mov edx, dword [0x480cb0]
mov dword [eax + 4], ecx
mov ecx, dword [0x480cb4]
mov dword [eax + 8], edx
mov dl, byte [0x480cb8]
mov dword [eax + 0xc], ecx
mov byte [eax + 0x10], dl
lea eax, [esp + 0xc0]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x43c483
push str.CUGP
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0
mov dword [0x4a7808], eax
call dword [sym.imp.ole32.dll_CoInitialize]
mov eax, dword [esp + 0x18]
push edi
lea ecx, [esp + 0x3c8]
push ecx
mov ecx, dword [esp + 0x1c]
lea edx, [esp + 0x1cc]
push edx
push eax
push ecx
call dword [0x4a7808]
add esp, 0x14
mov dword [esp + 0x10], eax
call dword [sym.imp.ole32.dll_CoUninitialize]
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x43c483
mov edi, dword [esp + 0x24]
mov ebx, dword [esp + 0x10]
cmp ebx, 1
je 0x43c59a
call fcn.0043b070
test al, al
je 0x43c591
cmp dword [esp + 0x20], 0
jne 0x43c591
cmp dword [esp + 0x1c], 0
jne 0x43c591
cmp edi, 2
je 0x43c4c1
cmp edi, 3
jne 0x43c591
push 0x104
lea edx, [esp + 0xc4]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x43c52d
lea eax, [esp + 0xc0]
push 0x5c
push eax
call fcn.0045dc30
add esp, 8
test eax, eax
jne 0x43c4f7
xor eax, eax
jmp 0x43c6dc
mov byte [eax], 0
lea eax, [esp + 0xc0]
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x43c502
mov ecx, dword [str.ldapauth9x.dll]
mov edx, dword [0x480cc0]
mov dword [eax], ecx
mov ecx, dword [0x480cc4]
mov dword [eax + 4], edx
mov edx, dword [0x480cc8]
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
lea eax, [esp + 0xc0]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x43c591
push str.CUGP
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0
mov dword [0x4a7808], eax
call dword [sym.imp.ole32.dll_CoInitialize]
mov eax, dword [esp + 0x18]
push edi
lea ecx, [esp + 0x3c8]
push ecx
mov ecx, dword [esp + 0x1c]
lea edx, [esp + 0x1cc]
push edx
push eax
push ecx
call dword [0x4a7808]
mov ebx, eax
add esp, 0x14
mov dword [esp + 0x10], ebx
call dword [sym.imp.ole32.dll_CoUninitialize]
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp ebx, 1
jne 0x43c63e
push 0x104
lea edx, [esp + 0xc4]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x43c5fb
lea eax, [esp + 0xc0]
push 0x5c
push eax
call fcn.0045dc30
mov byte [eax], 0
lea eax, [esp + 0xc8]
add esp, 8
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x43c5d0
mov ecx, dword [str.logging.dll]
mov edx, dword [0x47cd3c]
mov dword [eax], ecx
mov ecx, dword [0x47cd40]
mov dword [eax + 4], edx
mov dl, byte [0x47cd44]
mov dword [eax + 8], ecx
mov byte [eax + 0xc], dl
lea eax, [esp + 0xc0]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x43c634
push str.LOGLOGONUSER
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [esp + 0x14]
push ecx
lea edx, [esp + 0x1c8]
push edx
call eax
add esp, 8
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, 2
jmp 0x43c6dc
push 0x104
lea eax, [esp + 0xc4]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x43c69f
lea ecx, [esp + 0xc0]
push 0x5c
push ecx
call fcn.0045dc30
mov byte [eax], 0
lea eax, [esp + 0xc8]
add esp, 8
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x43c674
mov edx, dword [str.logging.dll]
mov ecx, dword [0x47cd3c]
mov dword [eax], edx
mov edx, dword [0x47cd40]
mov dword [eax + 4], ecx
mov cl, byte [0x47cd44]
mov dword [eax + 8], edx
mov byte [eax + 0xc], cl
lea edx, [esp + 0xc0]
push edx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x43c6d8
push str.LOGFAILEDUSER
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [esp + 0x14]
push ecx
lea edx, [esp + 0x1c8]
push edx
call eax
add esp, 8
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x5c4]
pop ebp
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0045dc1f
add esp, 0x5b8
ret