Function at 0x445670
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x58
mov eax, dword [0x4910e8]
push ebx
push ebp
push esi
xor ebx, ebx
mov esi, 0x10000
test esi, eax
push edi
mov dword [esp + 0x10], ebx
je 0x445698
push str.PowerXpressSwitchiGPUToLDA:_switch_from_iGPU_to_LDA_mode_n
call fcn.0040a4a0
add esp, 4
lea eax, [esp + 0x28]
push eax
call fcn.00443fd0
push 1
call fcn.0044c750
mov eax, dword [0x4910e8]
add esp, 8
test esi, eax
je 0x4456c2
push str.PowerXpressSwitchOperation:_POWER_XPRESS_SWITCH_START_n
call fcn.0040a4a0
add esp, 4
xor eax, eax
mov cl, byte [esp + eax + 0x28]
mov byte [esp + eax + 0x48], cl
inc eax
cmp cl, bl
jne 0x4456c4
xor ecx, ecx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], ecx
push ebx
lea edx, [esp + 0x1c]
mov dword [esp + 0x24], ecx
push edx
lea eax, [esp + 0x50]
mov ebp, 0x10
push eax
mov dword [esp + 0x30], ecx
mov dword [esp + 0x24], ebp
mov dword [esp + 0x28], 0xa
mov dword [esp + 0x2c], ebx
call fcn.0044d670
mov ecx, dword [esp + 0x78]
push ecx
call fcn.00443200
lea edx, [esp + 0x20]
push edx
push str.PX_LDASequence
call fcn.00443530
add esp, 0x18
cmp eax, 1
jne 0x44595b
mov eax, dword [esp + 0x10]
push eax
call fcn.0045f1c6
lea ecx, [esp + 0x14]
push ecx
mov edi, eax
push edi
push str.PX_LDASequence
call fcn.004435a0
add esp, 0x10
cmp eax, 1
je 0x44576f
test dword [0x4910e8], esi
je 0x445952
push str.PowerXpressSwitchiGPUToLDA:_PnP_Query_Failed__n
call fcn.0040a4a0
add esp, 4
jmp 0x445952
lea edx, [esp + 0x28]
push 1
push edx
call fcn.00444cc0
mov ecx, dword [0x48a9e8]
mov edx, dword [0x48a9ec]
sub esp, 8
mov eax, esp
mov dword [eax], ecx
mov ecx, dword [0x48a9f0]
mov dword [eax + 4], edx
mov edx, dword [0x48a9f4]
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
call fcn.00443aa0
add esp, 0x10
call fcn.004420e0
test al, al
jne 0x4457d2
test dword [0x4910e8], esi
je 0x445952
push str.PowerXpressSwitchiGPUToLDA:_Discrete_device_is_not_correctly_enumerated._Skip_the_switch__n
call fcn.0040a4a0
add esp, 4
jmp 0x445952
lea eax, [esp + 0x6c]
push eax
lea ecx, [esp + 0x18]
push ecx
push str.LDA_SUPPORT
mov dword [esp + 0x20], 1
mov dword [esp + 0x78], 4
call fcn.00443610
push edi
push 2
call fcn.00441eb0
call fcn.00443eb0
lea edx, [esp + 0x3c]
push edx
call fcn.00443fd0
push edi
call fcn.00441700
add esp, 0x1c
xor esi, esi
cmp eax, ebx
jbe 0x445952
lea ecx, [eax + eax*2]
lea ecx, [edi + ecx*8 + 0x28]
mov edx, dword [ecx - 4]
cmp edx, 1
jne 0x44583b
cmp dword [ecx], edx
je 0x445848
cmp edx, edx
jne 0x44583b
cmp dword [ecx], ebx
je 0x445896
inc esi
add ecx, 0x18
cmp esi, eax
jb 0x445827
jmp 0x445952
lea edx, [esp + 0x28]
push 2
push edx
call fcn.00444cc0
mov eax, dword [0x4910e8]
add esp, 8
test eax, 0x10000
je 0x445870
push str.PowerXpressSwitchOperation:_POWER_XPRESS_ENABLE_INT_MODEENUM_n
call fcn.0040a4a0
add esp, 4
xor eax, eax
mov cl, byte [esp + eax + 0x28]
mov byte [esp + eax + 0x48], cl
inc eax
cmp cl, bl
jne 0x445872
xor eax, eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x1c], 5
jmp 0x44592f
mov eax, dword [0x4910e8]
mov esi, 0x10000
test esi, eax
je 0x4458b1
push str.PowerXpressSwitchOperation:_POWER_XPRESS_MUX_SELECT_EXT_n
call fcn.0040a4a0
add esp, 4
xor eax, eax
mov cl, byte [esp + eax + 0x28]
mov byte [esp + eax + 0x48], cl
inc eax
cmp cl, bl
jne 0x4458b3
xor eax, eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
push ebx
lea ecx, [esp + 0x1c]
mov dword [esp + 0x24], eax
push ecx
lea edx, [esp + 0x50]
push edx
mov dword [esp + 0x30], eax
mov dword [esp + 0x24], ebp
mov dword [esp + 0x28], 3
mov dword [esp + 0x2c], ebx
call fcn.0044d670
mov eax, dword [0x4910e8]
add esp, 0xc
test esi, eax
je 0x44590b
push str.PowerXpressSwitchOperation:_POWER_XPRESS_ENABLE_EXT_MODEENUM_n
call fcn.0040a4a0
add esp, 4
xor eax, eax
lea ecx, [ecx]
mov cl, byte [esp + eax + 0x28]
mov byte [esp + eax + 0x48], cl
inc eax
cmp cl, bl
jne 0x445910
xor eax, eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x1c], 7
lea ecx, [esp + 0x18]
push ebx
mov dword [esp + 0x24], eax
lea edx, [esp + 0x4c]
push ecx
push edx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x24], ebp
mov dword [esp + 0x30], eax
call fcn.0044d670
add esp, 0xc
push edi
call fcn.0045eab0
add esp, 4
lea eax, [esp + 0x28]
push eax
call fcn.00443fd0
mov esi, eax
mov eax, dword [0x4910e8]
add esp, 4
test eax, 0x10000
je 0x445983
push str.PowerXpressSwitchOperation:_POWER_XPRESS_SWITCH_END_n
call fcn.0040a4a0
add esp, 4
xor eax, eax
mov cl, byte [esp + eax + 0x28]
mov byte [esp + eax + 0x48], cl
inc eax
cmp cl, bl
jne 0x445985
xor ecx, ecx
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], ecx
push ebx
lea edx, [esp + 0x1c]
mov dword [esp + 0x24], ecx
push edx
lea eax, [esp + 0x50]
push eax
mov dword [esp + 0x30], ecx
mov dword [esp + 0x24], ebp
mov dword [esp + 0x28], 0xb
mov dword [esp + 0x2c], ebx
call fcn.0044d670
push ebx
call fcn.0044c750
push esi
call fcn.00442940
add esp, 0x14
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x58
ret