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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x13c
mov eax, dword [0x5c51004]
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 - 0x130], 0
mov dword [ebp - 0x138], 0
mov dword [ebp - 0x134], 0
mov dword [ebp - 0x13c], 0
call esi
mov edi, eax
test edi, edi
je 0x5b45c51
mov esi, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push str.detected_.NET_Core_in_process._n
call esi
push str.GetCLRRuntimeHost
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x5b45c40
lea ecx, [ebp - 0x130]
push ecx
push 0x5c42ed0
call eax
mov edi, eax
test edi, edi
js 0x5b45c34
mov eax, dword [ebp - 0x130]
push eax
mov ecx, dword [eax]
mov eax, dword [ecx + 0xc]
call eax
mov edi, eax
test edi, edi
js 0x5b45c28
push str.ICLRRuntimeHost2_start_success._n
call esi
mov eax, dword [ebp - 0x130]
test ebx, ebx
je 0x5b45dea
mov dword [ebx], eax
jmp 0x5b45dfc
push str.ICLRRuntimeHost2_start_failure._n
call esi
jmp 0x5b45dfc
push str.could_not_get_ICLRRuntimeHost2._n
call esi
jmp 0x5b45dfc
push str.missing_CoreCLR_function._n
call esi
mov edi, 0x80131011
jmp 0x5b45dfc
push str.MSCorEE
call esi
test eax, eax
jne 0x5b45c87
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 0x5b45dfc
movzx edi, di
or edi, 0x80070000
jmp 0x5b45dfc
push str.CLRCreateInstance
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x5b45ca4
mov esi, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push str.missing_CLR_function._n
jmp 0x5b45cdb
lea ecx, [ebp - 0x138]
push ecx
push 0x5c4d3f0
push 0x5c4d400
call eax
mov edi, eax
test edi, edi
jns 0x5b45d28
mov esi, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push str.could_not_create_ICLRMetaHost._n
call esi
cmp edi, 0x80004001
jne 0x5b45dfc
push str.CLR_creation_not_implemented._n
call esi
lea eax, [ebp - 0x130]
push eax
push 0x5c4d420
push 0x5c4d3d0
push 0
push 0
push 0
call dword [sym.imp.mscoree.dll_CorBindToRuntimeEx]
mov edi, eax
test edi, edi
js 0x5b45d1c
push str.CorBindToRuntimeEx_success._n
call esi
mov eax, dword [ebp - 0x130]
test ebx, ebx
je 0x5b45dea
mov dword [ebx], eax
jmp 0x5b45dfc
push str.CorBindToRuntimeEx_failure._n
call esi
jmp 0x5b45dfc
mov eax, dword [ebp - 0x138]
lea edx, [ebp - 0x134]
push edx
push 0x5c4d410
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 0x5b45d5f
mov esi, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push str.could_not_get_ICLRRuntimeInfo._n
call esi
jmp 0x5b45dfc
mov eax, dword [ebp - 0x134]
lea edx, [ebp - 0x13c]
push edx
push eax
mov ecx, dword [eax]
mov eax, dword [ecx + 0x28]
call eax
mov edi, eax
test edi, edi
jns 0x5b45d89
mov esi, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push str.ICLRRuntimeInfo_loadable_failure._n
call esi
jmp 0x5b45dfc
cmp dword [ebp - 0x13c], 0
jne 0x5b45da1
mov esi, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push str.ICLRRuntimeInfo_not_loadable._n
call esi
jmp 0x5b45dfc
mov eax, dword [ebp - 0x134]
lea edx, [ebp - 0x130]
push edx
push 0x5c4d420
push 0x5c4d3d0
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 0x5b45dd5
push str.could_not_get_ICLRRuntimeHost._n
call esi
jmp 0x5b45dfc
push str.ICLRRuntimeHost_query_success._n
call esi
mov eax, dword [ebp - 0x130]
test ebx, ebx
je 0x5b45dea
mov dword [ebx], eax
jmp 0x5b45dfc
mov ecx, dword [eax]
push eax
mov eax, dword [ecx + 8]
call eax
mov dword [ebp - 0x130], 0
mov ecx, dword [ebp - 0x134]
test ecx, ecx
je 0x5b45e18
mov eax, dword [ecx]
push ecx
mov eax, dword [eax + 8]
call eax
mov dword [ebp - 0x134], 0
mov ecx, dword [ebp - 0x138]
test ecx, ecx
je 0x5b45e34
mov eax, dword [ecx]
push ecx
mov eax, dword [eax + 8]
call eax
mov dword [ebp - 0x138], 0
test edi, edi
je 0x5b45e73
push 0x125
lea eax, [ebp - 0x12c]
push 0
push eax
call fcn.05b02790
push edi
push str.VerifyClrIsLoaded
push str.eeeSdk1:__s_HRESULT_0x_016X
lea eax, [ebp - 0x12c]
push 0x125
push eax
call fcn.05b01010
add esp, 0x20
lea eax, [ebp - 0x12c]
push eax
call esi
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.05b011bc
mov esp, ebp
pop ebp
ret