Function at 0x4e7c80
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov dword [ebp - 0x24], 0
call fcn.004e2390
mov dword [ebp - 8], eax
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 4], 0
cmp dword [0x54e724], 0
jne 0x4e7dba
push 0x5227f4
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
jne 0x4e7cd9
xor eax, eax
jmp 0x4e7ed7
push str.MessageBoxW
mov eax, dword [ebp - 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jne 0x4e7cf8
xor eax, eax
jmp 0x4e7ed7
mov ecx, dword [ebp - 0x24]
push ecx
call fcn.004e2300
add esp, 4
mov dword [0x54e724], eax
push 0x5227d8
mov edx, dword [ebp - 0x30]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call fcn.004e2300
add esp, 4
mov dword [0x54e728], eax
push 0x5227c4
mov eax, dword [ebp - 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call fcn.004e2300
add esp, 4
mov dword [0x54e72c], eax
push 0
push 0x58
push str.f:_rtm_vctoolscrt_bld_self_x86crt_srccrtmbox.c
push str.__crtMessageBoxW
push str._get_osplatform_osplatform_
lea ecx, [ebp - 0x18]
push ecx
call fcn.004daf50
add esp, 4
push eax
call fcn.004d3a50
add esp, 0x18
cmp dword [ebp - 0x18], 2
jne 0x4e7dba
push str.GetUserObjectInformationW
mov edx, dword [ebp - 0x30]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
push eax
call fcn.004e2300
add esp, 4
mov dword [0x54e734], eax
cmp dword [0x54e734], 0
je 0x4e7dba
push str.GetProcessWindowStation
mov ecx, dword [ebp - 0x30]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call fcn.004e2300
add esp, 4
mov dword [0x54e730], eax
mov edx, dword [0x54e730]
cmp edx, dword [ebp - 8]
je 0x4e7e1d
mov eax, dword [0x54e734]
cmp eax, dword [ebp - 8]
je 0x4e7e1d
mov ecx, dword [0x54e730]
push ecx
call fcn.004e23a0
add esp, 4
call eax
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x4e7e16
lea edx, [ebp - 0x28]
push edx
push 0xc
lea eax, [ebp - 0x14]
push eax
push 1
mov ecx, dword [ebp - 0x1c]
push ecx
mov edx, dword [0x54e734]
push edx
call fcn.004e23a0
add esp, 4
call eax
test eax, eax
je 0x4e7e16
mov eax, dword [ebp - 0xc]
and eax, 1
jne 0x4e7e1d
mov dword [ebp - 0x2c], 1
cmp dword [ebp - 0x2c], 0
je 0x4e7e6f
push 0
push 0x81
push str.f:_rtm_vctoolscrt_bld_self_x86crt_srccrtmbox.c
push str.__crtMessageBoxW
push str._get_winmajor_winmajor_
lea ecx, [ebp - 4]
push ecx
call fcn.004db130
add esp, 4
push eax
call fcn.004d3a50
add esp, 0x18
cmp dword [ebp - 4], 4
jb 0x4e7e62
mov edx, dword [ebp + 0x10]
or edx, 0x200000
mov dword [ebp + 0x10], edx
jmp 0x4e7e6d
mov eax, dword [ebp + 0x10]
or eax, 0x40000
mov dword [ebp + 0x10], eax
jmp 0x4e7eb6
mov ecx, dword [0x54e728]
cmp ecx, dword [ebp - 8]
je 0x4e7e8e
mov edx, dword [0x54e728]
push edx
call fcn.004e23a0
add esp, 4
call eax
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
je 0x4e7eb6
mov eax, dword [0x54e72c]
cmp eax, dword [ebp - 8]
je 0x4e7eb6
mov ecx, dword [ebp - 0x20]
push ecx
mov edx, dword [0x54e72c]
push edx
call fcn.004e23a0
add esp, 4
call eax
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x20]
push eax
mov ecx, dword [0x54e724]
push ecx
call fcn.004e23a0
add esp, 4
call eax
mov esp, ebp
pop ebp
ret