Function at 0x42acd0
Capabilities:
Create process on windows
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x9c
mov dword [ebp - 0x98], 0
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x9c], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0x44], 0x30
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x94], 0
mov dword [ebp - 0x30], 0
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 0x28], eax
push 0x46e298
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 0x34], eax
push str.WTSGetActiveConsoleSessionId
mov eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0xc], eax
push str.WTSQueryUserToken
mov ecx, dword [ebp - 0x34]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x14], eax
push str.WTSEnumerateSessionsA
mov edx, dword [ebp - 0x34]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x48], eax
push str.WTSQuerySessionInformationA
mov eax, dword [ebp - 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x94], eax
push str.WTSFreeMemory
mov ecx, dword [ebp - 0x34]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0xc], 0
je 0x42adf3
cmp dword [ebp - 0x14], 0
je 0x42adf3
cmp dword [ebp - 0x48], 0
je 0x42adf3
cmp dword [ebp - 0x94], 0
je 0x42adf3
cmp dword [ebp - 0x10], 0
jne 0x42ae0e
mov edx, dword [ebp - 0x28]
push edx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [ebp - 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor eax, eax
jmp 0x42b060
lea ecx, [ebp - 0x40]
push ecx
lea edx, [ebp - 0x98]
push edx
push 1
push 0
push 0
call dword [ebp - 0x48]
test eax, eax
je 0x42b049
mov dword [ebp - 0x3c], 0
jmp 0x42ae3c
mov eax, dword [ebp - 0x3c]
add eax, 1
mov dword [ebp - 0x3c], eax
mov ecx, dword [ebp - 0x3c]
cmp ecx, dword [ebp - 0x40]
jae 0x42b03f
cmp dword [0x4ba0c8], 0
je 0x42ae65
mov edx, dword [ebp - 0x3c]
imul edx, edx, 0xc
mov eax, dword [ebp - 0x98]
cmp dword [eax + edx], 0
jne 0x42ae65
jmp 0x42ae33
lea ecx, [ebp - 0x2c]
push ecx
lea edx, [ebp - 4]
push edx
push 5
mov eax, dword [ebp - 0x3c]
imul eax, eax, 0xc
mov ecx, dword [ebp - 0x98]
mov edx, dword [ecx + eax]
push edx
push 0
call dword [ebp - 0x94]
test eax, eax
jne 0x42ae9f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.WTSQuerySessionInformation_FAILED_ERROR_:_d
call fcn.00428bf0
add esp, 8
cmp dword [ebp - 4], 0
je 0x42aeb5
mov eax, dword [ebp - 4]
push eax
call fcn.00445950
add esp, 4
test eax, eax
jne 0x42aec8
mov ecx, dword [ebp - 4]
push ecx
call dword [ebp - 0x10]
mov dword [ebp - 4], 0
jmp 0x42ae33
mov edx, dword [ebp - 4]
push edx
call dword [ebp - 0x10]
mov dword [ebp - 4], 0
lea eax, [ebp - 0x38]
push eax
mov ecx, dword [ebp - 0x3c]
imul ecx, ecx, 0xc
mov edx, dword [ebp - 0x98]
mov eax, dword [edx + ecx]
push eax
call dword [ebp - 0x14]
test eax, eax
jne 0x42af05
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.WTSQueryUserToken_FAILED_ERROR_:_d
call fcn.00428bf0
add esp, 8
lea ecx, [ebp - 0x9c]
push ecx
push 1
push 1
push 0
push 0x2000000
mov edx, dword [ebp - 0x38]
push edx
call dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
test eax, eax
jne 0x42af39
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.DuplicateTokenEx_FAILED_ERROR_:_d
call fcn.00428bf0
add esp, 8
push 0x44
push 0
lea eax, [ebp - 0x90]
push eax
call fcn.004456b0
add esp, 0xc
mov dword [ebp - 0x90], 0x44
mov dword [ebp - 0x88], str.winsta0default
push 0
mov ecx, dword [ebp - 0x9c]
push ecx
lea edx, [ebp - 8]
push edx
call sub.USERENV.dll_CreateEnvironmentBlock
test eax, eax
jne 0x42af83
mov eax, dword [ebp - 0x44]
or eax, 0x400
mov dword [ebp - 0x44], eax
jmp 0x42af8a
mov dword [ebp - 8], 0
push 0x10
push 0
lea ecx, [ebp - 0x24]
push ecx
call fcn.004456b0
add esp, 0xc
lea edx, [ebp - 0x24]
push edx
lea eax, [ebp - 0x90]
push eax
push 0
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp - 0x44]
push edx
push 0
push 0
push 0
push 0x46e3a4
push str.C:medent_binFaxService.exe
mov eax, dword [ebp - 0x9c]
push eax
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserA]
test eax, eax
jne 0x42afe6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CreateProcessAsUser_FAILED_ERROR_:_d
call fcn.00428bf0
add esp, 8
jmp 0x42afed
mov dword [ebp - 0x30], 1
cmp dword [ebp - 0x9c], 0
je 0x42b00d
mov ecx, dword [ebp - 0x9c]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x9c], 0
cmp dword [ebp - 0x38], 0
je 0x42b024
mov edx, dword [ebp - 0x38]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x38], 0
cmp dword [ebp - 8], 0
je 0x42b03a
mov eax, dword [ebp - 8]
push eax
call sub.USERENV.dll_DestroyEnvironmentBlock
mov dword [ebp - 8], 0
jmp 0x42ae33
mov ecx, dword [ebp - 0x98]
push ecx
call dword [ebp - 0x10]
mov edx, dword [ebp - 0x28]
push edx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [ebp - 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [ebp - 0x30]
mov esp, ebp
pop ebp
ret