Function at 0x413820
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
mov edx, dword [0x46bce0]
mov ecx, 0x28
push ebx
push esi
push edi
call fcn.00405c60
mov esi, eax
push 0x40
push 4
push dword [0x46bcf4]
mov dword [esi], 8
mov dword [esi + 4], 0x414860
mov dword [esi + 8], 0x414880
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.00421e90
mov eax, dword [esi + 0xc]
add esp, 0xc
mov dword [esi + 0x14], eax
shl eax, 4
push eax
push 4
push dword [0x46bcf4]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov edx, dword [0x46bce0]
mov ecx, 0x28
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0xffffffff
mov dword [esi + 0x24], 0
call fcn.00405c60
mov esi, eax
push 0x40
push 4
push dword [0x46bcf4]
mov dword [esi], 0xc
mov dword [esi + 4], 0x414420
mov dword [esi + 8], 0x414450
mov dword [esi + 0xc], 0x10
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov ecx, dword ds:[esi + 0xc]
shl ecx, 2
push ecx
push 0xff
push eax
mov dword [esi + 0x10], eax
call fcn.00421e90
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 [0x46bcf4]
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 [0x46bfec], esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
je 0x413962
mov edi, esi
jmp 0x4139aa
push 0x200
push 0
push str.uxtheme.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
je 0x41397e
mov edi, esi
jmp 0x4139aa
cmp dword [0x46aad0], 0x3e
jae 0x413c33
push 0
push 0
push str.uxtheme.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
je 0x413c33
mov edi, eax
mov ebx, 0x5a4d
cmp word [esi], bx
jne 0x413c1f
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x4139f3
nop
cmp eax, 0x7fffffff
jae 0x4139f3
cmp dword [eax + esi], 0x4550
jne 0x4139f3
lea edx, [eax + 0x78]
mov eax, dword [edx + esi]
add edx, esi
test eax, eax
je 0x4139f3
cmp dword [edx + 4], 0
je 0x4139f3
push 0
add eax, esi
mov ecx, esi
push str.OpenThemeDataForDpi
push eax
call fcn.004134a0
mov edi, esi
cmp word [esi], bx
jne 0x413c1f
mov eax, dword [edi + 0x3c]
test eax, eax
je 0x413a3b
cmp eax, 0x7fffffff
jae 0x413a3b
cmp dword [eax + esi], 0x4550
jne 0x413a3b
lea edx, ds:[eax + 0x78]
mov eax, dword [edx + esi]
add edx, esi
test eax, eax
je 0x413a3b
cmp dword [edx + 4], 0
je 0x413a3b
push 0
add eax, esi
mov ecx, esi
push str.OpenThemeData
push eax
call fcn.004134a0
jmp 0x413a40
cmp word [esi], bx
jne 0x413c1f
mov eax, dword [edi + 0x3c]
test eax, eax
je 0x413a85
cmp eax, 0x7fffffff
jae 0x413a85
cmp dword ds:[eax + esi], 0x4550
jne 0x413a85
lea edx, [eax + 0x78]
mov eax, dword [edx + esi]
add edx, esi
test eax, eax
je 0x413a85
cmp dword [edx + 4], 0
je 0x413a85
push 0
add eax, esi
mov ecx, esi
push str.CloseThemeData
push eax
call fcn.004134a0
cmp word [esi], bx
jne 0x413c1f
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x413ac8
cmp eax, 0x7fffffff
jae 0x413ac8
cmp dword [eax + esi], 0x4550
jne 0x413ac8
lea edx, [eax + 0x78]
mov eax, dword [edx + esi]
add edx, esi
test eax, eax
je 0x413ac8
cmp dword [edx + 4], 0
je 0x413ac8
push 0
add eax, esi
mov ecx, esi
push str.SetWindowTheme
push eax
call fcn.004134a0
cmp word [esi], bx
jne 0x413c1f
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x413b0b
cmp eax, 0x7fffffff
jae 0x413b0b
cmp dword [eax + esi], 0x4550
jne 0x413b0b
lea edx, [eax + 0x78]
mov eax, dword [edx + esi]
add edx, esi
test eax, eax
je 0x413b0b
cmp dword [edx + 4], 0
je 0x413b0b
push 0
add eax, esi
mov ecx, esi
push str.IsThemeActive
push eax
call fcn.004134a0
cmp word [esi], bx
jne 0x413c1f
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x413b53
jmp 0x413b20
cmp eax, 0x7fffffff
jae 0x413b53
cmp dword [eax + esi], 0x4550
jne 0x413b53
lea edx, [eax + 0x78]
mov eax, dword [edx + esi]
add edx, esi
test eax, eax
je 0x413b53
cmp dword [edx + 4], 0
je 0x413b53
push 0
add eax, esi
mov ecx, esi
push str.IsThemePartDefined
push eax
call fcn.004134a0
cmp word [esi], bx
jne 0x413c1f
mov eax, dword ds:[esi + 0x3c]
test eax, eax
je 0x413b9b
cmp eax, 0x7fffffff
jae 0x413b9b
cmp dword [eax + esi], 0x4550
jne 0x413b9b
lea edx, ds:[eax + 0x78]
mov eax, dword [edx + esi]
add edx, esi
test eax, eax
je 0x413b9b
cmp dword [edx + 4], 0
je 0x413b9b
push 0
add eax, esi
mov ecx, esi
push str.GetThemeInt
push eax
call fcn.004134a0
jmp 0x413ba0
cmp word [esi], bx
jne 0x413c1f
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x413bdf
cmp eax, 0x7fffffff
jae 0x413bdf
cmp dword [eax + esi], 0x4550
jne 0x413bdf
lea edx, [eax + 0x78]
mov eax, dword [edx + esi]
add edx, esi
test eax, eax
je 0x413bdf
cmp dword [edx + 4], 0
je 0x413bdf
push 0
add eax, esi
mov ecx, esi
push str.GetThemePartSize
push eax
call fcn.004134a0
nop
cmp word [esi], bx
jne 0x413c1f
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x413c1f
cmp eax, 0x7fffffff
jae 0x413c1f
cmp dword [eax + esi], 0x4550
jne 0x413c1f
lea edx, [eax + 0x78]
mov eax, dword [edx + esi]
add edx, esi
test eax, eax
je 0x413c1f
cmp dword [edx + 4], 0
je 0x413c1f
push 0
add eax, esi
mov ecx, esi
push str.DrawThemeBackground
push eax
call fcn.004134a0
cmp dword [0x46aad0], 0x72
jb 0x413c33
push 0x4a
xor edx, edx
mov ecx, esi
call fcn.004133a0
cmp dword [0x46aad0], 0x3f
jb 0x413c9d
push 0x800
push 0
push str.shcore.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
test eax, eax
jne 0x413c8a
push 0x200
push eax
push str.shcore.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
test eax, eax
jne 0x413c8a
cmp dword [0x46aad0], 0x3e
jae 0x413c9d
push eax
push eax
push str.shcore.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
test eax, eax
je 0x413c9d
push 0
mov edx, str.GetDpiForMonitor
mov ecx, eax
call fcn.004133a0
mov dword [0x46bff4], eax
cmp dword [0x46aad0], 0x66
jb 0x413d3e
push 0x800
push 0
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
jne 0x413cf7
push 0x200
push eax
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
jne 0x413cf7
cmp dword [0x46aad0], 0x3e
jae 0x413d3e
push eax
push eax
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
je 0x413d3e
push 0
mov edx, str.GetDpiForWindow
mov ecx, esi
call fcn.004133a0
push 0
mov edx, str.GetDpiForSystem
mov dword [0x46c000], eax
mov ecx, esi
call fcn.004133a0
push 0
mov edx, str.GetSystemMetricsForDpi
mov dword [0x46bfe4], eax
mov ecx, esi
call fcn.004133a0
push 0
mov edx, str.SystemParametersInfoForDpi
mov dword [0x46bfe8], eax
mov ecx, esi
call fcn.004133a0
mov edi, edi
call fcn.00413d60
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret