Function at 0x414242
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
and dword [ebp - 4], 0
push 0x44f010
call fcn.0041ea20
pop ecx
test eax, eax
jne 0x413fcf
push 0x35
push str.Failed_to_determine_KXRPC_server
push 1
call fcn.0041a819
add esp, 0xc
push 0x35
pop eax
jmp 0x41427b
push 0
push 0x439c14
call fcn.0041b691
pop ecx
pop ecx
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x414007
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x439c20
push 1
call fcn.0041a819
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x41427b
mov eax, dword [ebp + 8]
cmp dword [eax + 0xf88], 0
jne 0x41407b
push str.KXGetLocalGroups95
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x414056
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
push dword [ebp - 4]
push 0x439c4c
push 1
call fcn.0041a819
add esp, 0xc
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [ebp - 4]
jmp 0x41427b
push 0x7d00
call fcn.0041a65d
pop ecx
mov dword [ebp - 0x14], eax
push dword [ebp - 0x14]
push dword [ebp + 0xc]
mov eax, dword [ebp + 8]
add eax, 0x650
push eax
call dword [ebp - 8]
mov dword [ebp - 4], eax
jmp 0x4140eb
push str.KXGetLocalGroups95Ex
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x18], eax
push str.KXFreeBuffer
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0x18], 0
je 0x4140a9
cmp dword [ebp - 0xc], 0
jne 0x4140d5
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
push dword [ebp - 4]
push str.Failed_to_find_modules_in_KX95.DLL
push 1
call fcn.0041a819
add esp, 0xc
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [ebp - 4]
jmp 0x41427b
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 0xc]
mov eax, dword [ebp + 8]
add eax, 0x650
push eax
call dword [ebp - 0x18]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x414248
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 8]
add eax, 0xf74
push eax
call fcn.0041ea20
pop ecx
test eax, eax
je 0x414161
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0xf70]
mov dword [ebp - 0x28], eax
and dword [ebp - 0x24], 0
jmp 0x414130
mov eax, dword [ebp - 0x24]
inc eax
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x28]
add eax, 4
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x24]
cmp eax, dword [0x44f92c]
jae 0x414148
mov eax, dword [ebp - 0x28]
push dword [eax]
call fcn.0041efe8
pop ecx
jmp 0x414120
mov eax, dword [ebp + 8]
push dword [eax + 0xf70]
call fcn.0041efe8
pop ecx
mov eax, dword [ebp + 8]
and dword [eax + 0xf70], 0
push dword [ebp - 0x20]
call fcn.0041f078
pop ecx
mov dword [ebp - 0x1c], eax
push dword [ebp - 0x20]
call fcn.0041ea20
pop ecx
mov ecx, dword [ebp - 0x20]
lea eax, [ecx + eax + 1]
mov dword [ebp - 0x20], eax
push dword [ebp + 0xc]
mov eax, dword [ebp + 8]
add eax, 0xf74
push eax
call fcn.0041eab0
pop ecx
pop ecx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x1c]
mov dword [eax + 0xf6c], ecx
cmp dword [ebp - 0x1c], 0
jbe 0x414233
mov eax, dword [ebp - 0x1c]
shl eax, 2
push eax
call fcn.0041a65d
pop ecx
mov ecx, dword [ebp + 8]
mov dword [ecx + 0xf70], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0xf70]
mov dword [ebp - 0x2c], eax
jmp 0x4141dd
mov eax, dword [ebp - 0x1c]
dec eax
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x2c]
add eax, 4
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x1c], 0
je 0x414233
cmp dword [ebp - 4], 0
jne 0x414233
push 0x40
call fcn.0041a65d
pop ecx
mov ecx, dword [ebp - 0x2c]
mov dword [ecx], eax
push dword [ebp - 0x20]
mov eax, dword [ebp - 0x2c]
push dword [eax]
call fcn.0041eab0
pop ecx
pop ecx
mov eax, dword [ebp + 8]
cmp dword [eax + 0xf88], 0
jne 0x41421e
mov eax, dword [ebp - 0x20]
add eax, 0x101
mov dword [ebp - 0x20], eax
jmp 0x414231
push dword [ebp - 0x20]
call fcn.0041ea20
pop ecx
mov ecx, dword [ebp - 0x20]
lea eax, [ecx + eax + 1]
mov dword [ebp - 0x20], eax
jmp 0x4141cd
mov eax, dword [ebp + 8]
cmp dword [eax + 0xf88], 0
je 0x414246
lea eax, [ebp - 0x14]
push eax
call dword [ebp - 0xc]
jmp 0x41425a
push dword [ebp - 4]
push str.UserGetLocalGroups_failed
push 1
call fcn.0041a819
add esp, 0xc
mov eax, dword [ebp + 8]
cmp dword [eax + 0xf88], 0
jne 0x41426f
push dword [ebp - 0x14]
call fcn.0041efe8
pop ecx
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [ebp - 4]
leave
ret