Function at 0x4351c0
Capabilities:
Access peb ldr_data
Get process heap 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 0x4a0cfd
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x2d8
mov eax, dword [0x4c6180]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x84], esi
mov dword [ebp - 0x9c], esi
mov eax, dword [ebx + 8]
xorps xmm0, xmm0
mov dword [ebp - 0xb8], esi
mov dword [esi], eax
lea eax, [esi + 0x18]
movups xmmword [eax], xmm0
mov byte [eax + 0x10], 0
push 0x40
mov dword [ebp - 0xa8], eax
mov dword [esi + 0x2c], 0
mov dword [ebp - 0xa0], 0
mov dword [ebp - 0x9c], 0
call fcn.00474a76
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 - 0xa0], eax
mov dword [ebp - 4], 0
xorps xmm0, xmm0
movups xmmword [esi + 0x30], xmm0
push 0x40
mov dword [esi + 0x40], 0
mov dword [esi + 0x44], 0
call fcn.00474a76
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 - 0xa0]
mov ecx, dword [esi + 0x44]
mov dword [esi + 0x40], eax
mov eax, dword [ebp - 0x9c]
mov dword [ebp - 0xa0], edx
mov dword [esi + 0x44], eax
mov dword [ebp - 0x9c], ecx
mov byte [ebp - 4], 2
lea eax, [ebp - 0xa0]
push dword [edx + 4]
mov ecx, eax
push eax
call fcn.004392d0
push 0x40
push dword [ebp - 0xa0]
call fcn.00474a68
push 0x40
mov dword [ebp - 0x90], 0
mov dword [ebp - 0x8c], 0
call fcn.00474a76
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 - 0x90], eax
mov byte [ebp - 4], 3
xorps xmm0, xmm0
movups xmmword [esi + 0x48], xmm0
push 0x40
mov dword [esi + 0x58], 0
mov dword [esi + 0x5c], 0
call fcn.00474a76
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 - 0x90]
mov ecx, dword [esi + 0x5c]
mov dword [esi + 0x58], eax
mov eax, dword [ebp - 0x8c]
mov dword [ebp - 0x90], edx
mov dword [esi + 0x5c], eax
mov dword [ebp - 0x8c], ecx
mov byte [ebp - 4], 5
lea eax, [ebp - 0x90]
push dword [edx + 4]
mov ecx, eax
push eax
call fcn.004392d0
push 0x40
push dword [ebp - 0x90]
call fcn.00474a68
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
add esp, 8
xorps xmm0, xmm0
movups xmmword [esi + 0x6c], xmm0
movq qword [esi + 0x7c], xmm0
mov dword [esi + 0x84], 0
push str.PowerGetActualOverlayScheme
push str.powrprof.dll
mov dword [esi + 0x64], 0
mov dword [esi + 0x68], 0
mov dword [esi + 0x88], 0xffffffff
mov dword [esi + 0x60], 2
mov dword [esi + 0x8c], 0
call edi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call esi
mov edx, dword [ebp - 0x84]
push str.PowerGetEffectiveOverlayScheme
push str.powrprof.dll
mov dword [edx + 0x90], eax
call edi
push eax
call esi
mov ecx, dword [ebp - 0x84]
push str.PowerGetOverlaySchemes
push str.powrprof.dll
mov dword [ecx + 0x94], eax
call edi
push eax
call esi
mov ecx, dword [ebp - 0x84]
push str.PowerSetActiveOverlayScheme
push str.powrprof.dll
mov dword [ecx + 0x98], eax
call edi
push eax
call esi
mov ecx, dword [ebp - 0x84]
push str.PowerGetUserConfiguredACPowerMode
push str.powrprof.dll
mov dword [ecx + 0x9c], eax
call edi
push eax
call esi
mov ecx, dword [ebp - 0x84]
push str.PowerSetUserConfiguredACPowerMode
push str.powrprof.dll
mov dword [ecx + 0xa0], eax
call edi
push eax
call esi
mov ecx, dword [ebp - 0x84]
push str.PowerGetUserConfiguredDCPowerMode
push str.powrprof.dll
mov dword [ecx + 0xa4], eax
call edi
push eax
call esi
mov ecx, dword [ebp - 0x84]
push str.PowerSetUserConfiguredDCPowerMode
push str.powrprof.dll
mov dword [ecx + 0xa8], eax
call edi
push eax
call esi
mov ecx, dword [ebp - 0x84]
mov dword [ebp - 0xb4], 0x436bd0
mov dword [ecx + 0xac], eax
lea eax, [ecx + 4]
mov dword [ebp - 0xb0], ecx
push eax
lea eax, [ebp - 0xb4]
push eax
push 2
push 0x4a66b0
call dword [sym.imp.POWRPROF.dll_PowerSettingRegisterNotification]
lea eax, [ebp - 0x2e8]
push eax
call fcn.00429420
mov ecx, 0x45
lea edi, [ebp - 0x1d0]
mov esi, eax
add esp, 4
rep movsd dword es:[edi], dword [esi]
cmp dword [ebp - 0x1c4], 0x65f4
jb 0x43552b
mov ecx, dword [ebp - 0x84]
lea eax, [ecx + 8]
push eax
mov eax, dword [ecx + 0xa0]
call eax
mov eax, dword [ebp - 0xa8]
push eax
mov eax, dword [ebp - 0x84]
mov eax, dword [eax + 0xa8]
call eax
jmp 0x435799
push str.ActiveOverlayAcPowerScheme
push str.SYSTEMCurrentControlSetControlPowerUserPowerSchemes
lea edx, [ebp - 0xa4]
mov dword [ebp - 0xa4], reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0xac]
call fcn.00427e50
push str.ActiveOverlayDcPowerScheme
mov byte [ebp - 4], 6
lea edx, [ebp - 0xa4]
push str.SYSTEMCurrentControlSetControlPowerUserPowerSchemes
lea ecx, [ebp - 0x9c]
mov dword [ebp - 0xa4], reloc.OLEAUT32.dll_SysReAllocString
call fcn.00427e50
add esp, 0x10
mov byte [ebp - 4], 7
mov edi, dword [ebp - 0xac]
cmp dword [edi - 0xc], 0
je 0x435672
lea ecx, [ebp - 0x80]
call fcn.00429860
mov byte [ebp - 4], 8
mov eax, edi
cmp word [edi], 0
je 0x4355ad
add eax, 2
cmp word [eax], 0
jne 0x4355a4
push eax
push edi
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x80]
call fcn.0042a570
lea ecx, [ebp - 0x80]
mov byte [ebp - 4], 7
call fcn.004297a0
cmp dword [ebp - 0x18], 0xf
lea ecx, [ebp - 0x89]
push ecx
lea ecx, [ebp - 0x8a]
push ecx
lea ecx, [ebp - 0x8b]
push ecx
lea ecx, [ebp - 0x8c]
push ecx
lea ecx, [ebp - 0x8d]
push ecx
lea ecx, [ebp - 0x8e]
push ecx
lea ecx, [ebp - 0x8f]
push ecx
lea ecx, [ebp - 0x90]
push ecx
lea ecx, [ebp - 0x92]
push ecx
lea ecx, [ebp - 0x94]
push ecx
lea ecx, [ebp - 0x98]
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.0043ad00
mov eax, dword [ebp - 0x84]
add esp, 0x34
movups xmm0, xmmword [ebp - 0x98]
mov ecx, dword [ebp - 0x18]
movups xmmword [eax + 8], xmm0
cmp ecx, 0xf
jbe 0x435672
mov edx, dword [ebp - 0x2c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x435668
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4357bf
push ecx
push edx
call fcn.00474a68
add esp, 8
mov esi, dword [ebp - 0x9c]
mov edx, dword [ebp - 0x84]
mov ecx, dword [esi - 0xc]
test ecx, ecx
setne al
mov byte [edx + 0x28], al
test ecx, ecx
je 0x43576a
lea ecx, [ebp - 0x80]
call fcn.00429860
mov byte [ebp - 4], 9
mov eax, esi
cmp word [esi], 0
je 0x4356ae
add eax, 2
cmp word [eax], 0
jne 0x4356a5
push eax
push esi
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x80]
call fcn.0042a570
lea ecx, [ebp - 0x80]
call fcn.004297a0
cmp dword [ebp - 0x18], 0xf
lea ecx, [ebp - 0x89]
push ecx
lea ecx, [ebp - 0x8a]
push ecx
lea ecx, [ebp - 0x8b]
push ecx
lea ecx, [ebp - 0x8c]
push ecx
lea ecx, [ebp - 0x8d]
push ecx
lea ecx, [ebp - 0x8e]
push ecx
lea ecx, [ebp - 0x8f]
push ecx
lea ecx, [ebp - 0x90]
push ecx
lea ecx, [ebp - 0x92]
push ecx
lea ecx, [ebp - 0x94]
push ecx
lea ecx, [ebp - 0x98]
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.0043ad00
mov eax, dword [ebp - 0xa8]
add esp, 0x34
movups xmm0, xmmword [ebp - 0x98]
mov ecx, dword [ebp - 0x18]
movups xmmword [eax], xmm0
cmp ecx, 0xf
jbe 0x43576a
mov edx, dword [ebp - 0x2c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x435760
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4357c4
push ecx
push edx
call fcn.00474a68
add esp, 8
lea edx, [esi - 0x10]
or esi, 0xffffffff
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x435784
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add edi, 0xfffffff0
lock xadd dword [edi + 0xc], esi
dec esi
test esi, esi
jg 0x435799
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x84]
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.00474a5a
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret 4
call fcn.0047a0cf
call fcn.0047a0cf
int3