Function at 0x415c82
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push ebx
push esi
mov esi, dword [ebp + 0x10]
mov ebx, ecx
shr esi, 0x10
cmp esi, dword [ebx + 0xd0]
push edi
je 0x415d5b
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_GetDC]
mov dword [ebp - 4], eax
mov eax, dword [ebx + 0xd0]
cmp esi, eax
push esi
jle 0x415d0f
movzx ecx, word [ebp + 0x10]
sub eax, dword [ebx + 0x90]
push ecx
xor edi, edi
push eax
push edi
call dword [sym.imp.GDI32.dll_CreateRectRgn]
push eax
mov dword [ebp + 0x10], eax
push dword [ebp - 4]
call dword [sym.imp.GDI32.dll_SelectClipRgn]
mov eax, dword [ebx + 0xd0]
push eax
sub eax, dword [ebx + 0x90]
push 0x8e
push eax
lea eax, [ebp - 0x20]
push edi
push eax
call dword [sym.imp.USER32.dll_SetRect]
mov ecx, dword [ebx + 0x11c]
lea eax, [ebp - 0x20]
push 0x2c6c6c6
push eax
push dword [ebp - 4]
call fcn.00404438
jmp 0x415d34
movzx eax, word [ebp + 0x10]
push eax
mov eax, esi
sub eax, dword [ebx + 0xd4]
push eax
push 0
call dword [sym.imp.GDI32.dll_CreateRectRgn]
push eax
mov dword [ebp + 0x10], eax
push dword [ebp - 4]
call dword [sym.imp.GDI32.dll_SelectClipRgn]
xor edi, edi
push dword [ebp + 0x10]
call dword [sym.imp.GDI32.dll_DeleteObject]
push dword [ebp - 4]
mov ecx, ebx
call fcn.00416037
push dword [ebp - 4]
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_ReleaseDC]
mov dword [ebx + 0xd0], esi
jmp 0x415d5d
xor edi, edi
lea eax, [ebp - 0x20]
push eax
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_GetClientRect]
mov ecx, dword [ebx + 0xec]
cmp ecx, edi
je 0x415e03
mov eax, dword [ebx + 0xf0]
sub eax, ecx
sar eax, 2
cmp eax, edi
mov dword [ebp - 0xc], eax
jle 0x415e03
mov eax, dword [ebp - 0x18]
push edi
add eax, 0xffffff72
push eax
push edi
lea eax, [ebp - 0x30]
push 0x8e
push eax
call dword [sym.imp.USER32.dll_SetRect]
sub esp, 0x10
lea esi, [ebp - 0x30]
mov edi, esp
mov ecx, dword [ebx + 0x50]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.00401e3a
lea eax, [ebp - 0x30]
push eax
mov eax, dword [ebx + 0x50]
push dword [eax + 4]
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [ebp - 0x24]
cmp dword [ebp - 0xc], 1
mov dword [ebp - 8], eax
jne 0x415f16
mov eax, dword [ebx + 0xcc]
mov ecx, dword [ebx + 0xfc]
mov eax, dword [ecx + eax*4]
xor ecx, ecx
cmp dword [eax + 0xc], ecx
je 0x415e4d
mov edi, dword [ebp - 0x14]
push 7
mov eax, edi
pop esi
sub eax, dword [ebp - 0x1c]
cdq
idiv esi
sub edi, eax
sub edi, 0x22
jmp 0x415e5d
lea eax, [ebp - 0x48]
push eax
push 0x18
push dword [ebx + 0x6c4]
call dword [sym.imp.GDI32.dll_GetObjectA]
mov eax, dword [ebp - 0x14]
push 0xc
sub eax, dword [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x18]
add eax, 0xffffff72
push eax
push edi
push 0x8e
push edi
push dword [ebx + 0x67c]
call dword [sym.imp.USER32.dll_SetWindowPos]
push edi
push edi
push dword [ebx + 0x67c]
call dword [sym.imp.USER32.dll_InvalidateRect]
jmp 0x416028
mov eax, dword [ebp - 0x14]
sub eax, dword [ebp - 0x1c]
sub eax, 0x44
cdq
sub eax, edx
mov edi, eax
sar edi, 1
mov eax, dword [ebp - 0x18]
push 5
add eax, 0xfffffe8e
push ecx
cdq
sub eax, edx
push ecx
sar eax, 1
add eax, 0x8e
push edi
push eax
mov eax, dword [ebx + 0xec]
push ecx
mov eax, dword [eax]
push dword [eax + 0x18]
call dword [sym.imp.USER32.dll_SetWindowPos]
mov eax, dword [ebx + 0xec]
mov eax, dword [eax]
push dword [eax + 0x18]
call dword [sym.imp.USER32.dll_IsWindowVisible]
mov esi, dword [sym.imp.USER32.dll_InvalidateRect]
test eax, eax
jne 0x415ebe
mov eax, dword [ebx + 0xec]
push 5
mov eax, dword [eax]
push dword [eax + 0x18]
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
push 0
push dword [ebx + 4]
call esi
lea eax, [edi - 0xe]
push 0xc
mov dword [ebp + 0x10], eax
push eax
mov eax, dword [ebp - 0x18]
mov edi, 0x98
add eax, 0xffffff68
push eax
push 0
push edi
push 0
push dword [ebx + 0x67c]
call dword [sym.imp.USER32.dll_SetWindowPos]
push 0
push 0
push dword [ebx + 0x67c]
call esi
push dword [ebp - 0x14]
lea eax, [ebp - 0x20]
push dword [ebp - 0x18]
push dword [ebp + 0x10]
push edi
push eax
call dword [sym.imp.USER32.dll_SetRect]
lea eax, [ebp - 0x20]
push 0
push eax
push dword [ebx + 4]
call esi
jmp 0x416028
mov esi, dword [ebp - 0x14]
sub dword [ebp - 0x18], 0x8e
sub esi, eax
mov eax, dword [ebp - 0x18]
cdq
sub eax, edx
push 3
mov ecx, eax
mov eax, dword [ebp - 0x18]
cdq
pop edi
sub esi, 0x13
idiv edi
sar ecx, 1
sub eax, 0x72
mov dword [ebp + 0x10], eax
add eax, 0xe4
cmp eax, ecx
jle 0x415f50
lea eax, [ecx - 0xe4]
mov dword [ebp + 0x10], eax
mov eax, dword [ebp - 0x18]
push 3
add eax, eax
pop edi
cdq
idiv edi
sub eax, 0x72
cmp eax, ecx
mov dword [ebp - 4], eax
jge 0x415f68
mov dword [ebp - 4], ecx
mov eax, dword [ebp + 0x10]
push 4
cdq
pop ecx
idiv ecx
mov edi, eax
push edi
call fcn.004189fe
add dword [ebp - 4], eax
push edi
call fcn.004189fe
sub dword [ebp + 0x10], eax
pop ecx
pop ecx
mov ecx, dword [ebp - 0xc]
lea eax, [ecx + 1]
cdq
sub eax, edx
mov edi, eax
mov eax, esi
cdq
sar edi, 1
idiv edi
xor edi, edi
mov esi, eax
inc esi
inc esi
test ecx, ecx
jle 0x416028
mov ecx, dword [ebp - 8]
mov eax, esi
cdq
sub eax, edx
sar eax, 1
lea eax, [eax + ecx - 0x22]
mov dword [ebp - 8], eax
mov eax, edi
push 2
cdq
pop ecx
idiv ecx
mov eax, dword [ebp + 0x10]
xor ecx, ecx
cmp edx, ecx
mov dword [ebp - 0x10], edx
je 0x415fcf
mov eax, dword [ebp - 4]
push 5
push ecx
push ecx
add eax, 0x8e
push dword [ebp - 8]
push eax
mov eax, dword [ebx + 0xec]
push ecx
mov eax, dword [eax + edi*4]
push dword [eax + 0x18]
call dword [sym.imp.USER32.dll_SetWindowPos]
mov eax, dword [ebx + 0xec]
mov eax, dword [eax + edi*4]
push dword [eax + 0x18]
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
jne 0x416019
mov eax, dword [ebx + 0xec]
push 5
mov eax, dword [eax + edi*4]
push dword [eax + 0x18]
call dword [sym.imp.USER32.dll_ShowWindow]
cmp dword [ebp - 0x10], 1
jne 0x416022
add dword [ebp - 8], esi
inc edi
cmp edi, dword [ebp - 0xc]
jl 0x415fb8
mov ecx, dword [ebp + 0x14]
push 1
pop eax
pop edi
pop esi
mov dword [ecx], eax
pop ebx
leave
ret 0x10