Function at 0x449d00
Capabilities:
Check for foreground window switch
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x234
xor ecx, ecx
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], ecx
xor edx, edx
mov dword [esp + 0x1c], ecx
xor eax, eax
mov dword [esp + 0x50], edx
mov dword [esp + 0x64], ecx
mov dword [esp + 0x54], edx
mov dword [esp + 0x68], ecx
push ebx
mov dword [esp + 0x5c], edx
mov dword [esp + 0x70], ecx
push esi
mov dword [esp + 0x64], edx
mov dword [esp + 0x78], ecx
xor ebx, ebx
push edi
mov dword [esp + 0x10], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x6c], edx
mov dword [esp + 0x80], ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x2c], ebx
lea ebx, [ebx]
cmp dword [ebx + 0x4958b8], eax
je 0x44a101
mov edi, dword [ebp + 8]
lea esi, [ebx + 0x4958bc]
mov ecx, 3
xor edx, edx
repe cmpsd dword [esi], dword es:[edi]
jne 0x44a094
mov edi, dword [ebp + 8]
mov eax, dword [edi + 8]
mov ecx, dword [edi + 4]
mov edx, dword [edi]
push eax
push ecx
push edx
push str.LASSO__PnPUpdateAdapter:_get_target_bus__d__dev__d__fun__d_
call fcn.0040aab0
mov al, byte [ebp + 0xc]
add esp, 0x10
test al, 8
mov dword [esp + 0x34], 1
je 0x449e09
call fcn.0044ed90
mov esi, dword [ebx + 0x4958d0]
mov ecx, dword [ebx + 0x4958d4]
add esi, 0x7d0
adc ecx, 0
cmp edx, ecx
ja 0x449e09
jb 0x449df2
cmp eax, esi
jae 0x449e09
push 0x1f4
mov ecx, 0x491950
call fcn.00415660
mov dword [esp + 0x40], 1
lea eax, [esp + 0x18]
push eax
push edi
call fcn.004494e0
mov al, byte [ebp + 0xc]
add esp, 8
test al, 4
je 0x449e51
call fcn.0044ed90
mov ecx, 0x491950
mov dword [ebx + 0x4958d0], eax
mov dword [ebx + 0x4958d4], edx
call fcn.00415a20
push edi
call fcn.00452250
push str.Got_Adapter_Arrival__do_not_do_Lasso_operation_yet
call fcn.0040aab0
add esp, 4
jmp 0x44a101
mov esi, dword [ebx + 0x4958c8]
push esi
push str.LASSO__PnPUpdateAdapter:_old_NumOfMonitorsConnected___d
call fcn.0040aab0
push 0
lea ecx, [esp + 0x24]
push ecx
push edi
call fcn.004499e0
push eax
push str.LASSO__PnPUpdateAdapter:_new_NumOfMonitorsConnected___d
mov dword [ebx + 0x4958c8], eax
call fcn.0040aab0
mov ecx, dword [ebx + 0x4958c8]
add esp, 0x1c
xor edi, edi
cmp esi, ecx
je 0x44a058
xor eax, eax
mov edx, dword [esp + eax*8 + 0x1c]
test edx, edx
jne 0x449ea5
inc eax
cmp eax, 2
jb 0x449e95
jmp 0x449eaa
mov edi, 1
test ecx, ecx
jne 0x449fb0
mov eax, dword [ebp + 8]
mov edx, dword [eax + 8]
mov ecx, dword [eax + 4]
push edx
mov edx, dword [eax]
push ecx
push edx
push str.Nothing_connected_on_adapter_bus__d__dev__d__fun__d_
call fcn.0040aab0
add esp, 0x10
test edi, edi
je 0x44a058
xor ebx, ebx
mov esi, 0x4958bc
xor edi, edi
mov edi, edi
cmp ebx, dword [esp + 0x30]
je 0x449f27
mov eax, dword [esi - 4]
test eax, eax
je 0x449f27
mov eax, dword [esi + 8]
mov ecx, dword [esi + 4]
mov edx, dword [esi]
push eax
push ecx
push edx
push str.Lasso:_UpdateAdapter__look_for_other_adapters_device_connection_bus__d__dev__d__fun__d_
call fcn.0040aab0
lea eax, [esp + 0x94]
push eax
push esi
call fcn.004494e0
push 0
lea ecx, [esp + 0xa0]
push ecx
push esi
call fcn.004499e0
add esp, 0x24
test eax, eax
jne 0x449f50
add edi, 0x128
inc ebx
add esi, 0x128
cmp edi, 0x5c8
jb 0x449ee0
push str.Lasso:_UpdateAdapter__look_for_other_adapters__Other_adapter_has_nothing_connected
call fcn.0040aab0
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [esp + 0x14], 1
xor esi, esi
lea ebx, [ebx]
mov eax, dword [esp + esi*8 + 0x1c]
test eax, eax
je 0x449f89
mov edx, dword [esp + 0x28]
cmp dword [esp + esi*8 + 0x18], edx
je 0x449f89
push str.Remove_ext_desltop
call fcn.0040aab0
mov eax, dword [esp + esi*8 + 0x1c]
add esp, 4
push eax
call fcn.00453e90
inc esi
cmp esi, 2
jb 0x449f60
cmp dword [esp + 0x28], 0xffffffff
je 0x44a058
mov ebx, dword [esp + 0x2c]
mov eax, 1
mov dword [esp + 0x10], eax
mov dword [esp + 0x38], eax
jmp 0x44a101
test esi, esi
jne 0x44a058
mov edx, dword [ebp + 8]
lea ecx, [esp + 0x18]
push ecx
push edx
call fcn.00449570
add esp, 8
cmp eax, 2
jne 0x44a058
test edi, edi
jne 0x44a07b
xor ebx, ebx
lea esp, [esp]
cmp dword [esp + ebx*8 + 0x18], 0xffffffff
je 0x44a052
call fcn.004284f0
test eax, eax
je 0x44a006
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0xfa
call esi
call fcn.004284f0
test eax, eax
jne 0x449ff6
mov eax, dword [esp + ebx*8 + 0x18]
push eax
call fcn.00453e20
test eax, eax
je 0x44a052
mov edx, dword [esp + ebx*8 + 0x18]
xor eax, eax
mov ecx, 0x6a
lea edi, [esp + 0x98]
rep stosd dword es:[edi], eax
push eax
lea ecx, [esp + 0x9c]
push ecx
push edx
push eax
mov dword [esp + 0xa8], 0x1a8
call dword [sym.imp.USER32.dll_EnumDisplayDevicesA]
test eax, eax
je 0x44a052
test byte [esp + 0x13c], 1
jne 0x44a06d
inc ebx
cmp ebx, 2
jb 0x449fe0
mov eax, dword [esp + 0x10]
test eax, eax
je 0x44a24b
mov ebx, dword [esp + 0x2c]
jmp 0x44a101
push 0x14
mov ecx, 0x491a60
call fcn.00431dd0
jmp 0x44a058
mov eax, dword [esp + 0x40]
test eax, eax
je 0x44a058
cmp dword [esp + 0x28], 0xffffffff
je 0x44a058
mov dword [esp + 0x10], 1
jmp 0x44a101
lea eax, [esp + 0x48]
push eax
lea esi, [ebx + 0x4958bc]
push esi
call fcn.004494e0
push 0
lea ecx, [esp + 0x54]
push ecx
push esi
call fcn.004499e0
add esp, 0x14
test eax, eax
je 0x44a101
xor eax, eax
jmp 0x44a0c0
mov ecx, dword [esp + eax*8 + 0x4c]
test ecx, ecx
jne 0x44a123
inc eax
cmp eax, 2
jb 0x44a0c0
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x4c]
mov eax, dword [esp + 0x50]
mov dword [esp + 0x70], ecx
mov ecx, dword [esp + 0x54]
mov dword [esp + 0x74], edx
mov edx, dword [esp + 0x58]
mov dword [esp + 0x44], 1
mov dword [esp + 0x78], eax
mov dword [esp + 0x7c], ecx
mov dword [esp + 0x80], edx
mov edx, dword [esp + 0x30]
add ebx, 0x128
inc edx
cmp ebx, 0x5c8
mov dword [esp + 0x30], edx
mov dword [esp + 0x2c], ebx
jae 0x44a155
xor eax, eax
jmp 0x449d80
mov edx, dword [esp + 0x48]
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x50]
mov dword [esp + 0x5c], edx
mov edx, dword [esp + 0x54]
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x58]
mov dword [esp + 0x3c], 1
mov dword [esp + 0x64], ecx
mov dword [esp + 0x68], edx
mov dword [esp + 0x6c], eax
jmp 0x44a101
mov eax, dword [esp + 0x10]
test eax, eax
je 0x44a24b
mov eax, dword [esp + 0x34]
test eax, eax
je 0x44a24b
push str.bNeedsToSwitchPrimaryAndRemove
call fcn.0040aab0
add esp, 4
call fcn.004284f0
test eax, eax
je 0x44a1a0
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
lea esp, [esp]
push 0xfa
call esi
call fcn.004284f0
test eax, eax
jne 0x44a190
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x44a1ec
xor esi, esi
lea ebx, [ebx]
mov eax, dword [esp + esi*8 + 0x60]
test eax, eax
je 0x44a1e4
mov eax, dword [esp + 0x28]
push eax
mov ecx, 0x491a60
call fcn.0042fca0
mov ecx, dword [esp + esi*8 + 0x5c]
push eax
push ecx
mov ecx, 0x491a60
call fcn.0042fca0
push eax
call fcn.00449330
add esp, 8
test eax, eax
jne 0x44a239
inc esi
cmp esi, 2
jb 0x44a1b0
jmp 0x44a24b
mov eax, dword [esp + 0x44]
test eax, eax
je 0x44a24b
xor edi, edi
mov esi, dword [esp + edi*8 + 0x70]
cmp esi, 0xffffffff
je 0x44a231
push esi
call fcn.00453e20
test eax, eax
je 0x44a231
mov edx, dword [esp + 0x28]
push edx
mov ecx, 0x491a60
call fcn.0042fca0
push eax
push esi
mov ecx, 0x491a60
call fcn.0042fca0
push eax
call fcn.00449330
add esp, 8
test eax, eax
jne 0x44a239
inc edi
cmp edi, 2
jb 0x44a1f6
jmp 0x44a24b
mov eax, dword [esp + 0x38]
test eax, eax
je 0x44a24b
mov eax, dword [esp + 0x28]
push eax
call fcn.00453e90
mov eax, dword [esp + 0x14]
test eax, eax
je 0x44a27f
push 0x14
mov ecx, 0x491a60
call fcn.00431dd0
mov esi, dword [ebp + 8]
push esi
push 0
lea ecx, [esp + 0x8c]
push ecx
push 0x10
call fcn.0040aac0
push eax
call fcn.0044c830
add esp, 0x14
jmp 0x44a282
mov esi, dword [ebp + 8]
mov eax, dword [esp + 0x34]
test eax, eax
je 0x44a2ea
mov eax, dword [ebp + 0xc]
test eax, eax
jns 0x44a2ea
lea edx, [esp + 0x18]
push edx
push esi
call fcn.00449570
add esp, 8
cmp eax, 2
jne 0x44a2ea
test esi, esi
je 0x44a2ea
push esi
call fcn.00449290
add esp, 4
test eax, eax
jne 0x44a2ea
push str.LASSO_UPDATE_NOTIFY_CCC.
call fcn.0040aab0
mov eax, dword [0x4929e0]
push eax
lea ecx, [esp + 0x1c]
push ecx
push 0
push 0
push 0x449820
mov dword [esp + 0x2c], 0
call fcn.00423c00
add esp, 0x18
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret