Function at 0x10002691
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
push esi
mov esi, ecx
cmp dword [esi], 0
jne 0x100026a7
or eax, 0xffffffff
jmp 0x10002a07
push ebx
push edi
lea edi, [esi + 0x28]
mov ecx, edi
call fcn.100013b0
mov ecx, edi
mov ebx, eax
call fcn.100013d4
mov dword [ebp - 8], eax
lea eax, [ebp - 0x2c]
push eax
push dword [esi]
call dword [sym.imp.USER32.dll_GetClientRect]
mov edi, dword [sym.imp.USER32.dll_CopyRect]
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x4c]
push eax
call edi
mov eax, dword [ebp - 8]
add eax, 0x14
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x24]
lea eax, [eax + ebx + 0xa]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x1c]
push eax
call edi
mov eax, dword [ebp - 0x1c]
mov edi, dword [sym.imp.USER32.dll_GetWindowLongA]
add dword [ebp - 0x18], 0xa
sub dword [ebp - 0x14], 0xa
lea eax, [eax + ebx + 0x14]
mov ebx, dword [ebp - 0x20]
sub ebx, dword [ebp - 0x40]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x24]
push 0xfffffffffffffff0
sub eax, dword [ebp - 0x44]
push dword [esi + 4]
mov dword [ebp - 4], eax
call edi
test eax, 0x10000000
jne 0x1000273b
push 0xfffffffffffffff0
push dword [esi + 8]
call edi
test eax, 0x10000000
je 0x10002787
push ebx
mov ecx, esi
push dword [ebp - 4]
push dword [esi + 4]
call fcn.10002a1e
push ebx
mov ecx, esi
push dword [ebp - 4]
push dword [esi + 8]
call fcn.10002a1e
push ebx
mov ecx, esi
push dword [ebp - 4]
push dword [esi + 0x20]
call fcn.10002a1e
lea eax, [ebp - 0x3c]
push eax
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowRect]
lea eax, [ebp - 0x3c]
push eax
push dword [esi]
call dword [sym.imp.USER32.dll_ScreenToClient]
mov eax, dword [ebp - 0x38]
add eax, 0xfffffff6
mov dword [ebp - 0x10], eax
push 0xfffffffffffffff0
push dword [esi + 0x14]
call edi
test eax, 0x10000000
je 0x100027d7
push ebx
mov ecx, esi
push dword [ebp - 4]
push dword [esi + 0x14]
call fcn.10002a1e
push ebx
mov ecx, esi
push dword [ebp - 4]
push dword [esi + 0x18]
call fcn.10002a1e
mov ebx, dword [sym.imp.USER32.dll_GetWindowRect]
lea eax, [ebp - 0x3c]
push eax
push dword [esi + 0x14]
call ebx
lea eax, [ebp - 0x3c]
push eax
push dword [esi]
call dword [sym.imp.USER32.dll_ScreenToClient]
mov eax, dword [ebp - 0x38]
add eax, 0xfffffff6
mov dword [ebp - 0x10], eax
jmp 0x100027dd
mov ebx, dword [sym.imp.USER32.dll_GetWindowRect]
push 0xfffffffffffffff0
push dword [esi + 0x1c]
call edi
test eax, 0x10000000
je 0x1000283e
lea eax, [ebp - 0x3c]
push eax
push dword [esi + 0x1c]
call ebx
mov eax, dword [ebp - 0x30]
sub eax, dword [ebp - 0x38]
mov dword [ebp - 8], eax
lea eax, [ebp - 0x3c]
push eax
push dword [esi]
call dword [sym.imp.USER32.dll_ScreenToClient]
mov eax, dword [ebp - 0x10]
mov ecx, esi
sub eax, dword [ebp - 0x38]
sub eax, dword [ebp - 8]
push eax
push dword [ebp - 4]
push dword [esi + 0x1c]
call fcn.10002a1e
lea eax, [ebp - 0x3c]
push eax
push dword [esi + 0x1c]
call ebx
lea eax, [ebp - 0x3c]
push eax
push dword [esi]
call dword [sym.imp.USER32.dll_ScreenToClient]
mov eax, dword [ebp - 0x38]
add eax, 0xfffffff6
mov dword [ebp - 0x10], eax
push 0xfffffffffffffff0
push dword [esi + 0xc]
call edi
test eax, 0x10000000
je 0x100028a6
push 0xfffffffffffffff0
push dword [esi + 0x10]
call edi
test eax, 0x10000000
push 0
jne 0x1000287b
mov eax, dword [ebp - 0x10]
sub eax, dword [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x14]
sub eax, dword [ebp - 0x1c]
push eax
push dword [ebp - 0x18]
push dword [ebp - 0x1c]
push dword [esi + 0xc]
call dword [sym.imp.USER32.dll_MoveWindow]
jmp 0x100028a6
push dword [ebp - 4]
mov ecx, esi
push dword [esi + 0xc]
call fcn.10002a1e
lea eax, [ebp - 0x3c]
push eax
push dword [esi + 0xc]
call ebx
lea eax, [ebp - 0x34]
push eax
push dword [esi]
call dword [sym.imp.USER32.dll_ScreenToClient]
mov eax, dword [ebp - 0x30]
add eax, 0xa
mov dword [ebp - 0x18], eax
push 0xfffffffffffffff0
push dword [esi + 0x10]
call edi
test eax, 0x10000000
je 0x100028d3
mov eax, dword [ebp - 0x10]
push 0
sub eax, dword [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x14]
sub eax, dword [ebp - 0x1c]
push eax
push dword [ebp - 0x18]
push dword [ebp - 0x1c]
push dword [esi + 0x10]
call dword [sym.imp.USER32.dll_MoveWindow]
push 0xffffffffffffffec
push dword [esi]
call edi
push eax
push 0
push 0xfffffffffffffff0
push dword [esi]
call edi
push eax
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.USER32.dll_AdjustWindowRectEx]
push 0
call dword [sym.imp.USER32.dll_GetWindowDC]
mov edi, dword [sym.imp.GDI32.dll_GetDeviceCaps]
push 8
push eax
mov dword [ebp - 4], eax
call edi
mov ecx, dword [ebp - 0x2c]
push 0xa
sub ecx, dword [ebp - 0x24]
push dword [ebp - 4]
add eax, ecx
cdq
sub eax, edx
mov ebx, eax
sar ebx, 1
call edi
mov ecx, dword [ebp - 0x28]
push dword [ebp - 4]
sub ecx, dword [ebp - 0x20]
push 0
add eax, ecx
cdq
sub eax, edx
mov edi, eax
sar edi, 1
call dword [sym.imp.USER32.dll_ReleaseDC]
mov eax, dword [ebp - 0x20]
push 0
sub eax, dword [ebp - 0x28]
push eax
mov eax, dword [ebp - 0x24]
sub eax, dword [ebp - 0x2c]
push eax
push edi
push ebx
push dword [esi]
call dword [sym.imp.USER32.dll_MoveWindow]
push esi
push 0xffffffffffffffeb
push dword [esi]
call dword [sym.imp.USER32.dll_SetWindowLongA]
mov edi, dword [sym.imp.USER32.dll_ShowWindow]
push 1
push dword [esi]
call edi
push dword [esi]
call dword [sym.imp.USER32.dll_SetForegroundWindow]
xor ebx, ebx
mov dword [esi + 0x4c], ebx
push 1
push ebx
push ebx
lea eax, [ebp - 0x68]
push ebx
push eax
call dword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
je 0x100029aa
lea eax, [ebp - 0x68]
push eax
push dword [esi]
call dword [sym.imp.USER32.dll_IsDialogMessageA]
test eax, eax
jne 0x10002971
lea eax, [ebp - 0x68]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x68]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
jmp 0x10002971
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [esi + 0x4c], ebx
je 0x10002971
push ebx
push dword [esi]
call edi
lea edi, [esi + 0x54]
push edi
call sub.MSVCRT.dll_strlen
test eax, eax
pop ecx
jbe 0x100029ec
push edi
call sub.MSVCRT.dll_strlen
mov al, byte [eax + esi + 0x53]
push eax
call fcn.1000de47
pop ecx
test al, al
pop ecx
je 0x100029ec
push edi
call sub.MSVCRT.dll_strlen
and byte [eax + esi + 0x53], 0
pop ecx
mov esi, dword [esi + 0x50]
pop edi
sub esi, 0x1b5
pop ebx
je 0x10002a04
dec esi
je 0x10002a00
xor eax, eax
jmp 0x10002a07
push 2
jmp 0x10002a06
push 1
pop eax
pop esi
leave
ret