Function at 0x506d80
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push ebx
push esi
push edi
push dword [0x633690]
push 0x28
call sym.SystemInformer.exe_PhCreateObject
mov esi, eax
push 0x40
push 4
push dword [0x6337d4]
mov dword [esi], 8
mov dword [esi + 4], 0x500df0
mov dword [esi + 8], 0x500e10
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.00581cf0
mov eax, dword [esi + 0xc]
add esp, 0xc
mov dword [esi + 0x14], eax
shl eax, 4
push eax
push 4
push dword [0x6337d4]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
push dword [0x633690]
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 [0x63535c], esi
call sym.SystemInformer.exe_PhCreateObject
mov esi, eax
push 0x40
push 4
push dword [0x6337d4]
mov dword [esi], 0xc
mov dword [esi + 4], 0x509860
mov dword [esi + 8], 0x509890
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.00581cf0
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 [0x6337d4]
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 [0x635340], esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
jne 0x506efd
push 0x200
push eax
push str.uxtheme.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
jne 0x506efd
cmp dword [0x62dbb0], 0x3e
lea ebx, [ebx]
jae 0x5071c2
push eax
push eax
push str.uxtheme.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
je 0x5071c2
mov ebx, 0x5a4d
cmp word [esi], bx
jne 0x506f47
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x506f47
cmp eax, 0x7fffffff
jae 0x506f47
cmp dword [eax + esi], 0x4550
jne 0x506f47
lea edx, [eax + 0x78]
mov eax, dword [edx + esi]
add edx, esi
test eax, eax
je 0x506f47
cmp dword [edx + 4], 0
je 0x506f47
push 0
add eax, esi
mov ecx, esi
push str.OpenThemeDataForDpi
push eax
call fcn.00525800
jmp 0x506f49
xor eax, eax
mov dword [0x635324], eax
cmp word [esi], bx
jne 0x506f95
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x506f95
lea ebx, [ebx]
cmp eax, 0x7fffffff
jae 0x506f95
cmp dword [eax + esi], 0x4550
jne 0x506f95
lea edx, [eax + 0x78]
mov eax, dword [edx + esi]
add edx, esi
test eax, eax
je 0x506f95
cmp dword [edx + 4], 0
je 0x506f95
push 0
add eax, esi
mov ecx, esi
push str.OpenThemeData
push eax
call fcn.00525800
jmp 0x506f97
xor eax, eax
mov dword [0x635334], eax
lea esp, [esp]
cmp word [esi], bx
jne 0x506fe2
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x506fe2
cmp eax, 0x7fffffff
jae 0x506fe2
cmp dword [eax + esi], 0x4550
jne 0x506fe2
lea edx, [eax + 0x78]
mov eax, dword [edx + esi]
add edx, esi
test eax, eax
je 0x506fe2
cmp dword [edx + 4], 0
je 0x506fe2
push 0
add eax, esi
mov ecx, esi
push str.CloseThemeData
push eax
call fcn.00525800
nop
jmp 0x506fe4
xor eax, eax
mov dword [0x635350], eax
cmp word [esi], bx
jne 0x50702a
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x50702a
cmp eax, 0x7fffffff
jae 0x50702a
cmp dword [eax + esi], 0x4550
jne 0x50702a
lea edx, [eax + 0x78]
mov eax, dword [edx + esi]
add edx, esi
test eax, eax
je 0x50702a
cmp dword [edx + 4], 0
je 0x50702a
push 0
add eax, esi
mov ecx, esi
push str.SetWindowTheme
push eax
call fcn.00525800
jmp 0x50702c
xor eax, eax
mov dword [0x6352e0], eax
cmp word [esi], bx
jne 0x507075
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x507075
lea ecx, [ecx]
cmp eax, 0x7fffffff
jae 0x507075
cmp dword [eax + esi], 0x4550
jne 0x507075
lea edx, [eax + 0x78]
mov eax, dword [edx + esi]
add edx, esi
test eax, eax
je 0x507075
cmp dword [edx + 4], 0
je 0x507075
push 0
add eax, esi
mov ecx, esi
push str.IsThemeActive
push eax
call fcn.00525800
jmp 0x507077
xor eax, eax
mov dword [0x635380], eax
lea esp, [esp]
cmp word [esi], bx
jne 0x5070c2
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x5070c2
cmp eax, 0x7fffffff
jae 0x5070c2
cmp dword [eax + esi], 0x4550
jne 0x5070c2
lea edx, [eax + 0x78]
mov eax, dword [edx + esi]
add edx, esi
test eax, eax
je 0x5070c2
cmp dword [edx + 4], 0
je 0x5070c2
push 0
add eax, esi
mov ecx, esi
push str.IsThemePartDefined
push eax
call fcn.00525800
nop
jmp 0x5070c4
xor eax, eax
mov dword [0x63530c], eax
cmp word [esi], bx
jne 0x50710a
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x50710a
cmp eax, 0x7fffffff
jae 0x50710a
cmp dword [eax + esi], 0x4550
jne 0x50710a
lea edx, [eax + 0x78]
mov eax, dword [edx + esi]
add edx, esi
test eax, eax
je 0x50710a
cmp dword [edx + 4], 0
je 0x50710a
push 0
add eax, esi
mov ecx, esi
push str.GetThemeInt
push eax
call fcn.00525800
jmp 0x50710c
xor eax, eax
mov dword [0x635300], eax
cmp word [esi], bx
jne 0x507155
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x507155
lea ecx, [ecx]
cmp eax, 0x7fffffff
jae 0x507155
cmp dword [eax + esi], 0x4550
jne 0x507155
lea edx, [eax + 0x78]
mov eax, dword [edx + esi]
add edx, esi
test eax, eax
je 0x507155
cmp dword [edx + 4], 0
je 0x507155
push 0
add eax, esi
mov ecx, esi
push str.GetThemePartSize
push eax
call fcn.00525800
jmp 0x507157
xor eax, eax
mov dword [0x635338], eax
lea esp, [esp]
cmp word [esi], bx
jne 0x5071a2
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x5071a2
cmp eax, 0x7fffffff
jae 0x5071a2
cmp dword [eax + esi], 0x4550
jne 0x5071a2
lea edx, [eax + 0x78]
mov eax, dword [edx + esi]
add edx, esi
test eax, eax
je 0x5071a2
cmp dword [edx + 4], 0
je 0x5071a2
push 0
add eax, esi
mov ecx, esi
push str.DrawThemeBackground
push eax
call fcn.00525800
nop
jmp 0x5071a4
xor eax, eax
cmp dword [0x62dbb0], 0x72
mov dword [0x63532c], eax
jb 0x5071c2
push 0x4a
xor edx, edx
mov ecx, esi
call fcn.00525660
mov dword [0x6352f8], eax
cmp dword [0x62dbb0], 0x3f
jb 0x50722a
push 0x800
push 0
push str.shcore.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
lea ecx, [ecx]
test eax, eax
jne 0x507213
push 0x200
push eax
push str.shcore.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
test eax, eax
jne 0x507213
cmp dword [0x62dbb0], 0x3e
jae 0x50722a
push eax
push eax
push str.shcore.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
test eax, eax
je 0x50722a
push 0
mov edx, str.GetDpiForMonitor
mov ecx, eax
call fcn.00525660
mov dword [0x635348], eax
cmp dword [0x62dbb0], 0x66
jb 0x5072dd
push 0x800
push 0
push 0x5f67c4
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
jne 0x50728c
push 0x200
push eax
push 0x5f67c4
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
jne 0x50728c
cmp dword [0x62dbb0], 0x3e
jae 0x5072dd
push eax
push eax
push 0x5f67c4
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
je 0x5072dd
push 0
mov edx, str.GetDpiForWindow
mov ecx, esi
call fcn.00525660
push 0
mov edx, str.GetDpiForSystem
mov dword [0x635370], eax
mov ecx, esi
call fcn.00525660
push 0
mov edx, str.GetSystemMetricsForDpi
mov dword [0x635320], eax
mov ecx, esi
call fcn.00525660
push 0
mov edx, str.SystemParametersInfoForDpi
mov dword [0x635330], eax
mov ecx, esi
call fcn.00525660
mov dword [0x63537c], eax
xor ecx, ecx
call fcn.00507300
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret