Function at 0x4099a0
Capabilities:
Load windows common language runtime

Disassembly:
push 0x264
mov eax, 0x43365b
call fcn.004150b9
mov eax, edx
mov dword [ebp - 0x238], eax
mov esi, ecx
mov dword [ebp - 0x224], esi
mov dword [ebp - 0x220], esi
mov ecx, dword [ebp + 8]
xor ebx, ebx
push str.GetCORVersion
mov dword [ebp - 0x230], ecx
mov ecx, dword [ebp + 0xc]
push eax
mov dword [ebp - 0x234], esi
mov dword [ebp - 0x240], ecx
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x409a0e
mov dword [esi], 1
mov dword [esi + 0x10], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 8], ebx
mov dword [esi + 4], ebx
mov dword [esi + 0x14], ebx
mov eax, esi
jmp 0x409c65
lea ecx, [ebp - 0x23c]
mov edx, 0x100
push ecx
push edx
lea ecx, [ebp - 0x21c]
mov dword [ebp - 0x23c], edx
push ecx
call eax
mov edi, eax
mov dword [ebp - 0x220], edi
test edi, edi
jns 0x409a4c
push ecx
mov eax, esp
mov edx, str.There_were_problems_loading_the_Common_Language_Runtime_through_v2_interfaces._nMsCorEE_failed_to_return_the_version_of_the_installed_CLR.
mov ecx, edi
mov dword [eax], ebx
call fcn.0040bd0f
pop ecx
mov dword [esi], edi
jmp 0x4099f8
cmp word [ebp - 0x21c], 0x76
lea edx, [ebp - 0x21c]
je 0x409a66
cmp word [ebp - 0x21c], 0x56
jne 0x409a6c
lea edx, [ebp - 0x21a]
lea ecx, [ebp - 0x270]
call fcn.004032c1
mov esi, dword [ebp - 0x230]
lea edi, [ebp - 0x25c]
sub esp, 0x10
lea ecx, [ebp - 0x270]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov edi, esp
lea esi, [ebp - 0x25c]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.00407070
test al, al
jne 0x409af5
push dword [ebp - 0x240]
lea edx, [ebp - 0x25c]
mov dword [ebp - 0x250], ebx
push dword [ebp - 0x230]
mov dword [ebp - 0x254], ebx
push ecx
lea ecx, [ebp - 0x270]
mov dword [ebp - 0x258], ebx
mov dword [ebp - 0x25c], ebx
mov byte [ebp - 0x24c], bl
call fcn.0040b893
mov esi, dword [ebp - 0x224]
add esp, 0xc
mov dword [esi], 0x80004005
jmp 0x4099f8
push str.CorBindToRuntime
push dword [ebp - 0x238]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x409b32
push ecx
mov eax, esp
mov edx, str.There_were_problems_loading_the_Common_Language_Runtime_through_v2_interfaces._nMsCorEE_is_missing_the_CorBindToRuntime_exported_function.
mov ecx, 0x80004002
mov dword [eax], ebx
call fcn.0040bd0f
mov esi, dword [ebp - 0x224]
mov eax, dword [ebp - 0x220]
pop ecx
mov dword [esi], eax
jmp 0x4099f8
lea ecx, [ebp - 0x228]
mov byte [ebp - 4], 1
push ecx
push 0x445278
push 0x4454cc
push ebx
lea ecx, [ebp - 0x21c]
mov dword [ebp - 0x228], ebx
push ecx
call eax
mov esi, eax
lea ecx, [ebp - 0x22c]
lea eax, [ebp - 0x228]
push eax
call fcn.0040e82f
mov byte [ebp - 4], 2
test esi, esi
js 0x409ba7
mov eax, dword [ebp - 0x22c]
test eax, eax
je 0x409ba7
push ecx
mov ecx, esp
push eax
mov dword [ecx], eax
mov ecx, dword [eax]
call dword [ecx + 4]
sub esp, 0x10
lea esi, [ebp - 0x270]
mov edi, esp
push ecx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov esi, dword [ebp - 0x224]
mov ecx, esi
call fcn.00407fcd
jmp 0x409bda
push ecx
test esi, esi
mov eax, esp
mov edi, 0x80004003
mov edx, str.There_were_problems_loading_the_Common_Language_Runtime_through_v2_interfaces._nThe_selected_runtime_failed_to_provide_the_ICorRuntimeHost_interface.
cmovs edi, esi
mov ecx, edi
mov dword [eax], ebx
call fcn.0040bd0f
mov esi, dword [ebp - 0x224]
pop ecx
mov dword [esi], edi
mov dword [esi + 0x10], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 8], ebx
mov dword [esi + 4], ebx
mov dword [esi + 0x14], ebx
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x22c]
test eax, eax
je 0x409bee
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x228]
test eax, eax
je 0x409a07
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x409a07
call fcn.00415006
ret