Function at 0x4020d0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x40b048
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push ebx
push esi
push edi
mov ebx, ecx
push 0
mov dword [esp + 0x10], 0
call dword [sym.imp.ole32.dll_CoInitialize]
test eax, eax
mov dword [esp + 0x14], eax
jge 0x40211b
xor eax, eax
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
add esp, 0x38
ret 4
mov eax, dword [ebx + 0x20]
lea esi, [ebx + 0x20]
test eax, eax
je 0x40212b
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea edx, [esp + 0x10]
push edx
push 0x40f218
push 7
push 0
push 0x40c340
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov edi, eax
test edi, edi
jl 0x402176
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ole32.dll_OleRun]
mov edi, eax
test edi, edi
jl 0x40216c
mov eax, dword [esp + 0x10]
push esi
push 0x40f208
push eax
mov ecx, dword [eax]
call dword [ecx]
mov edi, eax
mov eax, dword [esp + 0x10]
push eax
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [esi]
mov dword [esp + 0x14], edi
test eax, eax
je 0x40234e
test eax, eax
jne 0x402192
push 0x80004003
call fcn.0040a3f0
mov eax, dword [esi]
push 0
push eax
mov ecx, dword [eax]
call dword [ecx + 0xfc]
mov edi, dword [esp + 0x48]
mov word [esp + 0x28], 8
push edi
call fcn.0040aae6
test eax, eax
mov dword [esp + 0x30], eax
jne 0x4021c6
test edi, edi
je 0x4021c6
push 0x8007000e
call fcn.0040a3f0
mov eax, dword [esi]
mov dword [esp + 0x40], 0
test eax, eax
jne 0x4021de
push 0x80004003
call fcn.0040a3f0
lea eax, [esp + 0x48]
mov edi, dword [esi]
push eax
mov eax, dword [esp + 0x2c]
sub esp, 0x10
mov edx, dword [edi]
mov ecx, esp
push edi
mov dword [ecx], eax
mov eax, dword [esp + 0x44]
mov dword [ecx + 4], eax
mov eax, dword [esp + 0x48]
mov dword [ecx + 8], eax
mov eax, dword [esp + 0x4c]
mov dword [ecx + 0xc], eax
call dword [edx + 0xe8]
test eax, eax
jge 0x40221e
push 0x40f208
push edi
push eax
call fcn.0040a3fe
movsx ecx, word [esp + 0x48]
lea edx, [esp + 0x28]
or edi, 0xffffffff
push edx
mov dword [ebx + 0x1c], ecx
mov dword [esp + 0x44], edi
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
test eax, eax
jge 0x402242
push eax
call fcn.0040a3f0
mov eax, dword [ebx + 0x1c]
test eax, eax
jne 0x40234e
lea ecx, [esp + 0x48]
mov dword [esp + 0x18], 0
call sub.MFC42.DLL_CString::CString
mov eax, dword [esi]
mov ebx, 1
test eax, eax
mov dword [esp + 0x40], ebx
jne 0x402277
push 0x80004003
call fcn.0040a3f0
mov esi, dword [esi]
lea ecx, [esp + 0xc]
push ecx
push esi
mov eax, dword [esi]
call dword [eax + 0xf0]
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x24]
push ecx
push eax
mov edx, dword [eax]
call dword [edx + 0x2c]
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x20]
push ecx
push eax
mov edx, dword [eax]
call dword [edx + 0x30]
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x18]
push ecx
push eax
mov edx, dword [eax]
call dword [edx + 0x24]
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x14]
push ecx
push eax
mov edx, dword [eax]
call dword [edx + 0x1c]
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x14]
push edx
push eax
push ecx
lea edx, [esp + 0x54]
push str.Error_0x_.8X_on_line__d__position__d_r_n
push edx
call sub.MFC42.DLL_CString::Format
mov eax, dword [esp + 0x2c]
add esp, 0x14
lea ecx, [esp + 0x1c]
push eax
call sub.MFC42.DLL_CString::CString_3
lea ecx, [esp + 0x1c]
mov byte [esp + 0x40], 2
push ecx
lea ecx, [esp + 0x4c]
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x1c]
mov byte [esp + 0x40], bl
call fcn.00409ede
mov edx, dword [esp + 0x18]
push edx
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [esp + 0x48]
push 0
push 0
push eax
call sub.MFC42.DLL_AfxMessageBox
lea ecx, [esp + 0x48]
mov dword [esp + 0x40], edi
call fcn.00409ede
xor eax, eax
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
add esp, 0x38
ret 4
mov ecx, dword [esp + 0x38]
mov eax, dword [ebx + 0x1c]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
add esp, 0x38
ret 4