Function at 0x41c720
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], 0x5f3834
call fcn.00522860
mov esi, eax
mov edi, 0x5a4d
test esi, esi
je 0x41c7f0
cmp word [esi], di
jne 0x41c79d
mov eax, dword ds:[esi + 0x3c]
test eax, eax
je 0x41c79d
cmp eax, 0x7fffffff
jae 0x41c79d
cmp dword [eax + esi], 0x4550
jne 0x41c79d
lea edx, ds:[eax + 0x78]
mov eax, dword [edx + esi]
add edx, esi
test eax, eax
je 0x41c79d
cmp dword [edx + 4], 0
je 0x41c79d
push 0
add eax, esi
mov ecx, esi
push 0x5f384c
push eax
call fcn.00522ae0
jmp 0x41c79f
xor eax, eax
mov dword [0x631154], eax
mov ecx, esi
mov edx, 0x3c
cmp word [esi], di
jne 0x41c7e9
mov eax, dword [ecx + edx]
test eax, eax
je 0x41c7e9
cmp eax, 0x7fffffff
jae 0x41c7e9
cmp dword [eax + esi], 0x4550
jne 0x41c7e9
lea edx, [esi + 0x78]
add edx, eax
mov eax, dword [edx]
test eax, eax
je 0x41c7e9
cmp dword [edx + 4], 0
je 0x41c7e9
push 0
add eax, esi
push 0x5f385c
push eax
call fcn.00522ae0
jmp 0x41c7eb
xor eax, eax
mov dword [0x631148], eax
lea edx, [esp + 0x10]
mov dword [esp + 0x10], 0x16
xor ecx, ecx
mov dword [esp + 0x14], str.uxtheme.dll
call fcn.00522860
mov ecx, eax
test ecx, ecx
je 0x41c85a
cmp word [ecx], di
jne 0x41c853
mov eax, dword [ecx + 0x3c]
test eax, eax
je 0x41c853
lea ecx, [ecx]
cmp eax, 0x7fffffff
jae 0x41c853
cmp dword [eax + ecx], 0x4550
jne 0x41c853
lea edx, [eax + 0x78]
mov eax, dword [edx + ecx]
add edx, ecx
test eax, eax
je 0x41c853
cmp dword [edx + 4], 0
je 0x41c853
push 0
add eax, ecx
push str.DrawThemeBackground
push eax
call fcn.00522ae0
jmp 0x41c855
xor eax, eax
mov dword [0x631140], eax
cmp dword [0x63330c], 0
je 0x41c876
mov esi, 0xc0000476
push esi
lfence
call sym.SystemInformer.exe_PhGetNtMessage
jmp 0x41c9d8
mov eax, dword fs:[0x18]
mov edx, 0x63330c
mov ecx, dword [eax + 0x24]
xor eax, eax
lock cmpxchg dword [edx], ecx
test eax, eax
je 0x41c8a5
mov esi, 0xc0000476
push esi
lfence
call sym.SystemInformer.exe_PhGetNtMessage
lea esp, [esp]
jmp 0x41c9d8
mov edi, dword [0x633318]
mov dword [0x633320], 0
mov dword [0x63331c], 0
mov dword [0x633314], 0
test edi, edi
je 0x41c90b
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 0x41c90d
mov edi, dword [edi + 4]
test edi, edi
jne 0x41c8d0
xor esi, esi
mov dword [0x633308], esi
test esi, esi
js 0x41c988
cmp byte [0x6309b7], 0
mov edi, edi
jne 0x41c92b
cmp byte [0x630c4c], 0
je 0x41c95c
sub esp, 0xc
mov edx, 0x41c4c0
mov ecx, 0x631140
call fcn.00530980
mov esi, eax
test esi, esi
js 0x41c988
sub esp, 0xc
mov edx, 0x41c680
mov ecx, 0x631148
call fcn.00530980
mov esi, eax
test esi, esi
js 0x41c988
sub esp, 0xc
mov edx, 0x41c5e0
mov ecx, 0x631154
call fcn.00530980
mov esi, eax
test esi, esi
js 0x41c988
call fcn.005306c0
mov esi, eax
jmp 0x41c980
test esi, esi
jns 0x41ca34
cmp esi, 0xc0000022
je 0x41c9b5
cmp esi, 0xc0000005
je 0x41c9b5
mov eax, esi
shr eax, 0x10
and eax, 0xfff
cmp eax, 7
jne 0x41c9ac
movzx eax, si
jmp 0x41c9bf
cmp eax, 0xb
jne 0x41c9c4
mov eax, esi
jmp 0x41c9bf
push esi
lfence
call dword [sym.imp.ntdll.dll_RtlNtStatusToDosErrorNoTeb]
nop
test eax, eax
jne 0x41c9cf
push esi
lfence
call sym.SystemInformer.exe_PhGetNtMessage
jmp 0x41c9d8
push eax
lfence
call sym.SystemInformer.exe_PhGetWin32Message
mov esi, eax
test esi, esi
je 0x41ca1e
lfence
lfence
push dword [esi + 4]
push 0x5ca058
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 0x41ca34
lfence
call fcn.004f9e40
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push str.Unable_to_commit_detours_transaction.
push 0x5ca058
push 0x10
push 0
call sym.SystemInformer.exe_PhShowMessage
add esp, 0x10
pop edi
pop esi
mov esp, ebp
pop ebp
ret