Function at 0x4fef94
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffc0
mov ebx, eax
cmp byte [ebx + 0x47], 0
je 0x4ff430
mov eax, ebx
call fcn.004fec24
test al, al
jne 0x4ff430
mov eax, dword [ebx + 0x25c]
cmp byte [eax + 0x283], 1
je 0x4ff430
mov eax, dword [ebx + 0x25c]
cmp byte [eax + 0x1e2], 0
je 0x4ff430
cmp dword [ebx + 0x28c], 0
je 0x4feff8
mov eax, dword [ebx + 0x25c]
cmp dword [eax + 0x2a0], 0
je 0x4ff430
mov eax, dword [ebx + 0x25c]
cmp byte [eax + 0x287], 1
jne 0x4ff025
mov eax, dword [0x555cdc]
cmp dword [eax], 0
je 0x4ff025
mov eax, dword [0x555cdc]
mov eax, dword [eax]
cmp dword [eax + 0xd4], 0
jg 0x4ff430
test byte [ebx + 0x26c], 0x80
jne 0x4ff430
cmp dword [ebx + 0x260], 0
jne 0x4ff0c3
push 0
mov ecx, dword [0x555c10]
mov ecx, dword [ecx]
mov dl, 1
mov eax, dword [0x494034]
call fcn.00475094
mov esi, eax
mov dword [ebx + 0x260], esi
test esi, esi
je 0x4ff430
mov eax, esi
call fcn.00465ce4
mov eax, dword [ebx + 0x260]
call fcn.004660b4
test al, al
jne 0x4ff08b
lea eax, [ebx + 0x260]
call fcn.004128f0
jmp 0x4ff430
mov eax, dword [ebx + 0x260]
mov dword [eax + 0x30c], ebx
mov dword [eax + 0x308], 0x509698
mov edx, dword [eax + 0x38]
mov dword [ebx + 0x290], edx
mov edx, dword [eax + 0x3c]
mov dword [ebx + 0x294], edx
mov eax, dword [ebx + 0x260]
mov dword [eax + 0x3c], ebx
mov dword [eax + 0x38], 0x50983c
cmp dword [ebx + 0x28c], 0
je 0x4ff178
mov eax, ebx
call fcn.00508428
mov esi, eax
mov eax, ebx
call fcn.00507df0
imul esi, eax
inc esi
mov eax, dword [ebx + 0x25c]
call fcn.0047591c
mov edi, eax
mov eax, ebx
call fcn.00507cfc
add edi, eax
sub edi, esi
lea edx, [esp + 0x28]
mov eax, ebx
call fcn.0050ae84
sub edi, dword [esp + 0x2c]
mov eax, dword [ebx + 0x28c]
call fcn.004fe988
sub edi, eax
mov dword [esp + 0x10], edi
mov eax, dword [ebx + 0x25c]
call fcn.00465d08
xor ecx, ecx
mov edx, dword [ebx + 0x28c]
call fcn.004fe7b8
mov edi, eax
mov eax, dword [ebx + 0x25c]
call fcn.004758fc
add edi, eax
mov dword [esp + 0x14], edi
mov edi, dword [ebx + 0x25c]
mov eax, edi
call fcn.00465d08
xor ecx, ecx
mov edx, dword [ebx + 0x28c]
call fcn.004fe7b8
add eax, eax
mov edx, dword [edi + 0x48]
sub edx, eax
mov edi, edx
test esi, esi
je 0x4ff2ce
inc esi
jmp 0x4ff2ce
mov eax, dword [ebx + 0x25c]
mov esi, dword [eax + 0x4c]
call fcn.0047591c
mov dword [esp + 0x10], eax
mov eax, dword [ebx + 0x25c]
call fcn.004758fc
mov dword [esp + 0x14], eax
mov eax, dword [ebx + 0x25c]
mov edi, dword [eax + 0x48]
push esi
push edi
push 0
push 0
call sub.gdi32.dll_CreateRectRgn
mov ebp, eax
mov eax, dword [ebx + 0x25c]
call fcn.00465d08
lea edx, [esp + 0x18]
call fcn.004e9098
mov eax, dword [esp + 0x24]
push eax
mov eax, dword [esp + 0x24]
push eax
mov eax, dword [esp + 0x24]
push eax
mov eax, dword [esp + 0x24]
push eax
call sub.gdi32.dll_CreateRectRgn
mov dword [esp + 0xc], eax
push 4
mov eax, dword [esp + 0x10]
push eax
push ebp
push ebp
call sub.gdi32.dll_CombineRgn
mov eax, dword [esp + 0xc]
push eax
call sub.gdi32.dll_DeleteObject
mov eax, dword [ebx + 0x25c]
cmp dword [eax + 0x30], 0
jne 0x4ff217
mov eax, dword [ebx + 0x25c]
cmp byte [eax + 0x287], 1
jne 0x4ff2ba
mov eax, dword [ebx + 0x25c]
call fcn.00465d08
push eax
call sub.user32.dll_GetDC
mov dword [esp], eax
lea eax, [esp + 0x18]
push eax
mov eax, dword [esp + 4]
push eax
call sub.gdi32.dll_GetClipBox
dec eax
jne 0x4ff262
lea eax, [ebx + 0x260]
call fcn.004128f0
mov eax, dword [esp]
push eax
mov eax, dword [ebx + 0x25c]
call fcn.00465d08
push eax
call sub.user32.dll_ReleaseDC
jmp 0x4ff430
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x18]
cmp edx, eax
jle 0x4ff2a5
mov ecx, dword [esp + 0x1c]
cmp ecx, dword [esp + 0x24]
jge 0x4ff2a5
mov ecx, dword [esp + 0x24]
push ecx
push edx
mov edx, dword [esp + 0x24]
push edx
push eax
call sub.gdi32.dll_CreateRectRgn
mov dword [esp + 0xc], eax
push 1
mov eax, dword [esp + 0x10]
push eax
push ebp
push ebp
call sub.gdi32.dll_CombineRgn
mov eax, dword [esp + 0xc]
push eax
call sub.gdi32.dll_DeleteObject
mov eax, dword [esp]
push eax
mov eax, dword [ebx + 0x25c]
call fcn.00465d08
push eax
call sub.user32.dll_ReleaseDC
push 0
push ebp
mov eax, dword [ebx + 0x260]
call fcn.00465d08
push eax
call sub.user32.dll_SetWindowRgn
push edi
push esi
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov eax, dword [ebx + 0x260]
mov ebp, dword [eax]
call dword [ebp + 0x88]
mov ebp, dword [ebx + 0x25c]
cmp byte [ebp + 0x287], 1
jne 0x4ff3a6
mov eax, dword [0x555cdc]
cmp dword [eax], 0
je 0x4ff370
mov eax, dword [0x555cdc]
mov eax, dword [eax]
mov eax, dword [eax + 0x25c]
mov cl, 1
mov dl, 1
call fcn.004e9214
mov esi, eax
mov eax, dword [ebx + 0x25c]
call fcn.0047591c
add esi, eax
push esi
mov eax, dword [0x555cdc]
mov eax, dword [eax]
mov eax, dword [eax + 0x25c]
mov cl, 1
mov dl, 3
call fcn.004e9214
mov esi, eax
mov eax, ebp
call fcn.004758fc
add esi, eax
mov eax, esi
lea ecx, [esp + 0x3c]
pop edx
call fcn.00408418
lea edx, [esp + 0x38]
lea ecx, [esp + 4]
mov eax, dword [0x555cdc]
mov eax, dword [eax]
mov eax, dword [eax + 0x25c]
call fcn.0045ce28
push 0x658
mov eax, ebx
call fcn.0050827c
push eax
mov eax, dword [ebx + 0x25c]
mov eax, dword [eax + 0x48]
push eax
mov eax, dword [esp + 0x14]
push eax
mov eax, dword [esp + 0x14]
push eax
push 0
mov eax, dword [ebx + 0x260]
call fcn.00465d08
push eax
call sub.user32.dll_SetWindowPos
jmp 0x4ff403
push 0xffffffffffffffec
mov eax, ebp
call fcn.00465d08
push eax
call sub.user32.dll_GetWindowLongW
test al, 8
je 0x4ff3df
push 0x658
push esi
push edi
mov eax, dword [esp + 0x1c]
push eax
mov eax, dword [esp + 0x24]
push eax
push 0xffffffffffffffff
mov eax, dword [ebx + 0x260]
call fcn.00465d08
push eax
call sub.user32.dll_SetWindowPos
jmp 0x4ff403
push 0x658
push esi
push edi
mov eax, dword [esp + 0x1c]
push eax
mov eax, dword [esp + 0x24]
push eax
push 0
mov eax, dword [ebx + 0x260]
call fcn.00465d08
push eax
call sub.user32.dll_SetWindowPos
push 4
mov eax, dword [ebx + 0x260]
call fcn.00465d08
push eax
call sub.user32.dll_ShowWindow
push 0x521
push 0
push 0
mov eax, dword [ebx + 0x260]
call fcn.00465d08
push eax
call sub.user32.dll_RedrawWindow
add esp, 0x40
pop ebp
pop edi
pop esi
pop ebx
ret