Function at 0x4f1d14
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 0x4f217e
mov eax, ebx
call fcn.004f19a4
test al, al
jne 0x4f217e
mov eax, dword [ebx + 0x25c]
cmp byte [eax + 0x22b], 1
je 0x4f217e
mov eax, dword [ebx + 0x25c]
cmp byte [eax + 0x1a6], 0
je 0x4f217e
cmp dword [ebx + 0x28c], 0
je 0x4f1d78
mov eax, dword [ebx + 0x25c]
cmp dword [eax + 0x248], 0
je 0x4f217e
mov eax, dword [ebx + 0x25c]
cmp byte [eax + 0x22f], 1
jne 0x4f1da5
mov eax, dword [0x528650]
cmp dword [eax], 0
je 0x4f1da5
mov eax, dword [0x528650]
mov eax, dword [eax]
cmp dword [eax + 0xd4], 0
jg 0x4f217e
test byte [ebx + 0x26c], 0x80
jne 0x4f217e
cmp dword [ebx + 0x260], 0
jne 0x4f1e43
push 0
mov ecx, dword [0x5285b0]
mov ecx, dword [ecx]
mov dl, 1
mov eax, dword [0x47a230]
call fcn.0045e074
mov esi, eax
mov dword [ebx + 0x260], esi
test esi, esi
je 0x4f217e
mov eax, esi
call fcn.0044c038
mov eax, dword [ebx + 0x260]
call fcn.0044c360
test al, al
jne 0x4f1e0b
lea eax, [ebx + 0x260]
call fcn.0040dcf0
jmp 0x4f217e
mov eax, dword [ebx + 0x260]
mov dword [eax + 0x2bc], ebx
mov dword [eax + 0x2b8], 0x4fc2a8
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], 0x4fc44c
cmp dword [ebx + 0x28c], 0
je 0x4f1eea
mov eax, ebx
call fcn.004fb060
mov esi, eax
mov eax, ebx
call fcn.004faa2c
imul esi, eax
inc esi
mov eax, ebx
call fcn.004fa938
mov edi, eax
mov eax, dword [ebx + 0x25c]
add edi, dword [eax + 0x44]
sub edi, esi
lea edx, [esp + 0x28]
mov eax, ebx
call fcn.004fdad0
sub edi, dword [esp + 0x2c]
mov eax, dword [ebx + 0x28c]
call fcn.004f1748
sub edi, eax
mov dword [esp + 0x10], edi
mov edi, dword [ebx + 0x25c]
mov eax, edi
call fcn.0044c05c
xor ecx, ecx
mov edx, dword [ebx + 0x28c]
call fcn.004f157c
add eax, dword [edi + 0x40]
mov dword [esp + 0x14], eax
mov edi, dword [ebx + 0x25c]
mov eax, edi
call fcn.0044c05c
xor ecx, ecx
mov edx, dword [ebx + 0x28c]
call fcn.004f157c
add eax, eax
mov edx, dword [edi + 0x48]
sub edx, eax
mov edi, edx
test esi, esi
je 0x4f2030
inc esi
jmp 0x4f2030
mov eax, dword [ebx + 0x25c]
mov esi, dword [eax + 0x4c]
mov edx, dword [eax + 0x44]
mov dword [esp + 0x10], edx
mov edx, dword [eax + 0x40]
mov dword [esp + 0x14], edx
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.0044c05c
lea edx, [esp + 0x18]
call fcn.004e2a30
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 0x4f1f79
mov eax, dword [ebx + 0x25c]
cmp byte [eax + 0x22f], 1
jne 0x4f201c
mov eax, dword [ebx + 0x25c]
call fcn.0044c05c
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 0x4f1fc4
lea eax, [ebx + 0x260]
call fcn.0040dcf0
mov eax, dword [esp]
push eax
mov eax, dword [ebx + 0x25c]
call fcn.0044c05c
push eax
call sub.user32.dll_ReleaseDC
jmp 0x4f217e
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x18]
cmp edx, eax
jle 0x4f2007
mov ecx, dword [esp + 0x1c]
cmp ecx, dword [esp + 0x24]
jge 0x4f2007
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.0044c05c
push eax
call sub.user32.dll_ReleaseDC
push 0
push ebp
mov eax, dword [ebx + 0x260]
call fcn.0044c05c
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 + 0x84]
mov ebp, dword [ebx + 0x25c]
cmp byte [ebp + 0x22f], 1
jne 0x4f20f4
mov eax, dword [0x528650]
cmp dword [eax], 0
je 0x4f20be
mov eax, dword [0x528650]
mov eax, dword [eax]
mov eax, dword [eax + 0x25c]
mov cl, 1
mov dl, 1
call fcn.004e2b94
mov edx, dword [ebx + 0x25c]
add eax, dword [edx + 0x44]
push eax
mov eax, dword [0x528650]
mov eax, dword [eax]
mov esi, dword [eax + 0x25c]
mov eax, esi
mov cl, 1
mov dl, 3
call fcn.004e2b94
add eax, dword [ebp + 0x40]
lea ecx, [esp + 0x3c]
pop edx
call fcn.004065c4
lea edx, [esp + 0x38]
lea ecx, [esp + 4]
mov eax, dword [0x528650]
mov eax, esi
call fcn.0044533c
push 0x658
mov eax, ebx
call fcn.004faeb4
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.0044c05c
push eax
call sub.user32.dll_SetWindowPos
jmp 0x4f2151
push 0xffffffffffffffec
mov eax, ebp
call fcn.0044c05c
push eax
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x4f212d
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.0044c05c
push eax
call sub.user32.dll_SetWindowPos
jmp 0x4f2151
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.0044c05c
push eax
call sub.user32.dll_SetWindowPos
push 4
mov eax, dword [ebx + 0x260]
call fcn.0044c05c
push eax
call sub.user32.dll_ShowWindow
push 0x521
push 0
push 0
mov eax, dword [ebx + 0x260]
call fcn.0044c05c
push eax
call sub.user32.dll_RedrawWindow
add esp, 0x40
pop ebp
pop edi
pop esi
pop ebx
ret