Function at 0x407eb0
Capabilities:
Load windows common language runtime
Resolve function by parsing pe exports

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x40b6a4
mov eax, dword fs:[0]
push eax
sub esp, 0x100
mov eax, dword [0x415004]
xor eax, esp
mov dword [esp + 0xf8], eax
push ebx
push esi
push edi
mov eax, dword [0x415004]
xor eax, esp
push eax
lea eax, [esp + 0x110]
mov dword fs:[0], eax
mov ebx, ecx
push ebx
mov dword [esp + 0x3c], 0
call fcn.004088b0
test al, al
jne 0x40c4f0
mov edi, dword [ebp + 0xc]
push edi
call fcn.004088b0
test al, al
jne 0x40c4f0
mov dword [esp + 0x18], 0
push ebx
mov dword [esp + 0x11c], 0
mov dword [esp + 0x14], 0
call fcn.004088b0
test al, al
jne 0x40c0bf
push edi
call fcn.004088b0
test al, al
jne 0x40c0bf
lea eax, [esp + 0x18]
test eax, eax
je 0x40c093
push 1
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
lea eax, [esp + 0x18]
push eax
push 0x40143c
push 0x40142c
push 4
push 0x401424
push edi
call dword [sym.imp.mscoree.dll_CorBindToRuntimeEx]
cmp eax, 0x80131700
je 0x40c09a
mov eax, dword [esp + 0x18]
test eax, eax
je 0x40c09a
mov ecx, dword [eax]
push eax
mov esi, dword [ecx + 0x28]
mov ecx, esi
call dword [0x41626c]
call esi
test eax, eax
js 0x40c075
xor ebx, ebx
cmp ebx, 0xffff0000
je 0x40c0cd
mov edi, dword [ebp + 0x24]
test edi, edi
je 0x40c4dc
lea eax, [esp + 0xc0]
test eax, eax
je 0x40c4dc
mov ebx, dword [ebp + 0x20]
mov eax, ebx
mov esi, dword [ebp + 0x1c]
sub eax, esi
dec eax
mov dword [esp + 0x2c], 0
mov dword [esp + 0x28], eax
lea eax, [esp + 0x28]
push eax
push 1
push 8
call dword [sym.imp.OLEAUT32.dll_SafeArrayDestroy]
mov dword [esp + 0x10], eax
test eax, eax
je 0x40c4dc
cmp dword [esp + 0x28], 0
mov dword [esp + 0x14], 0
je 0x408061
inc esi
cmp esi, ebx
jge 0x408061
push dword [edi + esi*4]
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov ebx, eax
test ebx, ebx
je 0x40c4dc
push ebx
lea eax, [esp + 0x18]
push eax
push dword [esp + 0x18]
call dword [sym.imp.OLEAUT32.dll_SafeArrayCopy]
push ebx
mov edi, eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
inc dword [esp + 0x14]
test edi, edi
js 0x40c4dc
mov edi, dword [ebp + 0x24]
inc esi
cmp esi, dword [ebp + 0x20]
jl 0x408020
mov dword [esp + 0x1c], 0
mov byte [esp + 0x118], 1
mov dword [esp + 0x20], 0
mov byte [esp + 0x118], 2
lea edx, [esp + 0x20]
mov eax, dword [esp + 0x18]
push edx
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 0x34]
mov ecx, esi
call dword [0x41626c]
call esi
mov ecx, eax
test ecx, ecx
js 0x40c49d
mov eax, dword [esp + 0x20]
test eax, eax
je 0x40c49d
mov esi, dword [eax]
lea ecx, [esp + 0x1c]
push ecx
push 0x401414
push eax
mov esi, dword [esi]
mov ecx, esi
call dword [0x41626c]
call esi
mov ecx, eax
test ecx, ecx
js 0x40c49d
cmp dword [esp + 0x1c], 0
je 0x40c49d
mov dword [esp + 0x24], 0
push 0xc
mov byte [esp + 0x11c], 3
call fcn.004098bd
mov ebx, eax
add esp, 4
mov dword [esp + 0x14], ebx
mov byte [esp + 0x118], 4
test ebx, ebx
je 0x40c130
mov esi, dword [ebp + 0x10]
push esi
mov dword [ebx + 4], 0
mov dword [ebx + 8], 1
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov dword [ebx], eax
test eax, eax
je 0x40c0ea
mov byte [esp + 0x118], 3
mov dword [esp + 0x14], ebx
test ebx, ebx
je 0x40c137
push 0xc
mov byte [esp + 0x11c], 5
call fcn.004098bd
mov edi, eax
mov dword [esp + 0x38], eax
add esp, 4
mov dword [esp + 0x28], edi
mov byte [esp + 0x118], 6
test edi, edi
je 0x40c1a4
push 0x4013c8
mov dword [edi + 4], 0
mov dword [edi + 8], 1
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov dword [edi], eax
test eax, eax
je 0x40c175
mov byte [esp + 0x118], 5
mov dword [esp + 0x28], edi
test edi, edi
je 0x40c1af
mov byte [esp + 0x118], 7
lea ecx, [esp + 0x24]
mov eax, dword [esp + 0x1c]
push ecx
push dword [edi]
mov esi, dword [eax]
push dword [ebx]
push eax
mov esi, dword [esi + 0x94]
mov ecx, esi
call dword [0x41626c]
call esi
mov ecx, eax
test ecx, ecx
js 0x40c43a
cmp dword [esp + 0x24], 0
je 0x40c43a
xor eax, eax
lea edi, [esp + 0x3c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
mov word [esp + 0x3c], ax
mov byte [esp + 0x118], 8
lea edx, [esp + 0x3c]
mov eax, dword [esp + 0x24]
push edx
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 0x38]
mov ecx, esi
call dword [0x41626c]
call esi
test eax, eax
js 0x40c1e1
mov dword [esp + 0x30], 0
mov byte [esp + 0x118], 9
lea eax, [esp + 0x30]
push dword [esp + 0x44]
push eax
call dword [sym.imp.ATL.DLL_AtlComPtrAssign]
mov eax, dword [esp + 0x30]
lea ecx, [esp + 0x54]
push ecx
push 0x800
push 1
mov dword [esp + 0x64], 0x4013b8
lea ecx, [esp + 0x64]
mov esi, dword [eax]
push ecx
push 0x401240
push eax
mov esi, dword [esi + 0x14]
mov ecx, esi
call dword [0x41626c]
call esi
test eax, eax
js 0x40c209
mov eax, 0x2000
mov word [esp + 0xc4], ax
mov eax, dword [esp + 0x10]
mov dword [esp + 0xcc], eax
mov eax, dword [ebp + 8]
test eax, eax
jne 0x40c2e6
mov ecx, 8
mov dword [esp + 0xdc], eax
mov word [esp + 0xd4], cx
lea eax, [esp + 0xc4]
lea ecx, [esp + 0x50]
mov dword [esp + 0x7c], eax
push ecx
lea ecx, [esp + 0xec]
mov dword [esp + 0x84], 0
push ecx
lea ecx, [esp + 0xb4]
mov dword [esp + 0x8c], 2
push ecx
mov eax, 0x17
mov dword [esp + 0x94], 0
mov word [esp + 0xb8], ax
lea ecx, [esp + 0x88]
mov eax, dword [esp + 0x3c]
push ecx
push 1
push 0x800
mov dword [esp + 0xcc], 0
mov dword [esp + 0x68], 0
mov esi, dword [eax]
push 0x401240
push dword [esp + 0x70]
mov esi, dword [esi + 0x18]
mov ecx, esi
push eax
call dword [0x41626c]
call esi
mov ecx, eax
mov eax, dword [esp + 0xb4]
mov dword [esp + 0x10], eax
test ecx, ecx
js 0x40c365
mov byte [esp + 0x118], 8
mov eax, dword [esp + 0x30]
test eax, eax
je 0x408370
mov ecx, dword [eax]
push eax
mov esi, dword [ecx + 8]
mov ecx, esi
call dword [0x41626c]
call esi
mov eax, 0xfff
mov byte [esp + 0x118], 7
cmp word [esp + 0x3c], ax
je 0x40c401
lea eax, [esp + 0x3c]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov esi, dword [esp + 0x34]
or edi, 0xffffffff
mov byte [esp + 0x118], 5
mov eax, edi
lock xadd dword [esi + 8], eax
dec eax
jne 0x4083d3
mov eax, dword [esi]
test eax, eax
je 0x4083bf
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
jne 0x40c410
push esi
call sub.msvcrt.dll_free
add esp, 4
mov dword [esp + 0x28], 0
mov byte [esp + 0x118], 3
lock xadd dword [ebx + 8], edi
dec edi
jne 0x408412
mov eax, dword [ebx]
test eax, eax
je 0x4083fe
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov dword [ebx], 0
mov eax, dword [ebx + 4]
test eax, eax
jne 0x40c425
push ebx
call sub.msvcrt.dll_free
add esp, 4
mov byte [esp + 0x118], 2
mov eax, dword [esp + 0x24]
mov dword [esp + 0x14], 0
test eax, eax
je 0x40843a
mov ecx, dword [eax]
push eax
mov esi, dword [ecx + 8]
mov ecx, esi
call dword [0x41626c]
call esi
mov byte [esp + 0x118], 1
mov eax, dword [esp + 0x20]
test eax, eax
je 0x40845a
mov ecx, dword [eax]
push eax
mov esi, dword [ecx + 8]
mov ecx, esi
call dword [0x41626c]
call esi
mov byte [esp + 0x118], 0
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x40847a
mov ecx, dword [eax]
push eax
mov esi, dword [ecx + 8]
mov ecx, esi
call dword [0x41626c]
call esi
mov dword [esp + 0x118], 0xffffffff
mov eax, dword [esp + 0x18]
test eax, eax
je 0x40849d
mov ecx, dword [eax]
push eax
mov esi, dword [ecx + 8]
mov ecx, esi
call dword [0x41626c]
call esi
mov esi, dword [esp + 0x10]
push dword [esp + 0x38]
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, esi
mov ecx, dword [esp + 0x110]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xf8]
xor ecx, esp
call fcn.00409c10
mov esp, ebp
pop ebp
ret 0x20
mov ecx, dword [0x4157a0]
push eax
push 5
push 0
mov esi, dword [ecx]
push ecx
mov esi, dword [esi + 4]
mov ecx, esi
call dword [0x41626c]
call esi
add esp, 0x10
mov esi, 0xffff0000
jmp 0x40c0d1
mov eax, dword [0x4157a0]
push ebx
push edi
push 3
mov esi, dword [eax]
push 0
push eax
mov esi, dword [esi + 4]
mov ecx, esi
call dword [0x41626c]
call esi
add esp, 0x14
mov esi, 0xffff0000
jmp 0x40c0d1
mov ebx, 0xffff0000
mov dword [esp + 0x10], ebx
jmp 0x407fb4
mov esi, dword [esp + 0x10]
lea ecx, [esp + 0x18]
mov dword [esp + 0x118], 0xffffffff
call fcn.0040d1d6
jmp 0x4084a1
test esi, esi
je 0x408130
push 0x413ba0
lea eax, [esp + 0xa0]
mov dword [esp + 0xa0], 0x4020e0
push eax
mov dword [esp + 0xa8], 0x8007000e
mov dword [esp + 0xac], 0
mov dword [esp + 0xb0], 0
call sub.msvcrt.dll__CxxThrowException
xor ebx, ebx
jmp 0x408130
push 0x413ba0
lea eax, [esp + 0x90]
mov dword [esp + 0x90], 0x4020e0
push eax
mov dword [esp + 0x98], 0x8007000e
mov dword [esp + 0x9c], 0
mov dword [esp + 0xa0], 0
call sub.msvcrt.dll__CxxThrowException
push 0x413ba0
lea eax, [esp + 0x60]
mov dword [esp + 0x60], 0x4020e0
push eax
mov dword [esp + 0x68], 0x8007000e
mov dword [esp + 0x6c], 0
mov dword [esp + 0x70], 0
call sub.msvcrt.dll__CxxThrowException
xor edi, edi
mov dword [esp + 0x34], edi
jmp 0x408193
push 0x413ba0
lea eax, [esp + 0x70]
mov dword [esp + 0x70], 0x4020e0
push eax
mov dword [esp + 0x78], 0x8007000e
mov dword [esp + 0x7c], 0
mov dword [esp + 0x80], 0
call sub.msvcrt.dll__CxxThrowException
mov ecx, dword [0x415798]
push eax
push 7
push 0
mov esi, dword [ecx]
push ecx
mov esi, dword [esi + 4]
mov ecx, esi
call dword [0x41626c]
call esi
add esp, 0x10
mov dword [esp + 0x10], 0xffff0000
jmp 0x40c240
mov ecx, dword [0x415798]
push eax
push 8
push 0
mov esi, dword [ecx]
push ecx
mov esi, dword [esi + 4]
mov ecx, esi
call dword [0x41626c]
call esi
add esp, 0x10
mov dword [esp + 0x10], 0xffff0000
lea ecx, [esp + 0x30]
mov byte [esp + 0x118], 8
call fcn.0040d1d6
lea ecx, [esp + 0x3c]
mov byte [esp + 0x118], 7
call fcn.0040dbdf
mov esi, dword [esp + 0x34]
or edi, 0xffffffff
mov byte [esp + 0x118], 5
mov eax, edi
lock xadd dword [esi + 8], eax
dec eax
jne 0x40c272
push ecx
mov ecx, esi
call fcn.0040d460
mov dword [esp + 0x28], 0
mov byte [esp + 0x118], 3
lock xadd dword [ebx + 8], edi
dec edi
jne 0x40c292
push ecx
mov ecx, ebx
call fcn.0040d460
lea ecx, [esp + 0x24]
mov dword [esp + 0x14], 0
mov byte [esp + 0x118], 2
call fcn.0040d1d6
lea ecx, [esp + 0x20]
mov byte [esp + 0x118], 1
call fcn.0040d1d6
lea ecx, [esp + 0x1c]
mov byte [esp + 0x118], 0
call fcn.0040d1d6
lea ecx, [esp + 0x18]
mov dword [esp + 0x118], 0xffffffff
call fcn.0040d1d6
jmp 0x40849d
push eax
call dword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov dword [esp + 0x38], eax
test eax, eax
jne 0x40829a
lea ecx, [esp + 0x30]
mov dword [esp + 0x10], 0xffff0000
mov byte [esp + 0x118], 8
call fcn.0040d1d6
lea ecx, [esp + 0x3c]
mov byte [esp + 0x118], 7
call fcn.0040dbdf
mov esi, dword [esp + 0x34]
or edi, 0xffffffff
mov byte [esp + 0x118], 5
mov eax, edi
lock xadd dword [esi + 8], eax
dec eax
jne 0x40c344
push ecx
mov ecx, esi
call fcn.0040d460
mov dword [esp + 0x28], 0
mov byte [esp + 0x118], 3
lock xadd dword [ebx + 8], edi
dec edi
je 0x40c28a
jmp 0x40c292
mov eax, dword [0x415798]
mov esi, dword [eax]
mov esi, dword [esi + 4]
cmp ecx, 0x80020009
jne 0x40c382
push dword [esp + 0xf0]
push 0xa
jmp 0x40c385
push ecx
push 9
push 0
push eax
mov ecx, esi
call dword [0x41626c]
call esi
add esp, 0x10
mov dword [esp + 0x10], 0xffff0000
lea ecx, [esp + 0x30]
mov byte [esp + 0x118], 8
call fcn.0040d1d6
lea ecx, [esp + 0x3c]
mov byte [esp + 0x118], 7
call fcn.0040dbdf
mov esi, dword [esp + 0x34]
or edi, 0xffffffff
mov byte [esp + 0x118], 5
mov eax, edi
lock xadd dword [esi + 8], eax
dec eax
jne 0x40c3e0
push ecx
mov ecx, esi
call fcn.0040d460
mov dword [esp + 0x28], 0
mov byte [esp + 0x118], 3
lock xadd dword [ebx + 8], edi
dec edi
je 0x40c28a
jmp 0x40c292
mov eax, 8
mov word [esp + 0x3c], ax
jmp 0x408388
push eax
call sub.msvcrt.dll_free
add esp, 4
mov dword [esi + 4], 0
jmp 0x4083ca
push eax
call sub.msvcrt.dll_free
add esp, 4
mov dword [ebx + 4], 0
jmp 0x408409
mov eax, dword [0x415798]
push ecx
push 7
push 0
mov esi, dword [eax]
push eax
mov esi, dword [esi + 4]
mov ecx, esi
call dword [0x41626c]
call esi
or esi, 0xffffffff
mov dword [esp + 0x20], 0xffff0000
add esp, 0x10
mov byte [esp + 0x118], 5
mov eax, esi
lock xadd dword [edi + 8], eax
dec eax
jne 0x40c47c
push ecx
mov ecx, edi
call fcn.0040d460
mov dword [esp + 0x28], 0
mov byte [esp + 0x118], 3
lock xadd dword [ebx + 8], esi
dec esi
je 0x40c28a
jmp 0x40c292
mov eax, dword [0x415798]
push ecx
push 6
push 0
mov esi, dword [eax]
push eax
mov esi, dword [esi + 4]
mov ecx, esi
call dword [0x41626c]
call esi
add esp, 0x10
mov byte [esp + 0x118], 1
lea ecx, [esp + 0x20]
call fcn.0040d1d6
lea ecx, [esp + 0x1c]
mov byte [esp + 0x118], 0
call fcn.0040d1d6
lea ecx, [esp + 0x18]
mov dword [esp + 0x118], 0xffffffff
call fcn.0040d1d6
mov esi, 0xffff0000
jmp 0x4084a1