Function at 0x4fd890
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 0x4fd8c6
mov eax, dword [esi + 0x3ac]
test eax, eax
je 0x4fd8ed
xor ecx, ecx
cmp word [eax + 0x4c], 2
setne cl
inc ecx
mov word [eax + 0x4c], cx
mov ecx, esi
call fcn.004fb420
jmp 0x4fd8ed
cmp ax, 0xa76d
jne 0x4fda10
mov eax, dword [esi + 0x3ec]
mov ecx, dword [esi + 0x3f4]
cmp eax, ecx
je 0x4fdc0d
inc eax
push eax
mov ecx, esi
call fcn.004fdc20
mov ecx, dword [esi + 0x3ec]
mov eax, dword [0x547570]
inc ecx
lea edx, [esp + 0x44]
push ecx
push 0xf1
push edx
mov ecx, esi
mov dword [esp + 0x1c], eax
call fcn.004fca60
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 [0x547574]
add esp, 0x10
lea edx, [eax - 0xc]
cmp edx, ecx
je 0x4fd953
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x4fd953
mov eax, dword [esp + 0x44]
add eax, 0xfffffff4
push eax
call fcn.00532222
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 0x4fdc04
mov edx, dword [0x547570]
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.00413470
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.005322f9
add esp, 8
test eax, eax
je 0x4fdbee
push 1
push esi
mov ecx, ebx
call fcn.00485f50
lea ecx, [esp + 0x44]
mov esi, eax
call fcn.00405700
test esi, esi
jne 0x4fd97b
jmp 0x4fdc04
cmp ax, 0xa76c
jne 0x4fda38
mov eax, dword [esi + 0x3ec]
mov ecx, dword [esi + 0x3f0]
cmp eax, ecx
je 0x4fdc0d
test eax, eax
je 0x4fdc0d
dec eax
jmp 0x4fd8e5
cmp ax, 0xa773
jne 0x4fd8ed
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 0x4fda96
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 0x4fda7b
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 0x4fda91
mov dword [edi + 0x20], eax
mov dword [edi + 0x48], eax
jmp 0x4fdab8
mov eax, dword [edi + 0x48]
cmp eax, 0xffffffff
je 0x4fdab1
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.0042dce0
mov eax, dword [esi + 0x3c]
mov edi, dword [esi + 0xec]
mov ecx, dword [esi + 0x38]
test eax, eax
je 0x4fdb6c
mov dx, word [ecx]
cmp dx, 0xffff
je 0x4fdb6c
cmp dx, 0xa773
je 0x4fdafb
mov dx, word [ecx + 4]
add ecx, 4
add eax, 8
cmp dx, 0xffff
jne 0x4fdae1
jmp 0x4fdb6c
mov edx, edi
sub edx, 0
je 0x4fdb42
dec edx
je 0x4fdb25
dec edx
jne 0x4fdb5a
mov dx, word [eax]
test dh, 4
jne 0x4fdb5a
mov di, word [ecx + 2]
or di, dx
and edi, 0xfdff
or edi, 0x400
jmp 0x4fdb57
mov dx, word [eax]
test dh, 2
jne 0x4fdb5a
mov di, word [ecx + 2]
or di, dx
and edi, 0xfbff
or edi, 0x200
jmp 0x4fdb57
mov dx, word [eax]
test dh, 6
je 0x4fdb5a
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 0x4fdb6c
or word [esi + 0x40], cx
test byte [esi + 0x40], 8
je 0x4fdc0d
mov edi, dword [esi + 0x3c]
mov ebp, dword [esi + 0x38]
test edi, edi
je 0x4fdc0d
cmp word [ebp], 0xffff
je 0x4fdbdc
mov eax, dword [esi + 0x30]
xor ebx, ebx
test eax, eax
jle 0x4fdbc9
mov eax, dword [esi + 0x2c]
cmp word [eax + ebx*8 + 4], 8
lea eax, [eax + ebx*8]
jne 0x4fdbc1
test byte [edi], 8
je 0x4fdbc1
test byte [ebp + 2], 8
je 0x4fdbc1
mov ecx, dword [eax]
xor edx, edx
mov dx, word [ebp]
push ecx
push edi
push edx
call fcn.004ff110
add esp, 0xc
mov eax, dword [esi + 0x30]
inc ebx
cmp ebx, eax
jl 0x4fdb95
and word [edi], 0xfff7
add ebp, 4
add edi, 8
cmp word [ebp], 0xffff
jne 0x4fdb8c
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