Function at 0x41e0c0
Capabilities:
Load windows common language runtime

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46807b
mov eax, dword fs:[0]
push eax
sub esp, 0x22c
mov eax, dword [0x4846a0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [0x484034]
mov edx, dword [eax + 0xc]
mov ebx, ecx
xor edi, edi
mov ecx, 0x484034
xor esi, esi
mov dword [ebp - 0x224], edi
call edx
add eax, 0x10
mov dword [ebp - 0x214], eax
mov dword [ebp - 4], edi
mov dword [ebp - 0x21c], edi
mov dword [ebp - 0x218], edi
cmp dword [0x487868], edi
jne 0x41e3ff
mov eax, dword [ebx + 0x158]
cmp dword [eax - 0xc], edi
jne 0x41e149
lea eax, [ebx + 0x154]
lea edi, [ebx + 0x158]
call fcn.00421640
lea eax, [ebx + 0x158]
lea edi, [ebp - 0x214]
call fcn.00421640
lea ecx, [ebp - 0x230]
push ecx
lea edx, [ebp - 0x220]
push edx
lea eax, [ebp - 0x22c]
push eax
mov eax, dword [ebp - 0x214]
lea ecx, [ebp - 0x228]
push ecx
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x228], 0
mov dword [ebp - 0x22c], esp
mov esi, esp
call fcn.004267f0
add eax, 0x10
mov dword [esi], eax
call fcn.0041edb0
lea edi, [ebp - 0x224]
call fcn.0043c320
mov esi, eax
test esi, esi
jns 0x41e1bd
push esi
push str.Failed_to_load_mscoree.dll__HRESULT__0x_x_.
jmp 0x41e3b4
mov edx, dword [ebp - 0x224]
push str.CLRCreateInstance
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x41e1fd
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x41e1e7
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
test esi, esi
js 0x41e1f2
mov esi, 0x80004005
push esi
push str.Failed_to_get_procedure_address_for_CLRCreateInstance__HRESULT__0x_x_.
jmp 0x41e3b4
lea ecx, [ebp - 0x21c]
push ecx
push 0x477678
push 0x477688
call eax
mov esi, eax
test esi, esi
jns 0x41e221
push esi
push str.Failed_to_call_CLRCreateInstance__HRESULT__0x_x_.
jmp 0x41e3b4
mov eax, dword [ebp - 0x21c]
mov edx, dword [eax]
mov edx, dword [edx + 0xc]
lea ecx, [ebp - 0x218]
push ecx
mov ecx, dword [ebp - 0x214]
push 0x477698
push ecx
push eax
call edx
mov esi, eax
test esi, esi
jns 0x41e2a1
mov ecx, dword [ebx + 0x154]
lea eax, [ebp - 0x214]
push eax
call fcn.00421780
test eax, eax
je 0x41e296
lea eax, [ebx + 0x154]
lea edi, [ebp - 0x214]
call fcn.00421640
mov eax, dword [ebx + 0x154]
mov ecx, dword [ebp - 0x21c]
mov edx, dword [ecx]
lea esi, [ebp - 0x218]
push esi
push 0x477698
push eax
mov eax, dword [edx + 0xc]
push ecx
call eax
mov esi, eax
test esi, esi
jns 0x41e2a1
push esi
push str.Failed_to_initialize_CLR__HRESULT__0x_x_.
jmp 0x41e3b4
mov eax, dword [ebp - 0x218]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x24]
push 0x487868
push 0x477668
push 0x477658
push eax
call edx
mov esi, eax
test esi, esi
jns 0x41e2cf
push esi
push str.Failed_to_get_ICorRuntimeHost__HRESULT__0x_d_.
jmp 0x41e3b4
mov eax, dword [0x487868]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x28]
push eax
call edx
mov esi, eax
test esi, esi
js 0x41e3ae
xor eax, eax
push 0x1fe
push eax
lea ecx, [ebp - 0x20e]
push ecx
mov dword [ebp - 0x230], 0xff
mov word [ebp - 0x210], ax
call fcn.004534e0
mov eax, dword [ebp - 0x218]
mov edx, dword [eax]
mov edx, dword [edx + 0xc]
add esp, 0xc
lea ecx, [ebp - 0x230]
push ecx
lea ecx, [ebp - 0x210]
push ecx
push eax
call edx
mov esi, eax
test esi, esi
js 0x41e3a6
lea edi, [ebx + 0x15c]
lea edx, [ebp - 0x210]
call fcn.004011b0
lea eax, [ebp - 0x22c]
push eax
lea ecx, [ebp - 0x238]
push ecx
lea edx, [ebp - 0x234]
push edx
lea eax, [ebp - 0x220]
push eax
mov eax, dword [edi]
push ecx
sub eax, 0x10
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x234], esp
mov ebx, esp
call fcn.004267f0
add eax, 0x10
mov dword [ebx], eax
call fcn.0041edb0
cmp dword [ebp - 0x220], 4
jl 0x41e3c8
cmp dword [ebp - 0x228], 2
jne 0x41e3c8
mov eax, dword [ebp - 0x218]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x34]
push eax
call edx
jmp 0x41e3c8
push esi
push str.Failed_to_call_GetVersionString__HRESULT__0x_x_.
jmp 0x41e3b4
push esi
push str.Failed_to_call_Start__HRESULT__0x_x_.
lea edi, [ebx + 0x118]
mov dword [ebx + 0x120], esi
call fcn.00428bb0
add esp, 8
mov eax, dword [ebp - 0x218]
test eax, eax
je 0x41e3da
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [ebp - 0x21c]
test eax, eax
je 0x41e3ec
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
test esi, esi
jns 0x41e3fd
mov eax, dword [ebp - 0x224]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor edi, edi
cmp esi, edi
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x214]
sete bl
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x41e42d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0044ee97
mov esp, ebp
pop ebp
ret