Function at 0x1004d520
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101436d1
mov eax, dword fs:[0]
push eax
sub esp, 0x3a8
mov eax, dword [0x101811b8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
cmp dword [ebx + 0x190], 0
mov dword [ebx + 0x18c], 1
jne 0x1004d64a
call fcn.10058c20
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x1004dcc0
push 0x2d
push str.d:_buildlib_commonwnd_pluginwndwebwnd.cpp
lea ecx, [ebp - 0x248]
mov dword [ebp - 0x238], eax
mov dword [ebp - 0x234], 0xf
mov byte [ebp - 0x248], al
call fcn.1001e980
push 3
push 0x101476d8
lea ecx, [ebp - 0x230]
mov dword [ebp - 4], 0
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 0xf
mov byte [ebp - 0x230], 0
call fcn.1001e980
mov byte [ebp - 4], 1
call fcn.10058c20
mov edi, eax
lea ecx, [ebp - 0x31c]
push 0x263
lea eax, [ebp - 0x248]
push eax
lea eax, [ebp - 0x230]
push eax
call fcn.10011dd0
mov esi, eax
push str.WebView_is_not_init
push esi
mov byte [ebp - 4], 2
call fcn.10014590
mov edx, dword [edi]
add esp, 8
mov ecx, edi
push esi
call dword [edx + 0x1c]
lea ecx, [ebp - 0x31c]
call fcn.10014a50
lea ecx, [ebp - 0x230]
call fcn.10005a20
lea ecx, [ebp - 0x248]
call fcn.10005a20
jmp 0x1004dcc0
cmp dword [ebx + 0xf8], 0xd
jne 0x1004d774
call fcn.10058c20
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x1004d73c
push 0x2d
push str.d:_buildlib_commonwnd_pluginwndwebwnd.cpp
lea ecx, [ebp - 0x230]
mov dword [ebp - 0x220], eax
mov dword [ebp - 0x21c], 0xf
mov byte [ebp - 0x230], al
call fcn.1001e980
push 3
push 0x101476d8
lea ecx, [ebp - 0x248]
mov dword [ebp - 4], 3
mov dword [ebp - 0x238], 0
mov dword [ebp - 0x234], 0xf
mov byte [ebp - 0x248], 0
call fcn.1001e980
mov byte [ebp - 4], 4
call fcn.10058c20
mov edi, eax
lea ecx, [ebp - 0x31c]
push 0x268
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x248]
push eax
call fcn.10011dd0
mov esi, eax
push str.QuitCef_PreClose
push esi
mov byte [ebp - 4], 5
call fcn.10014590
mov edx, dword [edi]
add esp, 8
mov ecx, edi
push esi
call dword [edx + 0x1c]
lea ecx, [ebp - 0x31c]
call fcn.10014a50
lea ecx, [ebp - 0x248]
call fcn.10005a20
lea ecx, [ebp - 0x230]
mov dword [ebp - 4], 0xffffffff
call fcn.10005a20
mov al, byte [ebp - 0x220]
sub esp, 0x28
mov ecx, esp
push str.PreClose
mov dword [ecx], vtable.._AV___Func_impl_no_alloc_V___Binder_U_Unforced_std__P8CWebWndImpl__AEXPB_W_ZPAV3_ABU___Ph__00_2__std__XPB_W_std__.0
mov dword [ecx + 8], 0x1004d270
mov dword [ecx + 0xc], 0
mov byte [ecx + 0x10], al
mov dword [ecx + 0x14], ebx
mov dword [ecx + 0x24], ecx
lea ecx, [ebx + 0x1b0]
call fcn.100392c0
mov eax, dword [ebx + 0xd0]
test eax, eax
je 0x1004da8d
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push 0x10146978
lea ecx, [ebp - 0x27c]
call fcn.100055b0
lea eax, [ebp - 0x280]
mov dword [ebp - 4], 6
push eax
push dword [ebx + 0xd0]
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push dword [ebp - 0x280]
mov dword [ebp - 0x284], eax
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x1004d832
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.10117810
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
push 0
push esi
call sub.PSAPI.DLL_GetModuleFileNameExW
test eax, eax
je 0x1004d832
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1004d810
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x27c]
call fcn.10006e00
call fcn.10058c20
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x1004d979
push 0x2d
push str.d:_buildlib_commonwnd_pluginwndwebwnd.cpp
lea ecx, [ebp - 0x230]
mov dword [ebp - 0x220], eax
mov dword [ebp - 0x21c], 0xf
mov byte [ebp - 0x230], al
call fcn.1001e980
push 3
push 0x101476d8
lea ecx, [ebp - 0x248]
mov byte [ebp - 4], 7
mov dword [ebp - 0x238], 0
mov dword [ebp - 0x234], 0xf
mov byte [ebp - 0x248], 0
call fcn.1001e980
mov byte [ebp - 4], 8
call fcn.10058c20
mov edi, eax
lea ecx, [ebp - 0x31c]
push 0x27a
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x248]
push eax
call fcn.10011dd0
mov esi, eax
push str.cef_pid:
push esi
mov byte [ebp - 4], 9
call fcn.10014590
add esp, 8
mov ecx, esi
push dword [ebp - 0x280]
call fcn.10014080
push str.__tid:
push esi
call fcn.10014590
add esp, 8
mov ecx, esi
push dword [ebp - 0x284]
call fcn.10014080
push str.__wnd:
push esi
call fcn.10014590
add esp, 8
mov ecx, esi
push dword [ebx + 0xd0]
call fcn.10014230
push str.__path:
push esi
call fcn.10014590
mov eax, dword [ebp - 0x27c]
mov ecx, 0x101472e4
test eax, eax
cmovne ecx, eax
push ecx
push esi
call fcn.1000dea0
mov eax, dword [edi]
add esp, 0x10
mov ecx, edi
push esi
call dword [eax + 0x1c]
lea ecx, [ebp - 0x31c]
call fcn.10014a50
lea ecx, [ebp - 0x248]
call fcn.10005a20
lea ecx, [ebp - 0x230]
mov byte [ebp - 4], 6
call fcn.10005a20
push dword [ebx + 0xd0]
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x1004da68
call fcn.10058c20
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x1004da68
push 0x2d
push str.d:_buildlib_commonwnd_pluginwndwebwnd.cpp
lea ecx, [ebp - 0x230]
mov dword [ebp - 0x220], eax
mov dword [ebp - 0x21c], 0xf
mov byte [ebp - 0x230], al
call fcn.1001e980
push 3
push 0x101476d8
lea ecx, [ebp - 0x248]
mov byte [ebp - 4], 0xa
mov dword [ebp - 0x238], 0
mov dword [ebp - 0x234], 0xf
mov byte [ebp - 0x248], 0
call fcn.1001e980
mov byte [ebp - 4], 0xb
call fcn.10058c20
mov edi, eax
lea ecx, [ebp - 0x31c]
push 0x27d
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x248]
push eax
call fcn.10011dd0
mov esi, eax
push str.hide_failed
push esi
mov byte [ebp - 4], 0xc
call fcn.10014590
mov edx, dword [edi]
add esp, 8
mov ecx, edi
push esi
call dword [edx + 0x1c]
lea ecx, [ebp - 0x31c]
call fcn.10014a50
lea ecx, [ebp - 0x248]
call fcn.10005a20
lea ecx, [ebp - 0x230]
call fcn.10005a20
mov edx, dword [ebp - 0x27c]
or eax, 0xffffffff
mov dword [ebp - 4], 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1004da8d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebx + 0x190]
test ecx, ecx
je 0x1004da9f
mov eax, dword [ecx]
push 0
push ecx
call dword [eax + 0x14]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebx + 0x17c]
mov dword [ebp - 0x27c], eax
cmp eax, 0x1388
jae 0x1004dbbf
call fcn.10058c20
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x1004dbae
push 0x2d
push str.d:_buildlib_commonwnd_pluginwndwebwnd.cpp
lea ecx, [ebp - 0x230]
mov dword [ebp - 0x220], eax
mov dword [ebp - 0x21c], 0xf
mov byte [ebp - 0x230], al
call fcn.1001e980
push 3
push 0x101476d8
lea ecx, [ebp - 0x248]
mov dword [ebp - 4], 0xd
mov dword [ebp - 0x238], 0
mov dword [ebp - 0x234], 0xf
mov byte [ebp - 0x248], 0
call fcn.1001e980
mov byte [ebp - 4], 0xe
call fcn.10058c20
mov edi, eax
lea ecx, [ebp - 0x31c]
push 0x288
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x248]
push eax
call fcn.10011dd0
mov esi, eax
push str.cef_wnd_offset:
push esi
mov byte [ebp - 4], 0xf
call fcn.10014590
add esp, 8
mov ecx, esi
push dword [ebp - 0x27c]
call fcn.10014080
mov eax, dword [edi]
mov ecx, edi
push esi
call dword [eax + 0x1c]
lea ecx, [ebp - 0x31c]
call fcn.10014a50
lea ecx, [ebp - 0x248]
call fcn.10005a20
lea ecx, [ebp - 0x230]
mov dword [ebp - 4], 0xffffffff
call fcn.10005a20
mov eax, 0x1388
sub eax, dword [ebp - 0x27c]
push eax
jmp 0x1004dcb3
call fcn.10058c20
mov ecx, eax
push 1
mov edx, dword [eax]
mov eax, dword [edx + 8]
call eax
movzx eax, al
sub eax, 1
jne 0x1004dcb1
push 0x2d
push str.d:_buildlib_commonwnd_pluginwndwebwnd.cpp
lea ecx, [ebp - 0x278]
mov dword [ebp - 0x268], eax
mov dword [ebp - 0x264], 0xf
mov byte [ebp - 0x278], al
call fcn.1001e980
push 3
push 0x101476d8
lea ecx, [ebp - 0x260]
mov dword [ebp - 4], 0x10
mov dword [ebp - 0x250], 0
mov dword [ebp - 0x24c], 0xf
mov byte [ebp - 0x260], 0
call fcn.1001e980
mov byte [ebp - 4], 0x11
call fcn.10058c20
mov edi, eax
lea ecx, [ebp - 0x3b4]
push 0x28c
lea eax, [ebp - 0x278]
push eax
lea eax, [ebp - 0x260]
push eax
call fcn.10011dd0
mov esi, eax
push str.cef_wnd_pre_close:
push esi
mov byte [ebp - 4], 0x12
call fcn.10014590
add esp, 8
mov ecx, esi
push dword [ebp - 0x27c]
call fcn.10014080
mov eax, dword [edi]
mov ecx, edi
push esi
call dword [eax + 0x1c]
lea ecx, [ebp - 0x3b4]
call fcn.10014a50
lea ecx, [ebp - 0x260]
call fcn.10005a20
lea ecx, [ebp - 0x278]
mov dword [ebp - 4], 0xffffffff
call fcn.10005a20
push 1
mov ecx, dword [ebx + 0x48]
push 0x837
call fcn.10054e40
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1010c1dc
mov esp, ebp
pop ebp
ret