Function at 0x40d5d0
Capabilities:
Initialize iwebbrowser2

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d90a0
mov eax, dword fs:[0]
push eax
sub esp, 0x19c
mov eax, dword [0x510918]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, ecx
mov dword [ebp - 4], 0
mov dword [ebp - 0x148], 0
lea eax, [ebp - 0x148]
push eax
push 0x4e25b8
push 0x15
push 0
push 0x4e25a8
mov byte [ebp - 4], 1
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov esi, eax
test esi, esi
jns 0x40d6fc
mov ecx, dword [0x513098]
and ecx, 3
cmp cl, 3
jne 0x40db94
xor eax, eax
mov dword [ebp - 0x5c], 7
mov dword [ebp - 0x60], 0
mov word [ebp - 0x70], ax
mov byte [ebp - 0x58], al
push 0x1e
push str.Cant_create_instance__code_
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 2
call fcn.00404c90
cmp byte [ebp - 0x58], 0
mov ecx, 0x10
mov eax, 0xa
cmovne eax, ecx
push eax
push 0x20
lea eax, [ebp - 0x54]
push eax
push esi
call fcn.004a3583
add esp, 0x10
cmp word [ebp - 0x54], 0
jne 0x40d6a5
xor ecx, ecx
jmp 0x40d6bf
lea ecx, [ebp - 0x54]
lea edx, [ecx + 2]
jmp 0x40d6b0
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40d6b0
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x54]
push eax
lea ecx, [ebp - 0x70]
call fcn.00404c90
lea eax, [ebp - 0x70]
push eax
push eax
push 0x25
push str.Elements::CNavigateInNewWindowTask::Perform
push 3
call fcn.00428590
add esp, 0x14
cmp dword [ebp - 0x5c], 8
jb 0x40db94
push dword [ebp - 0x70]
call fcn.004a295f
add esp, 4
jmp 0x40db94
mov eax, dword [ebp - 0x148]
push 0xffffffffffffffff
mov ecx, dword [eax]
push eax
call dword [ecx + 0x118]
cmp byte [edi + 0x1c], 0
je 0x40d757
mov eax, dword [ebp - 0x148]
push 0
mov ecx, dword [eax]
push eax
call dword [ecx + 0xac]
mov eax, dword [ebp - 0x148]
push 0
mov ecx, dword [eax]
push eax
call dword [ecx + 0xbc]
mov eax, dword [ebp - 0x148]
push 0
mov ecx, dword [eax]
push eax
call dword [ecx + 0x110]
mov eax, dword [ebp - 0x148]
push 0
mov ecx, dword [eax]
push eax
call dword [ecx + 0xc4]
mov eax, dword [ebp - 0x148]
lea edx, [ebp - 0x154]
mov dword [ebp - 0x154], 0
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0x94]
cmp dword [edi + 0x28], 1
jne 0x40d8e5
mov esi, dword [edi + 0x20]
mov ebx, dword [edi + 0x24]
mov eax, esi
mov dword [ebp - 0x78], eax
mov eax, dword [ebp - 0x154]
mov ecx, ebx
mov dword [ebp - 0x80], 0
mov dword [ebp - 0x7c], 0
mov dword [ebp - 0x74], ecx
test eax, eax
je 0x40d8cb
cmp eax, 0xffffffff
je 0x40d8cb
mov esi, dword [sym.imp.USER32.dll_GetWindowLongW]
push 0xffffffffffffffec
push eax
call esi
push eax
push 0
push 0xfffffffffffffff0
push dword [ebp - 0x154]
call esi
push eax
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.USER32.dll_AdjustWindowRectEx]
mov esi, dword [ebp - 0x78]
sub esi, dword [ebp - 0x80]
mov ebx, dword [ebp - 0x74]
sub ebx, dword [ebp - 0x7c]
push 2
push dword [ebp - 0x154]
mov dword [ebp - 0x15c], esi
mov dword [ebp - 0x158], 0
mov dword [ebp - 0x14c], 0
call dword [sym.imp.USER32.dll_MonitorFromWindow]
lea ecx, [ebp - 0x3c]
push ecx
push eax
mov dword [ebp - 0x3c], 0x28
call dword [sym.imp.USER32.dll_GetMonitorInfoW]
test eax, eax
je 0x40d8a7
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x64]
push eax
call dword [sym.imp.USER32.dll_CopyRect]
mov esi, dword [ebp - 0x64]
mov eax, dword [ebp - 0x5c]
sub eax, dword [ebp - 0x15c]
mov dword [ebp - 0x14c], esi
sub eax, esi
cdq
sub eax, edx
sar eax, 1
cmp eax, esi
mov esi, dword [ebp - 0x60]
mov dword [ebp - 0x158], eax
lea edx, [ebp - 0x158]
lea ecx, [ebp - 0x14c]
cmovge ecx, edx
mov eax, dword [ecx]
mov dword [ebp - 0x158], eax
mov eax, dword [ebp - 0x58]
sub eax, ebx
sub eax, esi
cdq
sub eax, edx
sar eax, 1
cmp eax, esi
lea ecx, [ebp - 0x14c]
lea edx, [ebp - 0x150]
mov dword [ebp - 0x14c], esi
mov esi, dword [ebp - 0x15c]
cmovge ecx, edx
mov dword [ebp - 0x150], eax
mov eax, dword [ecx]
mov dword [ebp - 0x14c], eax
mov eax, dword [ebp - 0x148]
push dword [ebp - 0x158]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x58]
mov eax, dword [ebp - 0x148]
push dword [ebp - 0x14c]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x60]
mov eax, dword [ebp - 0x148]
push esi
mov ecx, dword [eax]
push eax
call dword [ecx + 0x68]
mov eax, dword [ebp - 0x148]
push ebx
mov ecx, dword [eax]
push eax
call dword [ecx + 0x70]
mov esi, dword [sym.imp.OLEAUT32.dll_VariantClear]
xorps xmm0, xmm0
lea eax, [ebp - 0x184]
push eax
movq qword [ebp - 0x184], xmm0
movq qword [ebp - 0x17c], xmm0
call esi
lea eax, [edi + 4]
mov byte [ebp - 4], 3
cmp dword [eax + 0x14], 8
jb 0x40d916
mov eax, dword [eax]
xor ecx, ecx
mov word [ebp - 0x1a4], cx
push eax
lea ecx, [ebp - 0x1a4]
call fcn.0040dd10
xorps xmm0, xmm0
lea eax, [ebp - 0x16c]
push eax
movq qword [ebp - 0x16c], xmm0
movq qword [ebp - 0x164], xmm0
call esi
xorps xmm0, xmm0
lea eax, [ebp - 0x194]
push eax
movq qword [ebp - 0x194], xmm0
movq qword [ebp - 0x18c], xmm0
call esi
mov byte [ebp - 4], 6
mov ecx, dword [edi + 0x44]
mov eax, dword [edi + 0x48]
cmp ecx, eax
je 0x40da07
sub eax, ecx
mov dword [ebp - 0x174], eax
lea eax, [ebp - 0x174]
push eax
push 1
push 0x10
mov dword [ebp - 0x170], 0
call dword [sym.imp.OLEAUT32.dll_SafeArrayDestroy]
mov esi, eax
mov dword [ebp - 0x150], esi
test esi, esi
jne 0x40d9ab
mov eax, 0x8007000e
jmp 0x40d9b6
push esi
call dword [sym.imp.OLEAUT32.dll_SafeArrayUnlock]
test eax, eax
jns 0x40d9bc
push eax
call fcn.0040d140
mov byte [ebp - 4], 7
mov eax, dword [edi + 0x44]
mov ebx, dword [edi + 0x48]
push ecx
lea ecx, [ebp - 0x150]
mov dword [ebp - 0x14c], eax
sub ebx, eax
call fcn.0040dc90
push ebx
push dword [ebp - 0x14c]
push eax
call fcn.004a8c80
add esp, 0xc
mov eax, 0x2010
push esi
mov word [ebp - 0x16c], ax
call dword [sym.imp.OLEAUT32.dll_SafeArrayAccessData]
mov dword [ebp - 0x164], esi
mov byte [ebp - 4], 6
cmp dword [edi + 0x3c], 0
je 0x40da24
cmp dword [edi + 0x40], 8
lea eax, [edi + 0x2c]
jb 0x40da18
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x194]
call fcn.0040dd10
mov eax, dword [ebp - 0x148]
lea edx, [ebp - 0x194]
mov ecx, dword [eax]
push edx
lea edx, [ebp - 0x16c]
push edx
lea edx, [ebp - 0x184]
push edx
push edx
lea edx, [ebp - 0x1a4]
push edx
push eax
call dword [ecx + 0xd0]
mov esi, eax
test esi, esi
jns 0x40db17
mov ecx, dword [0x513098]
and ecx, 3
cmp cl, 3
jne 0x40db17
xor eax, eax
mov dword [ebp - 0x5c], 7
mov dword [ebp - 0x60], 0
mov word [ebp - 0x70], ax
mov byte [ebp - 0x58], al
push 0x1e
push str.Cant_navigate_to_URL__code_
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 8
call fcn.00404c90
cmp byte [ebp - 0x58], 0
mov ecx, 0x10
mov eax, 0xa
cmovne eax, ecx
push eax
push 0x20
lea eax, [ebp - 0x54]
push eax
push esi
call fcn.004a3583
add esp, 0x10
cmp word [ebp - 0x54], 0
jne 0x40dac2
xor ecx, ecx
jmp 0x40dadf
lea ecx, [ebp - 0x54]
lea edx, [ecx + 2]
jmp 0x40dad0
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40dad0
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x54]
push eax
lea ecx, [ebp - 0x70]
call fcn.00404c90
lea eax, [ebp - 0x70]
push eax
push eax
push 0x67
push str.Elements::CNavigateInNewWindowTask::Perform
push 3
call fcn.00428590
add esp, 0x14
mov byte [ebp - 4], 6
cmp dword [ebp - 0x5c], 8
jb 0x40db17
push dword [ebp - 0x70]
call fcn.004a295f
add esp, 4
cmp byte [edi + 0x1d], 0
je 0x40db6a
mov eax, dword [ebp - 0x148]
push 0xffffffffffffffff
mov ecx, dword [eax]
push eax
call dword [ecx + 0xa4]
lea ecx, [ebp - 0x144]
call fcn.004240f0
mov byte [ebp - 4], 9
mov eax, dword [ebp - 0x154]
mov dword [ebp - 0x150], eax
lea eax, [ebp - 0x150]
push eax
lea ecx, [ebp - 0x144]
call fcn.004244a0
lea ecx, [ebp - 0x144]
mov byte [ebp - 4], 6
call fcn.004241d0
mov esi, dword [sym.imp.OLEAUT32.dll_VariantCopy]
lea eax, [ebp - 0x194]
push eax
call esi
lea eax, [ebp - 0x16c]
push eax
call esi
lea eax, [ebp - 0x1a4]
push eax
call esi
lea eax, [ebp - 0x184]
push eax
call esi
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x148]
test eax, eax
je 0x40dba8
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004a2964
mov esp, ebp
pop ebp
ret