Function at 0x4010f0
Capabilities:
Load windows common language runtime

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40cea0
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x480
mov eax, dword [0x414004]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x468], edx
mov dword [ebp - 0x450], ecx
mov eax, dword [ebx + 8]
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push str.kernel32
mov dword [ebp - 0x464], eax
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.SetDefaultDllDirectories
push eax
call edi
test eax, eax
je 0x40116c
push 0x800
call eax
push 0x411eb4
call esi
push str.CLRCreateInstance
push eax
call edi
mov dword [ebp - 0x434], 0
mov dword [ebp - 4], 0
test eax, eax
je 0x401237
mov dword [ebp - 0x430], 0
lea ecx, [ebp - 0x430]
mov byte [ebp - 4], 1
push ecx
push 0x41206c
push 0x41207c
call eax
mov eax, dword [ebp - 0x430]
test eax, eax
je 0x40121f
mov dword [ebp - 0x42c], 0
lea edx, [ebp - 0x42c]
mov byte [ebp - 4], 2
mov ecx, dword [eax]
push edx
push 0x41208c
push str.v4.0.30319
push eax
call dword [ecx + 0xc]
mov eax, dword [ebp - 0x42c]
test eax, eax
je 0x40120b
mov ecx, dword [eax]
lea edx, [ebp - 0x434]
push edx
push 0x41203c
push 0x41205c
push eax
call dword [ecx + 0x24]
mov eax, dword [ebp - 0x42c]
mov byte [ebp - 4], 1
test eax, eax
je 0x401219
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x430]
mov byte [ebp - 4], 0
test eax, eax
je 0x40122d
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x434]
test eax, eax
jne 0x40125a
lea eax, [ebp - 0x434]
push eax
push 0x41203c
push 0x41205c
push 0
push 0
push 0
call dword [sym.imp.mscoree.dll_CorBindToRuntimeEx]
mov eax, dword [ebp - 0x434]
mov dword [ebp - 0x44c], 0
mov byte [ebp - 4], 3
mov ecx, dword [eax]
push eax
call dword [ecx + 0x28]
mov eax, dword [ebp - 0x434]
lea edx, [ebp - 0x44c]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x34]
mov dword [ebp - 0x448], 0
mov byte [ebp - 4], 4
lea edx, [ebp - 0x448]
mov eax, dword [ebp - 0x44c]
push edx
push 0x41204c
push eax
mov ecx, dword [eax]
call dword [ecx]
mov dword [ebp - 0x444], 0
mov byte [ebp - 4], 5
lea edx, [ebp - 0x444]
mov eax, dword [ebp - 0x448]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x28]
mov dword [ebp - 0x440], 0
mov byte [ebp - 4], 6
lea edx, [ebp - 0x440]
mov eax, dword [ebp - 0x444]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x50]
mov dword [ebp - 0x43c], 0
mov byte [ebp - 4], 7
mov eax, dword [ebp - 0x440]
mov edi, dword [sym.imp.OLEAUT32.dll_SysReAllocString]
push str.System.Reflection.Assembly
mov dword [ebp - 0x42c], eax
call edi
mov esi, eax
mov dword [ebp - 0x430], esi
test esi, esi
je 0x4016c3
mov byte [ebp - 4], 8
lea edx, [ebp - 0x43c]
mov ecx, dword [ebp - 0x42c]
push edx
push esi
push ecx
mov eax, dword [ecx]
call dword [eax + 0x44]
push esi
mov byte [ebp - 4], 7
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push 0x104
lea ecx, [ebp - 0x220]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveExtensionW]
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
mov esi, dword [sym.imp.SHLWAPI.dll_StrCpyW]
push eax
lea eax, [ebp - 0x428]
push eax
call esi
lea ecx, [ebp - 0x220]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x401390
sub ecx, edx
lea eax, [ebp - 0x220]
sar ecx, 1
push str..dll
lea eax, [eax + ecx*2]
push eax
call esi
push 1
push 0
push 0xc
call dword [sym.imp.OLEAUT32.dll_SafeArrayCopyData]
push 4
mov dword [ebp - 0x42c], eax
call fcn.00401f12
mov esi, dword [sym.imp.OLEAUT32.dll_VariantCopy]
add esp, 4
mov dword [ebp - 0x430], eax
mov dword [eax], 0
xor eax, eax
mov word [ebp - 0x460], ax
lea eax, [ebp - 0x460]
push eax
call esi
test eax, eax
js 0x4016cd
mov eax, 8
mov word [ebp - 0x460], ax
lea eax, [ebp - 0x220]
push eax
call edi
mov dword [ebp - 0x458], eax
test eax, eax
je 0x4016d3
lea eax, [ebp - 0x460]
push eax
push dword [ebp - 0x430]
push dword [ebp - 0x42c]
call dword [sym.imp.OLEAUT32.dll_SafeArrayCopy]
lea eax, [ebp - 0x460]
push eax
call esi
mov esi, dword [sym.imp.OLEAUT32.dll_VariantClear]
lea eax, [ebp - 0x480]
xorps xmm0, xmm0
push eax
movups xmmword [ebp - 0x480], xmm0
call esi
mov eax, dword [ebp - 0x43c]
xorps xmm0, xmm0
mov dword [ebp - 0x430], eax
lea eax, [ebp - 0x460]
push eax
movups xmmword [ebp - 0x460], xmm0
call esi
mov byte [ebp - 4], 0xa
movups xmm0, xmmword [ebp - 0x460]
push str.LoadFrom
movups xmmword [ebp - 0x490], xmm0
call edi
mov esi, eax
mov dword [ebp - 0x46c], esi
test esi, esi
je 0x4016f3
mov byte [ebp - 4], 0xb
lea eax, [ebp - 0x480]
mov edx, dword [ebp - 0x430]
movups xmm0, xmmword [ebp - 0x490]
push eax
push dword [ebp - 0x42c]
mov ecx, dword [edx]
sub esp, 0x10
mov eax, esp
push 0
push 0x118
push esi
push edx
movups xmmword [eax], xmm0
call dword [ecx + 0xe4]
push esi
mov edi, eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
lea eax, [ebp - 0x460]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
test edi, edi
js 0x40161b
mov esi, dword [ebp - 0x478]
mov dword [ebp - 0x46c], esi
mov dword [ebp - 0x438], 0
lea eax, [ebp - 0x428]
mov byte [ebp - 4], 0xd
push eax
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov edi, eax
mov dword [ebp - 0x42c], edi
test edi, edi
je 0x4016fd
lea ecx, [ebp - 0x438]
mov byte [ebp - 4], 0xe
mov eax, dword [esi]
push ecx
push edi
push esi
call dword [eax + 0x44]
push edi
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [ebp - 0x438]
xorps xmm0, xmm0
mov dword [ebp - 0x42c], eax
lea eax, [ebp - 0x460]
push eax
movups xmmword [ebp - 0x460], xmm0
call dword [sym.imp.OLEAUT32.dll_VariantClear]
mov byte [ebp - 4], 0xf
movups xmm0, xmmword [ebp - 0x460]
mov eax, dword [ebp - 0x450]
movups xmmword [ebp - 0x490], xmm0
test eax, eax
jne 0x40158c
xor edi, edi
mov dword [ebp - 0x450], edi
jmp 0x4015aa
push eax
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov edi, eax
mov dword [ebp - 0x450], edi
test edi, edi
je 0x401707
movups xmm0, xmmword [ebp - 0x490]
push dword [ebp - 0x464]
mov byte [ebp - 4], 0x10
push dword [ebp - 0x468]
mov edx, dword [ebp - 0x42c]
sub esp, 0x10
mov eax, esp
mov ecx, dword [edx]
push 0
push 0x118
push edi
push edx
movups xmmword [eax], xmm0
call dword [ecx + 0xe4]
push edi
mov dword [ebp - 0x42c], eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
lea eax, [ebp - 0x460]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov byte [ebp - 4], 0xc
mov eax, dword [ebp - 0x438]
test eax, eax
je 0x401607
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov byte [ebp - 4], 9
test esi, esi
je 0x401615
mov eax, dword [esi]
push esi
call dword [eax + 8]
mov edi, dword [ebp - 0x42c]
lea eax, [ebp - 0x480]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0x43c]
test eax, eax
je 0x40163c
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x440]
test eax, eax
je 0x401650
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x444]
test eax, eax
je 0x401664
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x448]
test eax, eax
je 0x401678
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x44c]
test eax, eax
je 0x40168c
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x434]
test ecx, ecx
je 0x4016a3
mov edx, dword [ecx]
push ecx
call dword [edx + 8]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00401cb3
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
push 0x8007000e
call fcn.00401030
push eax
call fcn.00401030
mov eax, 0xa
mov dword [ebp - 0x458], 0x8007000e
push 0x8007000e
mov word [ebp - 0x460], ax
call fcn.00401030
push 0x8007000e
call fcn.00401030
push 0x8007000e
call fcn.00401030
push 0x8007000e
call fcn.00401030
int3