Function at 0x51def0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57d59b
mov eax, dword fs:[0]
push eax
sub esp, 0x1c0
mov eax, dword [0x5edd38]
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 eax, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x20]
mov dword [ebp - 0x1a8], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x1c4], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x1c0], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x1bc], eax
mov eax, dword [ebp + 0x28]
mov dword [ebp - 0x1c8], eax
mov eax, dword [ebp + 0x3c]
mov dword [ebp - 0x1b8], eax
mov eax, dword [ebp + 0x48]
mov dword [ebp - 0x1b4], eax
mov eax, dword [ebp + 0x50]
push 0
mov dword [ebp - 0x1cc], eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push 0x7f00
push eax
mov dword [ebp - 0x1ac], eax
mov dword [ebp - 0x178], 0
mov dword [ebp - 0x1a4], 0x30
mov dword [ebp - 0x1a0], 8
mov dword [ebp - 0x19c], 0x5209e0
mov dword [ebp - 0x198], 0
mov dword [ebp - 0x194], 0
mov dword [ebp - 0x190], eax
mov dword [ebp - 0x18c], 0
call dword [sym.imp.USER32.dll_LoadCursorW]
mov dword [ebp - 0x188], eax
lea eax, [ebp - 0x1a4]
push eax
mov dword [ebp - 0x184], 0
mov dword [ebp - 0x180], 0
mov dword [ebp - 0x17c], str.HTMLROOTWINDOW
call fcn.004548f0
movzx eax, ax
test ax, ax
je 0x51e073
cmp dword [ebp + 0x34], 0
mov eax, 0x86cc0000
mov edi, 0x86c80000
cmovne edi, eax
mov eax, dword [ebp - 0x1a8]
test eax, eax
jne 0x51e030
mov ecx, dword [0x5f3910]
call fcn.004d0f00
mov ecx, dword [ebx + 4]
mov edx, dword [ebx]
push 0
push dword [ebp - 0x190]
push 0
push eax
mov eax, dword [ebx + 0xc]
sub eax, ecx
push eax
mov eax, dword [ebx + 8]
sub eax, edx
push eax
push ecx
push edx
push edi
push 0
push str.HTMLROOTWINDOW
push 1
call fcn.004171a0
mov edi, eax
test edi, edi
jne 0x51e07a
push dword [ebp - 0x1ac]
push str.HTMLROOTWINDOW
call fcn.00477aa0
xor al, al
jmp 0x51e2cd
push dword [ebp + 0x30]
call fcn.00466db0
add esp, 4
lea eax, [ebp - 0x3c]
push eax
push edi
call dword [sym.imp.USER32.dll_GetClientRect]
push esi
call fcn.005217d0
push 0x134
mov byte [ebp - 0x1b0], al
lea eax, [ebp - 0x170]
push 0
push eax
call fcn.0053f340
add esp, 0x10
cmp dword [ebp - 0x1b8], 0
setne al
cmp dword [ebp + 0x38], 0
movzx eax, al
push dword [ebp - 0x1b4]
push dword [ebp + 0x44]
push dword [ebp + 0x40]
push eax
setne al
movzx eax, al
push eax
push dword [ebp - 0x1b0]
push 0
push 0
push dword [ebp + 0x2c]
sub esp, 0x18
mov ecx, esp
push dword [ebp - 0x1bc]
call fcn.0040a1e0
push dword [ebp + 0x18]
lea eax, [ebp - 0x3c]
push dword [ebp - 0x1c0]
lea ecx, [ebp - 0x170]
push dword [ebp - 0x1c4]
push esi
push dword [ebp - 0x1c8]
push dword [ebp + 0x24]
push eax
push edi
call fcn.0051b7d0
cmp dword [esi + 0x14], 8
mov dword [ebp - 4], 0
jb 0x51e12c
mov esi, dword [esi]
push esi
lea ecx, [ebp - 0x170]
call fcn.0051ce20
push 5
push dword [ebp - 0x8c]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [ebp - 0x8c]
call dword [sym.imp.USER32.dll_UpdateWindow]
push 0
push 0
push 5
push dword [ebp - 0x8c]
call dword [sym.imp.USER32.dll_SendMessageW]
push 0
push 0
push 7
push dword [ebp - 0x8c]
call dword [sym.imp.USER32.dll_SendMessageW]
cmp dword [ebp + 0x4c], 0
je 0x51e188
push dword [ebp - 0x8c]
call dword [sym.imp.USER32.dll_SetForegroundWindow]
mov eax, dword [0x5f16d8]
test eax, eax
jne 0x51e198
xor bl, bl
jmp 0x51e27d
cmp byte [ebp - 0x96], 0
mov dword [ebp - 0x174], eax
je 0x51e273
nop dword [eax + eax]
push 0x4ff
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x174]
push eax
push 1
call dword [sym.imp.USER32.dll_MsgWaitForMultipleObjects]
cmp eax, 1
ja 0x51e273
test eax, eax
je 0x51e269
cmp eax, 1
jne 0x51e25a
push 3
push 0
push 0
push 0
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x51e25a
mov esi, dword [ebp - 0x16c]
test esi, esi
je 0x51e230
call dword [sym.imp.USER32.dll_GetFocus]
mov ecx, dword [esi + 0x24]
cmp ecx, eax
je 0x51e217
push eax
push ecx
call dword [sym.imp.USER32.dll_IsChild]
test eax, eax
je 0x51e230
lea eax, [ebp - 0x2c]
push eax
push 0
push 0x37f
push dword [esi + 0x24]
call dword [sym.imp.USER32.dll_SendMessageW]
cmp eax, 1
je 0x51e244
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
push 3
push 0
push 0
push 0
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
jne 0x51e1f4
cmp byte [ebp - 0x96], 0
jne 0x51e1b0
jmp 0x51e273
mov dword [ebp - 0xb4], 2
cmp dword [ebp - 0xb4], 1
sete bl
mov ecx, dword [ebp - 0x1cc]
test ecx, ecx
je 0x51e29f
lea eax, [ebp - 0x6c]
cmp ecx, eax
je 0x51e29f
cmp dword [ebp - 0x58], 0x10
push dword [ebp - 0x5c]
cmovae eax, dword [ebp - 0x6c]
push eax
call fcn.0040b580
mov eax, dword [ebp - 0x1a8]
test eax, eax
je 0x51e2b0
push eax
call dword [sym.imp.USER32.dll_SetForegroundWindow]
push dword [ebp - 0x1ac]
push str.HTMLROOTWINDOW
call fcn.00477aa0
lea ecx, [ebp - 0x170]
call fcn.0051c0a0
mov al, bl
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.00401682
mov esp, ebp
pop ebp
ret