Function at 0x49f610
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov dword [ebp - 0x24], 0
call fcn.004873f9
mov dword [ebp - 8], eax
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 4], 0
cmp dword [0x4f5d18], 0
jne 0x49f751
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
jne 0x49f670
xor eax, eax
jmp 0x49f8a5
push 0x4c183c
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 0x49f68f
xor eax, eax
jmp 0x49f8a5
mov ecx, dword [ebp - 0x24]
push ecx
call fcn.0048738b
add esp, 4
mov dword [0x4f5d18], eax
push 0x4bd390
mov edx, dword [ebp - 0x30]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call fcn.0048738b
add esp, 4
mov dword [0x4f5d1c], eax
push 0x4bd37c
mov eax, dword [ebp - 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call fcn.0048738b
add esp, 4
mov dword [0x4f5d20], eax
push 0
push 0x58
push str.f:_sp_vctoolscrt_bld_self_x86crt_srccrtmbox.c
push str.__crtMessageBoxW
push str._get_osplatform_osplatform_
lea ecx, [ebp - 0x18]
push ecx
call fcn.0047f8bc
add esp, 4
push eax
call fcn.00480a81
add esp, 0x18
cmp dword [ebp - 0x18], 2
jne 0x49f751
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.0048738b
add esp, 4
mov dword [0x4f5d28], eax
cmp dword [0x4f5d28], 0
je 0x49f751
push str.GetProcessWindowStation
mov ecx, dword [ebp - 0x30]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call fcn.0048738b
add esp, 4
mov dword [0x4f5d24], eax
mov edx, dword [0x4f5d24]
cmp edx, dword [ebp - 8]
je 0x49f7c8
mov eax, dword [0x4f5d28]
cmp eax, dword [ebp - 8]
je 0x49f7c8
mov ecx, dword [0x4f5d24]
push ecx
call fcn.00487402
add esp, 4
mov dword [ebp - 0x34], eax
mov edx, dword [0x4f5d28]
push edx
call fcn.00487402
add esp, 4
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x34], 0
je 0x49f7c8
cmp dword [ebp - 0x38], 0
je 0x49f7c8
call dword [ebp - 0x34]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x49f7c1
lea eax, [ebp - 0x28]
push eax
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
mov edx, dword [ebp - 0x1c]
push edx
call dword [ebp - 0x38]
test eax, eax
je 0x49f7c1
mov eax, dword [ebp - 0xc]
and eax, 1
jne 0x49f7c8
mov dword [ebp - 0x2c], 1
cmp dword [ebp - 0x2c], 0
je 0x49f81a
push 0
push 0x88
push str.f:_sp_vctoolscrt_bld_self_x86crt_srccrtmbox.c
push str.__crtMessageBoxW
push str._get_winmajor_winmajor_
lea ecx, [ebp - 4]
push ecx
call fcn.0047f8f3
add esp, 4
push eax
call fcn.00480a81
add esp, 0x18
cmp dword [ebp - 4], 4
jb 0x49f80d
mov edx, dword [ebp + 0x10]
or edx, 0x200000
mov dword [ebp + 0x10], edx
jmp 0x49f818
mov eax, dword [ebp + 0x10]
or eax, 0x40000
mov dword [ebp + 0x10], eax
jmp 0x49f875
mov ecx, dword [0x4f5d1c]
cmp ecx, dword [ebp - 8]
je 0x49f843
mov edx, dword [0x4f5d1c]
push edx
call fcn.00487402
add esp, 4
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0
je 0x49f843
call dword [ebp - 0x3c]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
je 0x49f875
mov eax, dword [0x4f5d20]
cmp eax, dword [ebp - 8]
je 0x49f875
mov ecx, dword [0x4f5d20]
push ecx
call fcn.00487402
add esp, 4
mov dword [ebp - 0x40], eax
cmp dword [ebp - 0x40], 0
je 0x49f875
mov edx, dword [ebp - 0x20]
push edx
call dword [ebp - 0x40]
mov dword [ebp - 0x20], eax
mov eax, dword [0x4f5d18]
push eax
call fcn.00487402
add esp, 4
mov dword [ebp - 0x44], eax
cmp dword [ebp - 0x44], 0
je 0x49f8a3
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x20]
push ecx
call dword [ebp - 0x44]
jmp 0x49f8a5
xor eax, eax
mov esp, ebp
pop ebp
ret