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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x274
mov eax, dword [0xd08954]
xor eax, esp
mov dword [esp + 0x270], eax
mov edx, dword [ebp + 0xc]
xor eax, eax
push ebx
mov ebx, dword [ebp + 0x10]
push esi
push edi
mov edi, dword [ebp + 8]
push ecx
mov word [esp + 0x74], ax
mov ecx, edi
lea eax, [esp + 0x74]
mov dword [esp + 0x24], edx
push eax
push 0x8001
call fcn.00b90fd4
lea eax, [esp + 0x24]
push eax
mov eax, 0xb26b20
push eax
push eax
push ebx
call dword [sym.imp.api_ms_win_shcore_comhelpers_l1_1_0.dll_IUnknown_QueryService]
test eax, eax
js 0xb8cc36
mov ecx, dword [esp + 0x24]
mov eax, dword [ecx]
mov esi, dword [eax + 0x10]
lea eax, [esp + 0x70]
push eax
push ecx
cmp esi, fcn.00b8e250
jne 0xbd3f0e
call fcn.00b8e250
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x24]
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 8]
mov ecx, esi
call dword [0xd0cffc]
call esi
cmp dword [esp + 0x10], 0
je 0xb8cc36
mov esi, dword [edi]
xor eax, eax
mov word [esp + 0x70], ax
xor ecx, ecx
lea eax, [esp + 0x28]
mov dword [esp + 0x1c], ecx
push eax
push ecx
push 0xb2694c
lea eax, [esp + 0x2c]
push eax
push 1
push ecx
mov ecx, dword [esi + 0x28]
push edi
call dword [0xd0cffc]
call dword [esi + 0x28]
test eax, eax
jns 0xbd3f1d
mov edx, dword [esp + 0x20]
lea eax, [esp + 0x1c]
push eax
mov ecx, edi
call fcn.00b8c217
test eax, eax
js 0xb8caa9
push ecx
push ecx
mov ecx, dword [esp + 0x24]
lea eax, [esp + 0x78]
push eax
mov edx, 0x8000
call fcn.00b8d9e5
push dword [esp + 0x1c]
call dword [sym.imp.api_ms_win_shell_namespace_l1_1_0.dll_ILFree]
test dword [0xd0a5c0], 0x2000
je 0xb8cac4
lea eax, [esp + 0x70]
mov edx, 0xb26960
push eax
call fcn.00b90dd1
and dword [esp + 0x10], 0
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x14]
call fcn.00b8c268
test eax, eax
js 0xb8caea
push ebx
push dword [esp + 0x1c]
call dword [sym.imp.api_ms_win_shcore_comhelpers_l1_1_0.dll_IUnknown_SetSite]
mov ebx, dword [esp + 0x18]
mov esi, dword [edi]
lea eax, [esp + 0x14]
push eax
push 0
push 0xb26b60
mov ecx, dword [esi + 0x28]
lea eax, [esp + 0x2c]
push eax
push 1
push 0
push edi
call dword [0xd0cffc]
call dword [esi + 0x28]
test eax, eax
js 0xb8cbd4
call dword [sym.imp.USER32.dll_CreatePopupMenu]
mov edi, eax
test edi, edi
je 0xb8cbc0
mov eax, dword [esp + 0x14]
push 1
push 0x7fff
push 1
mov esi, dword [eax]
push 0
push edi
push eax
mov ecx, dword [esi + 0xc]
call dword [0xd0cffc]
call dword [esi + 0xc]
push 0
push 0
push edi
call dword [sym.imp.USER32.dll_GetMenuDefaultItem]
mov esi, eax
test esi, esi
je 0xb8cbb9
push 0x3c
lea eax, [esp + 0x38]
mov dword [esp + 0x34], 0x40
push 0
push eax
call fcn.00bc259b
add esp, 0xc
mov dword [esp + 0x34], 0x400
lea eax, [esi - 1]
mov dword [esp + 0x48], 1
movzx eax, ax
mov dword [esp + 0x3c], eax
push ebx
push dword [esp + 0x18]
call dword [sym.imp.api_ms_win_shcore_comhelpers_l1_1_0.dll_IUnknown_SetSite]
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x30]
push edx
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 0x10]
mov ecx, esi
call dword [0xd0cffc]
call esi
push 0
push dword [esp + 0x18]
call dword [sym.imp.api_ms_win_shcore_comhelpers_l1_1_0.dll_IUnknown_SetSite]
push edi
call dword [sym.imp.USER32.dll_DestroyMenu]
mov eax, dword [esp + 0x14]
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 8]
mov ecx, esi
call dword [0xd0cffc]
call esi
test dword [0xd0a5c0], 0x2000
je 0xb8cbef
lea eax, [esp + 0x70]
mov edx, 0xb26970
push eax
call fcn.00b90dd1
mov edx, dword [esp + 0x10]
test edx, edx
je 0xb8cc08
mov ecx, ebx
call fcn.00b8e006
push dword [esp + 0x10]
call dword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
cmp dword [esp + 0x18], 0
je 0xb8cc36
push 0
push dword [esp + 0x1c]
call dword [sym.imp.api_ms_win_shcore_comhelpers_l1_1_0.dll_IUnknown_SetSite]
mov ecx, dword [esp + 0x18]
push ecx
mov eax, dword [ecx]
mov esi, dword [eax + 8]
cmp esi, fcn.00b8ee40
jne 0xbd3f57
call fcn.00b8ee40
mov ecx, dword [esp + 0x27c]
xor eax, eax
pop edi
pop esi
pop ebx
xor ecx, esp
inc eax
call fcn.00bc0ea0
mov esp, ebp
pop ebp
ret 0x14
mov ecx, esi
call dword [0xd0cffc]
call esi
jmp 0xb8ca1c
mov eax, dword [esp + 0x28]
lea edx, [esp + 0x1c]
push edx
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 0x10]
mov ecx, esi
call dword [0xd0cffc]
call esi
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x28]
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 8]
mov ecx, esi
call dword [0xd0cffc]
call esi
mov eax, dword [esp + 0x2c]
jmp 0xb8ca86
mov ecx, esi
call dword [0xd0cffc]
call esi
jmp 0xb8cc36