Function at 0x4fccb0
Capabilities:
Hide graphical window

Disassembly:
mov ax, word [esp + 8]
sub esp, 0x2c
cmp ax, 0x80a6
push ebx
push ebp
push esi
push edi
mov esi, ecx
jne 0x4fcce6
mov eax, dword [esi + 0x3ac]
test eax, eax
je 0x4fcd0d
xor ecx, ecx
cmp word [eax + 0x4c], 2
setne cl
inc ecx
mov word [eax + 0x4c], cx
mov ecx, esi
call fcn.004fa840
jmp 0x4fcd0d
cmp ax, 0xa76d
jne 0x4fce30
mov eax, dword [esi + 0x3ec]
mov ecx, dword [esi + 0x3f4]
cmp eax, ecx
je 0x4fd02d
inc eax
push eax
mov ecx, esi
call fcn.004fd040
mov ecx, dword [esi + 0x3ec]
mov eax, dword [0x546560]
inc ecx
lea edx, [esp + 0x44]
push ecx
push 0xf1
push edx
mov ecx, esi
mov dword [esp + 0x1c], eax
call fcn.004fbe80
mov eax, dword [eax]
lea ecx, [esp + 0x14]
push eax
push str._s__04d
push ecx
call fcn.00405cb0
mov eax, dword [esp + 0x54]
mov ecx, dword [0x546564]
add esp, 0x10
lea edx, [eax - 0xc]
cmp edx, ecx
je 0x4fcd73
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4fcd73
mov eax, dword [esp + 0x44]
add eax, 0xfffffff4
push eax
call fcn.00531732
add esp, 4
mov ecx, dword [esi + 0x110]
mov ebp, dword [sym.imp.USER32.dll_SendMessageW]
lea ebx, [esi + 0x110]
push 0
push 0
push 0x110a
push ecx
call ebp
mov esi, eax
test esi, esi
je 0x4fd024
mov edx, dword [0x546560]
mov ecx, 9
xor eax, eax
lea edi, [esp + 0x18]
rep stosd dword es:[edi], eax
push 0x100
lea ecx, [esp + 0x48]
mov dword [esp + 0x48], edx
mov dword [esp + 0x1c], esi
mov dword [esp + 0x18], 1
call fcn.00413620
mov ecx, dword [ebx]
mov dword [esp + 0x24], eax
lea eax, [esp + 0x14]
mov dword [esp + 0x28], 0x100
push eax
push 0
push 0x113e
push ecx
call ebp
push 0xffffffffffffffff
lea ecx, [esp + 0x48]
call fcn.00405bb0
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x44]
push edx
push eax
call fcn.00531809
add esp, 8
test eax, eax
je 0x4fd00e
push 1
push esi
mov ecx, ebx
call fcn.00485620
lea ecx, [esp + 0x44]
mov esi, eax
call fcn.00405700
test esi, esi
jne 0x4fcd9b
jmp 0x4fd024
cmp ax, 0xa76c
jne 0x4fce58
mov eax, dword [esi + 0x3ec]
mov ecx, dword [esi + 0x3f0]
cmp eax, ecx
je 0x4fd02d
test eax, eax
je 0x4fd02d
dec eax
jmp 0x4fcd05
cmp ax, 0xa773
jne 0x4fcd0d
mov edx, dword [esi + 0xec]
xor eax, eax
test edx, edx
sete al
test eax, eax
mov dword [esi + 0xec], eax
lea edi, [esi + 0x160]
jne 0x4fceb6
mov edx, dword [edi + 4]
push edx
call dword [sym.imp.USER32.dll_IsWindowVisible]
mov ebx, dword [sym.imp.USER32.dll_ShowWindow]
test eax, eax
jne 0x4fce9b
mov eax, dword [edi + 4]
push 5
push eax
call ebx
mov ecx, dword [edi]
push 0
push ecx
call ebx
mov ecx, dword [edi + 0x20]
mov eax, 1
cmp ecx, eax
je 0x4fceb1
mov dword [edi + 0x20], eax
mov dword [edi + 0x48], eax
jmp 0x4fced8
mov eax, dword [edi + 0x48]
cmp eax, 0xffffffff
je 0x4fced1
xor edx, edx
push 5
test eax, eax
sete dl
mov eax, dword [edi + edx*4]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov dword [edi + 0x48], 0xffffffff
mov ecx, edi
call fcn.0042dc40
mov eax, dword [esi + 0x3c]
mov edi, dword [esi + 0xec]
mov ecx, dword [esi + 0x38]
test eax, eax
je 0x4fcf8c
mov dx, word [ecx]
cmp dx, 0xffff
je 0x4fcf8c
cmp dx, 0xa773
je 0x4fcf1b
mov dx, word [ecx + 4]
add ecx, 4
add eax, 8
cmp dx, 0xffff
jne 0x4fcf01
jmp 0x4fcf8c
mov edx, edi
sub edx, 0
je 0x4fcf62
dec edx
je 0x4fcf45
dec edx
jne 0x4fcf7a
mov dx, word [eax]
test dh, 4
jne 0x4fcf7a
mov di, word [ecx + 2]
or di, dx
and edi, 0xfdff
or edi, 0x400
jmp 0x4fcf77
mov dx, word [eax]
test dh, 2
jne 0x4fcf7a
mov di, word [ecx + 2]
or di, dx
and edi, 0xfbff
or edi, 0x200
jmp 0x4fcf77
mov dx, word [eax]
test dh, 6
je 0x4fcf7a
mov di, word [ecx + 2]
or di, dx
and edi, 0xf9ff
mov word [eax], di
mov cx, word [ecx + 2]
mov dx, word [eax]
and edx, ecx
test dx, dx
je 0x4fcf8c
or word [esi + 0x40], cx
test byte [esi + 0x40], 8
je 0x4fd02d
mov edi, dword [esi + 0x3c]
mov ebp, dword [esi + 0x38]
test edi, edi
je 0x4fd02d
cmp word [ebp], 0xffff
je 0x4fcffc
mov eax, dword [esi + 0x30]
xor ebx, ebx
test eax, eax
jle 0x4fcfe9
mov eax, dword [esi + 0x2c]
cmp word [eax + ebx*8 + 4], 8
lea eax, [eax + ebx*8]
jne 0x4fcfe1
test byte [edi], 8
je 0x4fcfe1
test byte [ebp + 2], 8
je 0x4fcfe1
mov ecx, dword [eax]
xor edx, edx
mov dx, word [ebp]
push ecx
push edi
push edx
call fcn.004fe530
add esp, 0xc
mov eax, dword [esi + 0x30]
inc ebx
cmp ebx, eax
jl 0x4fcfb5
and word [edi], 0xfff7
add ebp, 4
add edi, 8
cmp word [ebp], 0xffff
jne 0x4fcfac
and word [esi + 0x40], 0xfff7
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x2c
ret 0x10
mov ecx, dword [ebx]
push esi
push 9
push 0x110b
push ecx
call ebp
lea ecx, [esp + 0x44]
call fcn.00405700
lea ecx, [esp + 0x10]
call fcn.00405700
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x2c
ret 0x10