Function at 0x10059ed5
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x10076740]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.1004bb38
mov dword [ebp - 0x14], eax
cmp dword [0x1007bdf0], esi
jne 0x10059fc8
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x10059f55
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x1005a0a8
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x1005a0a8
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1005a0a8
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x1007bdf0], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x1007bdf4], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x1007bdf8], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x1007be00], eax
test eax, eax
je 0x10059fc5
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x1007bdfc], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x10059fed
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x10059fe0
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x1005a002
push 4
pop eax
jmp 0x1005a0aa
cmp dword [ebp - 0x14], esi
je 0x1005a002
push dword [0x1007bdf0]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x10059fe7
mov eax, dword [0x1007bdfc]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x1005a060
cmp dword [0x1007be00], edi
je 0x1005a060
push eax
call ebx
push dword [0x1007be00]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x1005a060
test eax, eax
je 0x1005a060
call ecx
test eax, eax
je 0x1005a055
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x1005a055
test byte [ebp - 8], 1
jne 0x1005a060
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x1005a090
mov eax, dword [0x1007bdf4]
cmp eax, edi
je 0x1005a08d
push eax
call ebx
test eax, eax
je 0x1005a08d
call eax
mov esi, eax
test esi, esi
je 0x1005a08d
mov eax, dword [0x1007bdf8]
cmp eax, edi
je 0x1005a08d
push eax
call ebx
test eax, eax
je 0x1005a08d
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x1007bdf0]
call ebx
test eax, eax
je 0x1005a0a8
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x1005a0aa
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1004901e
mov esp, ebp
pop ebp
ret