Function at 0x41e600
Capabilities:
Allocate or change rwx memory
Parse pe header
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x10
push esi
push edi
lea edx, [esp + 0x10]
mov dword [esp + 0x10], 0x14
xor ecx, ecx
mov dword [esp + 0x14], 0x5f6c84
call fcn.00528ba0
mov esi, eax
mov edi, 0x5a4d
test esi, esi
je 0x41e6d0
cmp word [esi], di
jne 0x41e67d
mov eax, dword ds:[esi + 0x3c]
test eax, eax
je 0x41e67d
cmp eax, 0x7fffffff
jae 0x41e67d
cmp dword [eax + esi], 0x4550
jne 0x41e67d
lea edx, ds:[eax + 0x78]
mov eax, dword [edx + esi]
add edx, esi
test eax, eax
je 0x41e67d
cmp dword [edx + 4], 0
je 0x41e67d
push 0
add eax, esi
mov ecx, esi
push 0x5f6c9c
push eax
call fcn.00528e20
jmp 0x41e67f
xor eax, eax
mov dword [0x635164], eax
mov ecx, esi
mov edx, 0x3c
cmp word [esi], di
jne 0x41e6c9
mov eax, dword [ecx + edx]
test eax, eax
je 0x41e6c9
cmp eax, 0x7fffffff
jae 0x41e6c9
cmp dword [eax + esi], 0x4550
jne 0x41e6c9
lea edx, [esi + 0x78]
add edx, eax
mov eax, dword [edx]
test eax, eax
je 0x41e6c9
cmp dword [edx + 4], 0
je 0x41e6c9
push 0
add eax, esi
push 0x5f6cac
push eax
call fcn.00528e20
jmp 0x41e6cb
xor eax, eax
mov dword [0x635158], eax
lea edx, [esp + 0x10]
mov dword [esp + 0x10], 0x16
xor ecx, ecx
mov dword [esp + 0x14], str.uxtheme.dll
call fcn.00528ba0
mov ecx, eax
test ecx, ecx
je 0x41e73a
cmp word [ecx], di
jne 0x41e733
mov eax, dword [ecx + 0x3c]
test eax, eax
je 0x41e733
lea ecx, [ecx]
cmp eax, 0x7fffffff
jae 0x41e733
cmp dword [eax + ecx], 0x4550
jne 0x41e733
lea edx, [eax + 0x78]
mov eax, dword [edx + ecx]
add edx, ecx
test eax, eax
je 0x41e733
cmp dword [edx + 4], 0
je 0x41e733
push 0
add eax, ecx
push str.DrawThemeBackground
push eax
call fcn.00528e20
jmp 0x41e735
xor eax, eax
mov dword [0x635150], eax
cmp dword [0x637340], 0
je 0x41e756
mov esi, 0xc0000476
push esi
lfence
call sym.SystemInformer.exe_PhGetNtMessage
jmp 0x41e8b8
mov eax, dword fs:[0x18]
mov edx, 0x637340
mov ecx, dword [eax + 0x24]
xor eax, eax
lock cmpxchg dword [edx], ecx
test eax, eax
je 0x41e785
mov esi, 0xc0000476
push esi
lfence
call sym.SystemInformer.exe_PhGetNtMessage
lea esp, [esp]
jmp 0x41e8b8
mov edi, dword [0x63734c]
mov dword [0x637354], 0
mov dword [0x637350], 0
mov dword [0x637348], 0
test edi, edi
je 0x41e7eb
lea ecx, [ecx]
lea eax, [esp + 8]
mov dword [esp + 8], 0
push eax
push 0x40
lea eax, [esp + 0x14]
mov dword [esp + 0x18], edi
push eax
lea eax, [esp + 0x1c]
mov dword [esp + 0x18], 0x10000
push eax
push 0xffffffffffffffff
call dword [sym.imp.ntdll.dll_NtProtectVirtualMemory]
mov esi, eax
test esi, esi
js 0x41e7ed
mov edi, dword [edi + 4]
test edi, edi
jne 0x41e7b0
xor esi, esi
mov dword [0x63733c], esi
test esi, esi
js 0x41e868
cmp byte [0x6349c7], 0
mov edi, edi
jne 0x41e80b
cmp byte [0x634c5c], 0
je 0x41e83c
sub esp, 0xc
mov edx, 0x41e3a0
mov ecx, 0x635150
call fcn.00534120
mov esi, eax
test esi, esi
js 0x41e868
sub esp, 0xc
mov edx, 0x41e560
mov ecx, 0x635158
call fcn.00534120
mov esi, eax
test esi, esi
js 0x41e868
sub esp, 0xc
mov edx, 0x41e4c0
mov ecx, 0x635164
call fcn.00534120
mov esi, eax
test esi, esi
js 0x41e868
call fcn.00533e60
mov esi, eax
jmp 0x41e860
test esi, esi
jns 0x41e914
cmp esi, 0xc0000022
je 0x41e895
cmp esi, 0xc0000005
je 0x41e895
mov eax, esi
shr eax, 0x10
and eax, 0xfff
cmp eax, 7
jne 0x41e88c
movzx eax, si
jmp 0x41e89f
cmp eax, 0xb
jne 0x41e8a4
mov eax, esi
jmp 0x41e89f
push esi
lfence
call dword [sym.imp.ntdll.dll_RtlNtStatusToDosErrorNoTeb]
nop
test eax, eax
jne 0x41e8af
push esi
lfence
call sym.SystemInformer.exe_PhGetNtMessage
jmp 0x41e8b8
push eax
lfence
call sym.SystemInformer.exe_PhGetWin32Message
mov esi, eax
test esi, esi
je 0x41e8fe
lfence
lfence
push dword [esi + 4]
push 0x5cd56c
push str.Unable_to_commit_detours_transaction.
push 0xfffe
push 0x20
push 0
call sym.SystemInformer.exe_PhShowMessage2
add esp, 0x18
lea ecx, [esi - 8]
or eax, 0xffffffff
lock xadd dword [ecx + 4], eax
dec eax
jne 0x41e914
lfence
call fcn.004fc020
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push str.Unable_to_commit_detours_transaction.
push 0x5cd56c
push 0x10
push 0
call sym.SystemInformer.exe_PhShowMessage
add esp, 0x10
pop edi
pop esi
mov esp, ebp
pop ebp
ret