Function at 0x507380
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push ebx
push esi
push edi
push dword [0x635f00]
push 0x28
call sym.SystemInformer.exe_PhCreateObject
mov esi, eax
push 0x40
push 4
push dword [0x636044]
mov dword [esi], 8
mov dword [esi + 4], 0x501210
mov dword [esi + 8], 0x501230
mov dword [esi + 0xc], 0x10
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov ecx, dword [esi + 0xc]
shl ecx, 2
push ecx
push 0xff
push eax
mov dword [esi + 0x10], eax
call fcn.005826f0
mov eax, dword [esi + 0xc]
add esp, 0xc
mov dword [esi + 0x14], eax
shl eax, 4
push eax
push 4
push dword [0x636044]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
push dword [0x635f00]
mov dword ds:[esi + 0x18], eax
push 0x28
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0xffffffff
mov dword [esi + 0x24], 0
mov dword [0x637bec], esi
call sym.SystemInformer.exe_PhCreateObject
mov esi, eax
push 0x40
push 4
push dword [0x636044]
mov dword [esi], 0xc
mov dword [esi + 4], 0x509ec0
mov dword [esi + 8], 0x509ef0
mov dword [esi + 0xc], 0x10
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov ecx, dword [esi + 0xc]
shl ecx, 2
push ecx
push 0xff
push eax
mov dword [esi + 0x10], eax
call fcn.005826f0
mov eax, dword ds:[esi + 0xc]
add esp, 0xc
mov dword [esi + 0x14], eax
lea eax, [eax + eax*4]
shl eax, 2
push eax
push 4
push dword [0x636044]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
push 0x800
push 0
push str.uxtheme.dll
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0xffffffff
mov dword [esi + 0x24], 0
mov dword [0x637bd0], esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
je 0x5074c2
mov edi, esi
jmp 0x50750a
push 0x200
push 0
push str.uxtheme.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
je 0x5074de
mov edi, esi
jmp 0x50750a
cmp dword [0x62fbb0], 0x3e
jae 0x5077ca
push 0
push 0
push str.uxtheme.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
je 0x5077ca
mov edi, eax
mov ebx, 0x5a4d
cmp word [esi], bx
jne 0x507559
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x507559
jmp 0x507520
cmp eax, 0x7fffffff
jae 0x507559
cmp dword [eax + esi], 0x4550
jne 0x507559
lea edx, [eax + 0x78]
mov eax, dword [edx + esi]
add edx, esi
test eax, eax
je 0x507557
cmp dword [edx + 4], 0
je 0x507557
push 0
add eax, esi
mov ecx, esi
push str.OpenThemeDataForDpi
push eax
call fcn.00529280
mov edi, esi
jmp 0x50755b
mov edi, esi
xor eax, eax
mov dword [0x637bb4], eax
cmp word [esi], bx
jne 0x5075a2
mov eax, dword [edi + 0x3c]
test eax, eax
je 0x5075a2
cmp eax, 0x7fffffff
jae 0x5075a2
cmp dword [eax + esi], 0x4550
jne 0x5075a2
lea edx, [eax + 0x78]
mov eax, dword [edx + esi]
add edx, esi
test eax, eax
je 0x5075a2
cmp dword [edx + 4], 0
je 0x5075a2
push 0
add eax, esi
mov ecx, esi
push str.OpenThemeData
push eax
call fcn.00529280
nop
jmp 0x5075a4
xor eax, eax
mov dword [0x637bc4], eax
cmp word [esi], bx
jne 0x5075ea
mov eax, dword [edi + 0x3c]
test eax, eax
je 0x5075ea
cmp eax, 0x7fffffff
jae 0x5075ea
cmp dword [eax + esi], 0x4550
jne 0x5075ea
lea edx, [eax + 0x78]
mov eax, dword [edx + esi]
add edx, esi
test eax, eax
je 0x5075ea
cmp dword [edx + 4], 0
je 0x5075ea
push 0
add eax, esi
mov ecx, esi
push str.CloseThemeData
push eax
call fcn.00529280
jmp 0x5075ec
xor eax, eax
mov dword [0x637be0], eax
cmp word [esi], bx
jne 0x507635
mov eax, dword [edi + 0x3c]
test eax, eax
je 0x507635
lea ecx, [ecx]
cmp eax, 0x7fffffff
jae 0x507635
cmp dword [eax + esi], 0x4550
jne 0x507635
lea edx, [eax + 0x78]
mov eax, dword [edx + esi]
add edx, esi
test eax, eax
je 0x507635
cmp dword [edx + 4], 0
je 0x507635
push 0
add eax, esi
mov ecx, esi
push str.SetWindowTheme
push eax
call fcn.00529280
jmp 0x507637
xor eax, eax
mov dword [0x637b70], eax
lea esp, [esp]
cmp word [esi], bx
jne 0x507682
mov eax, dword [edi + 0x3c]
test eax, eax
je 0x507682
cmp eax, 0x7fffffff
jae 0x507682
cmp dword [eax + esi], 0x4550
jne 0x507682
lea edx, [eax + 0x78]
mov eax, dword [edx + esi]
add edx, esi
test eax, eax
je 0x507682
cmp dword [edx + 4], 0
je 0x507682
push 0
add eax, esi
mov ecx, esi
push str.IsThemeActive
push eax
call fcn.00529280
nop
jmp 0x507684
xor eax, eax
mov dword [0x637c10], eax
cmp word [esi], bx
jne 0x5076ca
mov eax, dword [edi + 0x3c]
test eax, eax
je 0x5076ca
cmp eax, 0x7fffffff
jae 0x5076ca
cmp dword [eax + esi], 0x4550
jne 0x5076ca
lea edx, [eax + 0x78]
mov eax, dword [edx + esi]
add edx, esi
test eax, eax
je 0x5076ca
cmp dword [edx + 4], 0
je 0x5076ca
push 0
add eax, esi
mov ecx, esi
push str.IsThemePartDefined
push eax
call fcn.00529280
jmp 0x5076cc
xor eax, eax
mov dword [0x637b9c], eax
cmp word [esi], bx
jne 0x507715
mov eax, dword [edi + 0x3c]
test eax, eax
je 0x507715
lea ecx, [ecx]
cmp eax, 0x7fffffff
jae 0x507715
cmp dword [eax + esi], 0x4550
jne 0x507715
lea edx, [eax + 0x78]
mov eax, dword [edx + esi]
add edx, esi
test eax, eax
je 0x507715
cmp dword [edx + 4], 0
je 0x507715
push 0
add eax, esi
mov ecx, esi
push str.GetThemeInt
push eax
call fcn.00529280
jmp 0x507717
xor eax, eax
mov dword [0x637b90], eax
lea esp, [esp]
cmp word [esi], bx
jne 0x507762
mov eax, dword [edi + 0x3c]
test eax, eax
je 0x507762
cmp eax, 0x7fffffff
jae 0x507762
cmp dword [eax + esi], 0x4550
jne 0x507762
lea edx, [eax + 0x78]
mov eax, dword [edx + esi]
add edx, esi
test eax, eax
je 0x507762
cmp dword [edx + 4], 0
je 0x507762
push 0
add eax, esi
mov ecx, esi
push str.GetThemePartSize
push eax
call fcn.00529280
nop
jmp 0x507764
xor eax, eax
mov dword [0x637bc8], eax
cmp word [esi], bx
jne 0x5077aa
mov eax, dword [edi + 0x3c]
test eax, eax
je 0x5077aa
cmp eax, 0x7fffffff
jae 0x5077aa
cmp dword [eax + esi], 0x4550
jne 0x5077aa
lea edx, [eax + 0x78]
mov eax, dword [edx + esi]
add edx, esi
test eax, eax
je 0x5077aa
cmp dword [edx + 4], 0
je 0x5077aa
push 0
add eax, esi
mov ecx, esi
push str.DrawThemeBackground
push eax
call fcn.00529280
jmp 0x5077ac
xor eax, eax
cmp dword [0x62fbb0], 0x72
mov dword [0x637bbc], eax
jb 0x5077ca
push 0x4a
xor edx, edx
mov ecx, esi
call fcn.005290e0
mov dword [0x637b88], eax
cmp dword [0x62fbb0], 0x3f
jb 0x50782c
push 0x800
push 0
push str.shcore.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
test eax, eax
jne 0x507819
push 0x200
push eax
push str.shcore.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
test eax, eax
jne 0x507819
cmp dword [0x62fbb0], 0x3e
jae 0x50782c
push eax
push eax
push str.shcore.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
test eax, eax
je 0x50782c
push 0
mov edx, str.GetDpiForMonitor
mov ecx, eax
call fcn.005290e0
mov dword [0x637bd8], eax
cmp dword [0x62fbb0], 0x66
jb 0x5078dd
push 0x800
push 0
push 0x5f7c84
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
jne 0x50788c
push 0x200
push eax
push 0x5f7c84
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
jne 0x50788c
cmp dword [0x62fbb0], 0x3e
jae 0x5078dd
push eax
push eax
push 0x5f7c84
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
je 0x5078dd
push 0
mov edx, str.GetDpiForWindow
mov ecx, esi
call fcn.005290e0
push 0
mov edx, str.GetDpiForSystem
mov dword [0x637c00], eax
mov ecx, esi
call fcn.005290e0
push 0
mov edx, str.GetSystemMetricsForDpi
mov dword [0x637bb0], eax
mov ecx, esi
call fcn.005290e0
push 0
mov edx, str.SystemParametersInfoForDpi
mov dword [0x637bc0], eax
mov ecx, esi
call fcn.005290e0
mov dword [0x637c0c], eax
xor ecx, ecx
call fcn.00507900
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret