Function at 0x49f250
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 0x49f286
mov eax, dword [esi + 0x3ac]
test eax, eax
je 0x49f2ad
xor ecx, ecx
cmp word [eax + 0x4c], 2
setne cl
inc ecx
mov word [eax + 0x4c], cx
mov ecx, esi
call fcn.0049cde0
jmp 0x49f2ad
cmp ax, 0xa76d
jne 0x49f3d0
mov eax, dword [esi + 0x3ec]
mov ecx, dword [esi + 0x3f4]
cmp eax, ecx
je 0x49f5cd
inc eax
push eax
mov ecx, esi
call fcn.0049f5e0
mov ecx, dword [esi + 0x3ec]
mov eax, dword [0x4d9540]
inc ecx
lea edx, [esp + 0x44]
push ecx
push 0xf1
push edx
mov ecx, esi
mov dword [esp + 0x1c], eax
call fcn.0049e420
mov eax, dword [eax]
lea ecx, [esp + 0x14]
push eax
push str._s__04d
push ecx
call fcn.00401a70
mov eax, dword [esp + 0x54]
mov ecx, dword [0x4d9544]
add esp, 0x10
lea edx, [eax - 0xc]
cmp edx, ecx
je 0x49f313
add eax, 0xfffffff4
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jg 0x49f313
mov eax, dword [esp + 0x44]
add eax, 0xfffffff4
push eax
call fcn.004c5432
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 0x49f5c4
mov edx, dword [0x4d9540]
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.0040f900
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 int.00401970
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x44]
push edx
push eax
call fcn.004c5509
add esp, 8
test eax, eax
je 0x49f5ae
push 1
push esi
mov ecx, ebx
call fcn.00465100
lea ecx, [esp + 0x44]
mov esi, eax
call fcn.004014c0
test esi, esi
jne 0x49f33b
jmp 0x49f5c4
cmp ax, 0xa76c
jne 0x49f3f8
mov eax, dword [esi + 0x3ec]
mov ecx, dword [esi + 0x3f0]
cmp eax, ecx
je 0x49f5cd
test eax, eax
je 0x49f5cd
dec eax
jmp 0x49f2a5
cmp ax, 0xa773
jne 0x49f2ad
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 0x49f456
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 0x49f43b
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 0x49f451
mov dword [edi + 0x20], eax
mov dword [edi + 0x48], eax
jmp 0x49f478
mov eax, dword [edi + 0x48]
cmp eax, 0xffffffff
je 0x49f471
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.00426140
mov eax, dword [esi + 0x3c]
mov edi, dword [esi + 0xec]
mov ecx, dword [esi + 0x38]
test eax, eax
je 0x49f52c
mov dx, word [ecx]
cmp dx, 0xffff
je 0x49f52c
cmp dx, 0xa773
je 0x49f4bb
mov dx, word [ecx + 4]
add ecx, 4
add eax, 8
cmp dx, 0xffff
jne 0x49f4a1
jmp 0x49f52c
mov edx, edi
sub edx, 0
je 0x49f502
dec edx
je 0x49f4e5
dec edx
jne 0x49f51a
mov dx, word [eax]
test dh, 4
jne 0x49f51a
mov di, word [ecx + 2]
or di, dx
and edi, 0xfdff
or edi, 0x400
jmp 0x49f517
mov dx, word [eax]
test dh, 2
jne 0x49f51a
mov di, word [ecx + 2]
or di, dx
and edi, 0xfbff
or edi, 0x200
jmp 0x49f517
mov dx, word [eax]
test dh, 6
je 0x49f51a
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 0x49f52c
or word [esi + 0x40], cx
test byte [esi + 0x40], 8
je 0x49f5cd
mov edi, dword [esi + 0x3c]
mov ebp, dword [esi + 0x38]
test edi, edi
je 0x49f5cd
cmp word [ebp], 0xffff
je 0x49f59c
mov eax, dword [esi + 0x30]
xor ebx, ebx
test eax, eax
jle 0x49f589
mov eax, dword [esi + 0x2c]
cmp word [eax + ebx*8 + 4], 8
lea eax, [eax + ebx*8]
jne 0x49f581
test byte [edi], 8
je 0x49f581
test byte [ebp + 2], 8
je 0x49f581
mov ecx, dword [eax]
xor edx, edx
mov dx, word [ebp]
push ecx
push edi
push edx
call fcn.004a0ad0
add esp, 0xc
mov eax, dword [esi + 0x30]
inc ebx
cmp ebx, eax
jl 0x49f555
and word [edi], 0xfff7
add ebp, 4
add edi, 8
cmp word [ebp], 0xffff
jne 0x49f54c
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.004014c0
lea ecx, [esp + 0x10]
call fcn.004014c0
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x2c
ret 0x10