Function at 0x431720
Capabilities:
Access peb ldr_data
Get process heap flags
Get process heap force flags
Link many functions at runtime

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49c7ed
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x2e0
mov eax, dword [0x4c0180]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x1a0], edi
mov dword [ebp - 0x19c], edi
mov eax, dword [ebx + 8]
xorps xmm0, xmm0
mov dword [ebp - 0x1d4], edi
mov dword [edi], eax
lea eax, [edi + 0x18]
movups xmmword [eax], xmm0
mov byte [eax + 0x10], 0
push 0x40
mov dword [ebp - 0x1c8], eax
mov dword [edi + 0x2c], 0
mov dword [ebp - 0x1a8], 0
mov dword [ebp - 0x1a4], 0
call fcn.00470c26
add esp, 4
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [ebp - 0x1a8], eax
lea eax, [edi + 0x30]
mov dword [ebp - 4], 0
mov dword [ebp - 0x19c], eax
lea esi, [eax + 0x10]
xorps xmm0, xmm0
mov dword [ebp - 0x19c], esi
movups xmmword [eax], xmm0
push 0x40
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.00470c26
mov edx, eax
add esp, 4
mov dword [edx], edx
mov dword [edx + 4], edx
mov dword [edx + 8], edx
mov word [edx + 0xc], 0x101
mov eax, dword [ebp - 0x1a8]
mov dword [esi], eax
mov ecx, dword [esi + 4]
mov eax, dword [ebp - 0x1a4]
mov dword [ebp - 0x1a8], edx
mov dword [esi + 4], eax
mov dword [ebp - 0x1a4], ecx
mov byte [ebp - 4], 2
lea eax, [ebp - 0x1a8]
push dword [edx + 4]
mov ecx, eax
push eax
call fcn.004359f0
push 0x40
push dword [ebp - 0x1a8]
call fcn.00470c18
push 0x40
mov dword [ebp - 0x1c0], 0
mov dword [ebp - 0x1bc], 0
call fcn.00470c26
add esp, 0xc
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [ebp - 0x1c0], eax
lea eax, [edi + 0x48]
mov byte [ebp - 4], 3
mov dword [ebp - 0x19c], eax
lea esi, [eax + 0x10]
xorps xmm0, xmm0
mov dword [ebp - 0x19c], esi
movups xmmword [eax], xmm0
push 0x40
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.00470c26
mov edx, eax
add esp, 4
mov dword [edx], edx
mov dword [edx + 4], edx
mov dword [edx + 8], edx
mov word [edx + 0xc], 0x101
mov eax, dword [ebp - 0x1c0]
mov dword [esi], eax
mov ecx, dword [esi + 4]
mov eax, dword [ebp - 0x1bc]
mov dword [ebp - 0x1c0], edx
mov dword [esi + 4], eax
mov dword [ebp - 0x1bc], ecx
mov byte [ebp - 4], 5
lea eax, [ebp - 0x1c0]
push dword [edx + 4]
mov ecx, eax
push eax
call fcn.004359f0
push 0x40
push dword [ebp - 0x1c0]
call fcn.00470c18
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
add esp, 8
xorps xmm0, xmm0
movups xmmword [edi + 0x6c], xmm0
movq qword [edi + 0x7c], xmm0
mov dword [edi + 0x84], 0
push str.PowerGetActualOverlayScheme
push str.powrprof.dll
mov dword [edi + 0x64], 0
mov dword [edi + 0x68], 0
mov dword [edi + 0x88], 0xffffffff
mov dword [edi + 0x60], 2
mov dword [edi + 0x8c], 0
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.PowerGetEffectiveOverlayScheme
push str.powrprof.dll
mov dword [edi + 0x90], eax
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.PowerGetOverlaySchemes
push str.powrprof.dll
mov dword [edi + 0x94], eax
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.PowerSetActiveOverlayScheme
push str.powrprof.dll
mov dword [edi + 0x98], eax
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.PowerGetUserConfiguredACPowerMode
push str.powrprof.dll
mov dword [edi + 0x9c], eax
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.PowerSetUserConfiguredACPowerMode
push str.powrprof.dll
mov dword [edi + 0xa0], eax
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.PowerGetUserConfiguredDCPowerMode
push str.powrprof.dll
mov dword [edi + 0xa4], eax
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.PowerSetUserConfiguredDCPowerMode
push str.powrprof.dll
mov dword [edi + 0xa8], eax
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [edi + 0xac], eax
mov dword [ebp - 0x1d0], 0x433300
mov dword [ebp - 0x1cc], edi
lea eax, [edi + 4]
push eax
lea eax, [ebp - 0x1d0]
push eax
push 2
push 0x4a2660
call dword [sym.imp.POWRPROF.dll_PowerSettingRegisterNotification]
push str.ntdll.dll
call esi
test eax, eax
je 0x431a87
push str.RtlGetVersion
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x431a87
push 0x110
lea eax, [ebp - 0x194]
push 0
push eax
call fcn.00473110
add esp, 0xc
mov dword [ebp - 0x198], 0x114
lea eax, [ebp - 0x198]
push eax
call esi
test eax, eax
je 0x431a9d
push 0x114
lea eax, [ebp - 0x198]
push 0
push eax
call fcn.00473110
add esp, 0xc
mov ecx, 0x45
lea edi, [ebp - 0x2f0]
lea esi, [ebp - 0x198]
rep movsd dword es:[edi], dword [esi]
cmp dword [ebp - 0x2e4], 0x65f4
jb 0x431ae8
mov ecx, dword [ebp - 0x1a0]
lea eax, [ecx + 8]
push eax
mov eax, dword [ecx + 0xa0]
call eax
mov edx, dword [ebp - 0x1a0]
mov eax, dword [ebp - 0x1c8]
push eax
mov eax, dword [edx + 0xa8]
call eax
jmp 0x431d62
push str.ActiveOverlayAcPowerScheme
push str.SYSTEMCurrentControlSetControlPowerUserPowerSchemes
lea edx, [ebp - 0x1c4]
mov dword [ebp - 0x1c4], reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0x1a4]
call fcn.00423ec0
push str.ActiveOverlayDcPowerScheme
mov byte [ebp - 4], 6
lea edx, [ebp - 0x1c4]
push str.SYSTEMCurrentControlSetControlPowerUserPowerSchemes
lea ecx, [ebp - 0x19c]
mov dword [ebp - 0x1c4], reloc.OLEAUT32.dll_SysReAllocString
call fcn.00423ec0
add esp, 0x10
mov byte [ebp - 4], 7
mov edi, dword [ebp - 0x1a4]
cmp dword [edi - 0xc], 0
je 0x431c2f
lea ecx, [ebp - 0x80]
call fcn.004254b0
mov byte [ebp - 4], 8
mov eax, edi
cmp word [edi], 0
je 0x431b6a
add eax, 2
cmp word [eax], 0
jne 0x431b61
push eax
push edi
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x80]
call fcn.004261c0
lea ecx, [ebp - 0x80]
mov byte [ebp - 4], 7
call fcn.004253f0
cmp dword [ebp - 0x18], 0xf
lea ecx, [ebp - 0x1a9]
push ecx
lea ecx, [ebp - 0x1aa]
push ecx
lea ecx, [ebp - 0x1ab]
push ecx
lea ecx, [ebp - 0x1ac]
push ecx
lea ecx, [ebp - 0x1ad]
push ecx
lea ecx, [ebp - 0x1ae]
push ecx
lea ecx, [ebp - 0x1af]
push ecx
lea ecx, [ebp - 0x1b0]
push ecx
lea ecx, [ebp - 0x1b2]
push ecx
lea ecx, [ebp - 0x1b4]
push ecx
lea ecx, [ebp - 0x1b8]
push ecx
lea eax, [ebp - 0x2c]
cmova eax, dword [ebp - 0x2c]
push str._8x__4hx__4hx__2hhx_2hhx__2hhx_2hhx_2hhx_2hhx_2hhx_2hhx
push eax
call fcn.00437510
mov eax, dword [ebp - 0x1a0]
add esp, 0x34
movups xmm0, xmmword [ebp - 0x1b8]
mov ecx, dword [ebp - 0x18]
movups xmmword [eax + 8], xmm0
cmp ecx, 0xf
jbe 0x431c2f
mov edx, dword [ebp - 0x2c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x431c25
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x431d88
push ecx
push edx
call fcn.00470c18
add esp, 8
mov esi, dword [ebp - 0x19c]
mov edx, dword [ebp - 0x1a0]
mov ecx, dword [esi - 0xc]
test ecx, ecx
setne al
mov byte [edx + 0x28], al
test ecx, ecx
je 0x431d2b
lea ecx, [ebp - 0x80]
call fcn.004254b0
mov byte [ebp - 4], 9
mov eax, esi
cmp word [esi], 0
je 0x431c6b
add eax, 2
cmp word [eax], 0
jne 0x431c62
push eax
push esi
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x80]
call fcn.004261c0
lea ecx, [ebp - 0x80]
mov byte [ebp - 4], 7
call fcn.004253f0
cmp dword [ebp - 0x18], 0xf
lea ecx, [ebp - 0x1a9]
push ecx
lea ecx, [ebp - 0x1aa]
push ecx
lea ecx, [ebp - 0x1ab]
push ecx
lea ecx, [ebp - 0x1ac]
push ecx
lea ecx, [ebp - 0x1ad]
push ecx
lea ecx, [ebp - 0x1ae]
push ecx
lea ecx, [ebp - 0x1af]
push ecx
lea ecx, [ebp - 0x1b0]
push ecx
lea ecx, [ebp - 0x1b2]
push ecx
lea ecx, [ebp - 0x1b4]
push ecx
lea ecx, [ebp - 0x1b8]
push ecx
lea eax, [ebp - 0x2c]
cmova eax, dword [ebp - 0x2c]
push str._8x__4hx__4hx__2hhx_2hhx__2hhx_2hhx_2hhx_2hhx_2hhx_2hhx
push eax
call fcn.00437510
mov eax, dword [ebp - 0x1c8]
add esp, 0x34
movups xmm0, xmmword [ebp - 0x1b8]
mov ecx, dword [ebp - 0x18]
movups xmmword [eax], xmm0
cmp ecx, 0xf
jbe 0x431d2b
mov edx, dword [ebp - 0x2c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x431d21
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x431d8d
push ecx
push edx
call fcn.00470c18
add esp, 8
lea edx, [esi - 0x10]
mov byte [ebp - 4], 6
or esi, 0xffffffff
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x431d49
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 5
add edi, 0xfffffff0
lock xadd dword [edi + 0xc], esi
dec esi
test esi, esi
jg 0x431d62
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x1a0]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00470c0a
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 4
call fcn.0047627f
call fcn.0047627f
int3