Function at 0x403d90
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x1d0
push ebx
push ebp
push esi
push edi
xor esi, esi
push esi
call dword [sym.imp.ole32.dll_CoInitialize]
lea eax, [esp + 0x1c]
push eax
push 0x42c5d4
push 0x17
push esi
push 0x42c6c4
mov dword [esp + 0x30], esi
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov edx, dword [esp + 0x1c]
or eax, 0xffffffff
cmp edx, esi
mov dword [esp + 0x54], eax
je 0x403de3
mov ecx, dword [edx]
mov ecx, dword [ecx + 0x1c]
lea eax, [esp + 0x54]
push eax
push edx
call ecx
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x54]
xor ecx, ecx
cmp eax, esi
mov dword [esp + 0x20], ecx
mov dword [esp + 0x4c], esi
jle 0x40435a
xor ebp, ebp
jmp 0x403e08
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
cmp ecx, ebp
je 0x403e1c
mov edx, dword [ecx]
mov eax, dword [edx + 8]
push ecx
call eax
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x20], ebp
mov ecx, dword [esp + 0x4c]
lea eax, [esp + 0x20]
push eax
sub esp, 0x10
mov eax, esp
mov word [esp + 0x50], 3
mov edi, dword [esp + 0x50]
mov dword [eax], edi
mov edi, dword [esp + 0x54]
mov dword [esp + 0x58], ecx
mov esi, dword [edx]
mov dword [eax + 4], edi
mov dword [eax + 8], ecx
mov ecx, dword [esp + 0x5c]
push edx
mov edx, dword [esi + 0x20]
mov dword [eax + 0xc], ecx
call edx
mov eax, dword [esp + 0x20]
cmp eax, ebp
mov dword [esp + 0x10], ebp
je 0x40433a
mov ecx, dword [eax]
lea edx, [esp + 0x10]
push edx
push 0x42c5c4
push eax
mov eax, dword [ecx]
call eax
mov eax, dword [esp + 0x10]
cmp eax, ebp
je 0x40433a
lea edx, [esp + 0x18]
mov dword [esp + 0x18], ebp
mov dword [esp + 0x24], ebp
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x48]
call eax
test eax, eax
jne 0x40430a
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
lea edx, [esp + 0x24]
push edx
push 0x42e0a0
push eax
mov eax, dword [ecx]
call eax
test eax, eax
jne 0x40430a
mov esi, dword [esp + 0x10]
push ebp
lea ecx, [esp + 0x18]
mov dword [esp + 0x18], ebp
call fcn.00403710
mov edx, dword [esp + 0x14]
mov ecx, dword [esi]
mov eax, dword [ecx + 0x78]
push edx
push esi
call eax
lea ecx, [esp + 0x14]
call fcn.004030f0
mov ecx, dword [eax]
push ecx
lea ecx, [esp + 0x30]
call fcn.00403a20
lea ecx, [esp + 0x2c]
call fcn.004034f0
mov edx, dword [esp + 0x1e4]
push edx
lea ecx, [esp + 0x80]
call fcn.00403a20
mov ecx, eax
call fcn.004034f0
mov eax, dword [eax]
cmp eax, ebp
mov edi, dword [esp + 0x2c]
jne 0x403f22
or eax, 0xffffffff
jmp 0x403f43
cmp dword [edi - 0xc], ebp
jge 0x403f2c
or eax, 0xffffffff
jmp 0x403f43
push eax
push edi
call fcn.0041933a
add esp, 8
cmp eax, ebp
jne 0x403f3f
or eax, 0xffffffff
jmp 0x403f43
sub eax, edi
sar eax, 1
cmp eax, 0xffffffff
mov eax, dword [esp + 0x7c]
sete bl
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403f69
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
jne 0x4042e5
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x64]
mov dword [esp + 0x64], ebp
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x94]
call eax
cmp dword [esp + 0x64], ebp
je 0x4042e5
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x5c]
push edx
mov dword [esp + 0x60], ebp
mov ecx, dword [eax]
push 0x42e0d0
push eax
mov eax, dword [ecx]
call eax
test eax, eax
jl 0x4042e5
mov eax, dword [esp + 0x5c]
lea edx, [esp + 0x58]
push edx
push 0x42e0c0
mov dword [esp + 0x60], ebp
mov ecx, dword [eax]
push 0x42e090
push eax
mov eax, dword [ecx + 0xc]
call eax
test eax, eax
jl 0x4042d9
mov eax, dword [esp + 0x58]
lea edx, [esp + 0x68]
mov dword [esp + 0x68], ebp
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0xc]
call eax
test eax, eax
jl 0x4042cd
mov esi, dword [esp + 0x68]
mov ebx, dword [sym.imp.USER32.dll_GetParent]
push esi
call ebx
test eax, eax
je 0x40401c
lea esp, [esp]
push esi
call ebx
mov esi, eax
push esi
call ebx
test eax, eax
jne 0x404010
cmp esi, ebp
mov dword [esp + 0x28], ebp
mov dword [esp + 0x30], ebp
mov dword [esp + 0x50], ebp
mov word [esp + 0x80], 3
je 0x40438f
push 3
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
push esi
call dword [sym.imp.USER32.dll_SetForegroundWindow]
push ebp
push str.CommandBarClass
push ebp
push esi
mov esi, dword [sym.imp.USER32.dll_FindWindowExW]
call esi
cmp eax, ebp
je 0x40438f
push ebp
push str.ReBarWindow32
push ebp
push eax
call esi
cmp eax, ebp
je 0x40438f
push ebp
push str.TabBandClass
push ebp
push eax
call esi
cmp eax, ebp
je 0x40438f
push ebp
push str.DirectUIHWND
push ebp
push eax
call esi
cmp eax, ebp
je 0x40438f
lea ecx, [esp + 0x38]
push ecx
push 0x42e0b0
push 0xfffffffffffffffc
push eax
call sub.OLEACC.dll_AccessibleObjectFromWindow
test eax, eax
jne 0x40438f
mov eax, dword [esp + 0x38]
mov edx, dword [eax]
mov edx, dword [edx + 0x20]
lea ecx, [esp + 0x30]
push ecx
push eax
call edx
test eax, eax
jl 0x40438f
mov edx, dword [esp + 0x30]
lea eax, [esp + 0x50]
push eax
mov eax, dword [esp + 0x3c]
lea ecx, [esp + 0xa4]
push ecx
push edx
push ebp
push eax
call sub.OLEACC.dll_AccessibleChildren
test eax, eax
jl 0x40438f
cmp dword [esp + 0x50], ebp
mov dword [esp + 0x60], ebp
jle 0x4042c4
mov ebp, dword [esp + 0x80]
lea ecx, [esp + 0xa8]
mov dword [esp + 0x34], ecx
mov edx, dword [esp + 0x34]
cmp word [edx - 8], 9
jne 0x4042a4
mov eax, edx
mov eax, dword [eax]
mov ecx, dword [eax]
lea edx, [esp + 0x74]
push edx
push 0x42e0b0
push eax
mov eax, dword [ecx]
call eax
test eax, eax
jl 0x4042a4
mov ecx, dword [esp + 0x74]
mov esi, dword [ecx]
lea edx, [esp + 0x90]
push edx
mov edx, dword [esp + 0x88]
sub esp, 0x10
mov eax, esp
mov dword [eax], ebp
mov dword [eax + 4], edx
xor edx, edx
mov dword [eax + 8], edx
mov edx, dword [esp + 0xa0]
mov dword [eax + 0xc], edx
mov eax, dword [esi + 0x34]
push ecx
call eax
test eax, eax
jl 0x4042a4
cmp dword [esp + 0x98], 0x3c
jne 0x4042a4
mov eax, dword [esp + 0x74]
lea edx, [esp + 0x30]
mov dword [esp + 0x38], eax
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x20]
call eax
test eax, eax
jl 0x4042a4
mov eax, dword [esp + 0x30]
lea ecx, [esp + 0x70]
push ecx
mov ecx, dword [esp + 0x3c]
lea edx, [esp + 0x144]
push edx
push eax
push 0
push ecx
call sub.OLEACC.dll_AccessibleChildren
xor ebx, ebx
cmp dword [esp + 0x70], ebx
jle 0x4042a4
lea edi, [esp + 0x148]
mov eax, dword [edi]
mov edx, dword [eax]
mov edx, dword [edx]
lea ecx, [esp + 0x6c]
push ecx
push 0x42e0b0
push eax
call edx
test eax, eax
jl 0x404294
push 0
lea ecx, [esp + 0x2c]
call fcn.00403710
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x84]
mov ecx, dword [esp + 0x6c]
mov esi, dword [ecx]
push eax
sub esp, 0x10
mov eax, esp
mov dword [eax], ebp
mov dword [eax + 4], edx
xor edx, edx
mov dword [eax + 8], edx
mov edx, dword [esp + 0xa0]
mov dword [eax + 0xc], edx
mov eax, dword [esi + 0x30]
push ecx
call eax
test eax, eax
jl 0x404294
lea ecx, [esp + 0x28]
call fcn.004030f0
mov ecx, dword [eax]
push ecx
lea ecx, [esp + 0x7c]
call fcn.00403a20
cmp dword [esp + 0x1e4], 0
mov esi, eax
jne 0x404255
or esi, 0xffffffff
jmp 0x404282
mov eax, dword [esi]
cmp dword [eax - 0xc], 0
jge 0x404262
or esi, 0xffffffff
jmp 0x404282
mov edx, dword [esp + 0x1e4]
push edx
push eax
call fcn.0041933a
add esp, 8
test eax, eax
jne 0x40427c
or esi, 0xffffffff
jmp 0x404282
sub eax, dword [esi]
sar eax, 1
mov esi, eax
lea ecx, [esp + 0x78]
call fcn.00403340
cmp esi, 0xffffffff
jne 0x404400
add ebx, 1
add edi, 0x10
cmp ebx, dword [esp + 0x70]
jl 0x4041d4
mov eax, dword [esp + 0x60]
add dword [esp + 0x34], 0x10
add eax, 1
cmp eax, dword [esp + 0x50]
mov dword [esp + 0x60], eax
jl 0x404110
mov edi, dword [esp + 0x2c]
xor ebp, ebp
lea ecx, [esp + 0x28]
call fcn.004036c0
mov eax, dword [esp + 0x58]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x5c]
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
lea eax, [edi - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x404301
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x14]
call fcn.004036c0
mov eax, dword [esp + 0x24]
cmp eax, ebp
je 0x40431a
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x18]
cmp eax, ebp
je 0x40432a
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x10]
cmp eax, ebp
je 0x40433a
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
lea eax, [esp + 0x3c]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov eax, dword [esp + 0x4c]
add eax, 1
cmp eax, dword [esp + 0x54]
mov dword [esp + 0x4c], eax
jl 0x403e00
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, dword [esp + 0x20]
test eax, eax
je 0x404370
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x404380
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
xor al, al
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1d0
ret 4
lea ecx, [esp + 0x28]
call fcn.004036c0
lea ecx, [esp + 0x2c]
call fcn.00403340
lea ecx, [esp + 0x14]
call fcn.004036c0
mov eax, dword [esp + 0x24]
cmp eax, ebp
je 0x4043ba
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x18]
cmp eax, ebp
je 0x4043ca
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x10]
cmp eax, ebp
je 0x4043da
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
lea eax, [esp + 0x3c]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov eax, dword [esp + 0x20]
cmp eax, ebp
je 0x4043f5
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x1c]
cmp eax, ebp
jmp 0x404376
mov edx, dword [esp + 0x84]
mov ecx, dword [esp + 0x6c]
mov esi, dword [ecx]
sub esp, 0x10
mov eax, esp
mov dword [eax], ebp
mov dword [eax + 4], edx
xor edx, edx
mov dword [eax + 8], edx
mov edx, dword [esp + 0x9c]
mov dword [eax + 0xc], edx
mov eax, dword [esi + 0x64]
push ecx
call eax
lea ecx, [esp + 0x28]
call fcn.004036c0
lea ecx, [esp + 0x2c]
call fcn.00403340
lea ecx, [esp + 0x14]
call fcn.004036c0
mov eax, dword [esp + 0x24]
test eax, eax
je 0x404457
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x18]
test eax, eax
je 0x404467
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x10]
test eax, eax
je 0x404477
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
lea eax, [esp + 0x3c]
push eax
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov eax, dword [esp + 0x20]
test eax, eax
je 0x404492
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x4044a2
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0x1d0
ret 4