Function at 0x403840
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41fa6d
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x42a038]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x44], esi
mov eax, dword [ebp + 8]
test eax, eax
js 0x403a06
mov edi, dword [esi]
mov edx, dword [ebp + 0xc]
mov ecx, dword [edi + 0x30]
cmp ecx, edx
je 0x4038a3
test edx, edx
je 0x403896
mov eax, dword [edx]
push edx
call dword [eax + 4]
mov ecx, dword [edi + 0x30]
mov edx, dword [ebp + 0xc]
mov dword [edi + 0x30], edx
test ecx, ecx
je 0x4038a3
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov eax, dword [esi]
mov ecx, dword [eax + 0x34]
lea edi, [eax + 0x34]
mov edx, dword [eax + 0x30]
mov dword [ebp - 0x3c], edx
test ecx, ecx
je 0x4038c4
mov dword [edi], 0
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov edx, dword [ebp - 0x3c]
mov eax, dword [edx]
push edi
push edx
call dword [eax + 0x64]
mov ecx, dword [esi]
mov edi, eax
push 2
push dword [ecx + 4]
call dword [sym.imp.USER32.dll_MonitorFromWindow]
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x38], 0x28
xorps xmm0, xmm0
mov dword [ebp - 0x14], 0
push ecx
push eax
movups xmmword [ebp - 0x34], xmm0
movups xmmword [ebp - 0x24], xmm0
call dword [sym.imp.USER32.dll_GetMonitorInfoW]
test eax, eax
jne 0x403909
mov eax, edi
jmp 0x403a06
mov eax, dword [ebp - 0x28]
mov edx, dword [ebp - 0x30]
sub eax, edx
mov ecx, dword [ebp - 0x34]
push 3
push eax
mov eax, dword [ebp - 0x2c]
sub eax, ecx
push eax
mov eax, dword [esi]
push edx
push ecx
push 0xffffffffffffffff
push dword [eax + 4]
call dword [sym.imp.USER32.dll_SetWindowPos]
mov eax, dword [esi]
sub esp, 0x10
movups xmm0, xmmword [ebp - 0x34]
mov ecx, dword [eax + 0x30]
mov eax, esp
push ecx
mov edx, dword [ecx]
movups xmmword [eax], xmm0
call dword [edx + 0x18]
test eax, eax
js 0x403a06
mov edi, dword [esi]
xor esi, esi
push 0x420f45
push 0x10
mov eax, dword [edi + 0x34]
mov dword [ebp - 0x40], eax
call fcn.00407175
add esp, 8
mov dword [ebp - 0x3c], eax
test eax, eax
je 0x403996
mov dword [eax + 8], 1
mov dword [eax], vtable.Microsoft::WRL::RuntimeClass_struct_Microsoft::WRL::RuntimeClassFlags_2___struct_ICoreWebView2NavigationCompletedEventHandler_.0
mov ecx, dword [0x42ca9c]
test ecx, ecx
je 0x40398b
mov eax, dword [ecx]
push ecx
call dword [eax + 4]
mov eax, dword [ebp - 0x3c]
mov dword [eax + 0xc], edi
mov esi, eax
mov dword [eax], method.Microsoft::WRL::RuntimeClass_struct_Microsoft::WRL::RuntimeClassFlags_2___struct_ICoreWebView2NavigationCompletedEventHandler_.virtual_0
mov dword [ebp - 0x3c], esi
mov edi, dword [ebp - 0x44]
mov edx, dword [ebp - 0x40]
mov dword [ebp - 4], 0
mov eax, dword [edi]
mov ecx, dword [edx]
add eax, 0x38
push eax
push esi
push edx
call dword [ecx + 0x3c]
mov dword [ebp - 4], 0xffffffff
test esi, esi
je 0x4039c4
mov eax, dword [esi]
push esi
call dword [eax + 8]
mov eax, dword [edi]
mov ecx, dword [eax + 0x34]
push dword [eax + 0xc]
push ecx
mov edx, dword [ecx]
call dword [edx + 0x18]
mov eax, dword [edi]
push 0
mov eax, dword [eax + 0x14]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x10]
mov eax, dword [edi]
push 1
mov eax, dword [eax + 0x30]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x10]
mov eax, dword [edi]
push 3
push dword [eax + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [edi]
push dword [eax + 4]
call dword [sym.imp.USER32.dll_UpdateWindow]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00406f4d
mov esp, ebp
pop ebp
ret 8