Function at 0x401120
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x403398
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 0x40116b
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 0x40117b
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
lea edx, [esp + 0x10]
push edx
push 0x405068
push 7
push 0
push 0x404190
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov edi, eax
test edi, edi
jl 0x4011c6
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ole32.dll_OleRun]
mov edi, eax
test edi, edi
jl 0x4011bc
mov eax, dword [esp + 0x10]
push esi
push 0x405058
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 0x40139e
test eax, eax
jne 0x4011e2
push 0x80004003
call fcn.00403072
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.0040311f
test eax, eax
mov dword [esp + 0x30], eax
jne 0x401216
test edi, edi
je 0x401216
push 0x8007000e
call fcn.00403072
mov eax, dword [esi]
mov dword [esp + 0x40], 0
test eax, eax
jne 0x40122e
push 0x80004003
call fcn.00403072
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 0x40126e
push 0x405058
push edi
push eax
call fcn.00403080
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 0x401292
push eax
call fcn.00403072
mov eax, dword [ebx + 0x1c]
test eax, eax
jne 0x40139e
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 0x4012c7
push 0x80004003
call fcn.00403072
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_1
lea ecx, [esp + 0x1c]
mov byte [esp + 0x40], 2
push ecx
lea ecx, [esp + 0x4c]
call fcn.00402e54
lea ecx, [esp + 0x1c]
mov byte [esp + 0x40], bl
call fcn.00402e36
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.00402e36
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