Function at 0x10046640
Capabilities:
Load windows common language runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x12c
mov eax, dword [0x10141004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov ebx, edx
push edi
push str.CoreCLR
mov dword [ebp - 0x120], 0
mov dword [ebp - 0x128], 0
mov dword [ebp - 0x124], 0
mov dword [ebp - 0x12c], 0
call esi
test eax, eax
je 0x100466a8
mov esi, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push str.detected_.NET_Core_in_process._n
call esi
mov edi, 1
jmp 0x10046853
push str.MSCorEE
call esi
test eax, eax
jne 0x100466de
mov esi, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push str.missing_CLR_module_in_process._n
call esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test edi, edi
jle 0x10046853
movzx edi, di
or edi, 0x80070000
jmp 0x10046853
push str.CLRCreateInstance
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x100466fb
mov esi, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push str.missing_CLR_function._n
jmp 0x10046732
lea ecx, [ebp - 0x128]
push ecx
push 0x1013cc40
push 0x1013cc50
call eax
mov edi, eax
test edi, edi
jns 0x1004677f
mov esi, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push str.could_not_create_ICLRMetaHost._n
call esi
cmp edi, 0x80004001
jne 0x10046853
push str.CLR_creation_not_implemented._n
call esi
lea eax, [ebp - 0x120]
push eax
push 0x1013cc70
push 0x1013cc20
push 0
push 0
push 0
call dword [sym.imp.mscoree.dll_CorBindToRuntimeEx]
mov edi, eax
test edi, edi
js 0x10046773
push str.CorBindToRuntimeEx_success._n
call esi
mov eax, dword [ebp - 0x120]
test ebx, ebx
je 0x10046841
mov dword [ebx], eax
jmp 0x10046853
push str.CorBindToRuntimeEx_failure._n
call esi
jmp 0x10046853
mov eax, dword [ebp - 0x128]
lea edx, [ebp - 0x124]
push edx
push 0x1013cc60
push str.v4.0.30319
mov ecx, dword [eax]
push eax
mov eax, dword [ecx + 0xc]
call eax
mov edi, eax
test edi, edi
jns 0x100467b6
mov esi, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push str.could_not_get_ICLRRuntimeInfo._n
call esi
jmp 0x10046853
mov eax, dword [ebp - 0x124]
lea edx, [ebp - 0x12c]
push edx
push eax
mov ecx, dword [eax]
mov eax, dword [ecx + 0x28]
call eax
mov edi, eax
test edi, edi
jns 0x100467e0
mov esi, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push str.ICLRRuntimeInfo_loadable_failure._n
call esi
jmp 0x10046853
cmp dword [ebp - 0x12c], 0
jne 0x100467f8
mov esi, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push str.ICLRRuntimeInfo_not_loadable._n
call esi
jmp 0x10046853
mov eax, dword [ebp - 0x124]
lea edx, [ebp - 0x120]
push edx
push 0x1013cc70
push 0x1013cc20
mov ecx, dword [eax]
push eax
mov eax, dword [ecx + 0x24]
call eax
mov esi, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov edi, eax
test edi, edi
jns 0x1004682c
push str.could_not_get_ICLRRuntimeHost._n
call esi
jmp 0x10046853
push str.ICLRRuntimeHost_query_success._n
call esi
mov eax, dword [ebp - 0x120]
test ebx, ebx
je 0x10046841
mov dword [ebx], eax
jmp 0x10046853
mov ecx, dword [eax]
push eax
mov eax, dword [ecx + 8]
call eax
mov dword [ebp - 0x120], 0
mov ecx, dword [ebp - 0x124]
test ecx, ecx
je 0x1004686f
mov eax, dword [ecx]
push ecx
mov eax, dword [eax + 8]
call eax
mov dword [ebp - 0x124], 0
mov ecx, dword [ebp - 0x128]
test ecx, ecx
je 0x1004688b
mov eax, dword [ecx]
push ecx
mov eax, dword [eax + 8]
call eax
mov dword [ebp - 0x128], 0
test edi, edi
je 0x100468ca
push 0x115
lea eax, [ebp - 0x11c]
push 0
push eax
call fcn.10002790
push edi
push str.VerifyClrIsLoaded
push str._s_HRESULT:_0x_016X
lea eax, [ebp - 0x11c]
push 0x115
push eax
call fcn.10001010
add esp, 0x20
lea eax, [ebp - 0x11c]
push eax
call esi
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100011bc
mov esp, ebp
pop ebp
ret